Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009252/0.0009252, allocations: 80.8 kB / 21.49 MB, free: 2.992 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001207/0.001207, allocations: 168.7 kB / 24.91 MB, free: 9.188 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9406/0.9406, allocations: 177.1 MB / 205.3 MB, free: 5.488 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3200,variableFilter="time|toSpacePhasor.y.[0-9,]+.|hallSensor.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3200,variableFilter="time|toSpacePhasor.y.[0-9,]+.|hallSensor.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.673e-06/1.673e-06, allocations: 0 / 273.5 MB, free: 1.258 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.515e-05/2.682e-05, allocations: 2.312 kB / 273.5 MB, free: 1.254 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.007486/0.007513, allocations: 8.904 MB / 282.4 MB, free: 8.309 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004228/0.01174, allocations: 3.201 MB / 285.6 MB, free: 5.094 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005991/0.01234, allocations: 55.62 kB / 285.7 MB, free: 5.039 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001049/0.01339, allocations: 0.6832 MB / 286.3 MB, free: 4.352 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0012/0.01459, allocations: 0.7838 MB / 287.1 MB, free: 3.562 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004003/0.01499, allocations: 323.4 kB / 287.4 MB, free: 3.246 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001465/0.01645, allocations: 2.225 MB / 289.7 MB, free: 1.012 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007261/0.01718, allocations: 0.8286 MB / 290.5 MB, free: 120 kB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1001/0.1173, allocations: 1.517 MB / 292 MB, free: 16.49 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001275/0.1186, allocations: 0.9914 MB / 293 MB, free: 16.49 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003492/0.1189, allocations: 225.6 kB / 293.2 MB, free: 16.49 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005244/0.1195, allocations: 320.7 kB / 293.5 MB, free: 16.49 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004477/0.1199, allocations: 0.6841 MB / 294.2 MB, free: 16.49 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007853/0.1207, allocations: 0.7399 MB / 295 MB, free: 16.49 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001669/0.1224, allocations: 1.701 MB / 296.7 MB, free: 16.34 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/0.1224, allocations: 1.25 kB / 296.7 MB, free: 16.34 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.1224, allocations: 0 / 296.7 MB, free: 16.34 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.7e-05/0.1224, allocations: 3.75 kB / 296.7 MB, free: 16.34 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 404 * Number of variables: 404 Notification: Performance of Generate backend data structure: time 0.002552/0.125, allocations: 2.099 MB / 298.8 MB, free: 15.38 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.246e-05/0.125, allocations: 10.25 kB / 298.8 MB, free: 15.38 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007375/0.1257, allocations: 298.4 kB / 299.1 MB, free: 15.38 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00129/0.127, allocations: 0.8661 MB / 299.9 MB, free: 15.01 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.925e-05/0.1271, allocations: 113.8 kB / 300 MB, free: 15 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001976/0.1273, allocations: 161.5 kB / 300.2 MB, free: 15 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001562/0.1289, allocations: 1.203 MB / 301.4 MB, free: 14.73 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.154e-05/0.1289, allocations: 7.453 kB / 301.4 MB, free: 14.72 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001119/0.129, allocations: 67.92 kB / 301.5 MB, free: 14.72 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.423e-05/0.1291, allocations: 80.83 kB / 301.6 MB, free: 14.71 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008834/0.13, allocations: 472.9 kB / 302 MB, free: 14.66 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004754/0.1347, allocations: 4.98 MB / 307 MB, free: 11.49 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003616/0.1351, allocations: 261 kB / 307.2 MB, free: 11.39 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001097/0.1352, allocations: 82.14 kB / 307.3 MB, free: 11.38 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001026/0.1353, allocations: 47.53 kB / 307.4 MB, free: 11.37 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.949e-05/0.1353, allocations: 38.09 kB / 307.4 MB, free: 11.32 MB / 266.7 MB Notification: Performance of pre-optimization done (n=48): time 2.164e-06/0.1353, allocations: 0 / 307.4 MB, free: 11.32 MB / 266.7 MB Notification: Performance of matching and sorting (n=63): time 0.002226/0.1375, allocations: 1.303 MB / 308.7 MB, free: 10.85 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.761e-05/0.1376, allocations: 62.75 kB / 308.8 MB, free: 10.79 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008372/0.1384, allocations: 1.165 MB / 309.9 MB, free: 10.51 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.304e-05/0.1384, allocations: 43.11 kB / 310 MB, free: 10.47 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000304/0.1387, allocations: 0.9137 MB / 310.9 MB, free: 9.809 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001074/0.1388, allocations: 251.2 kB / 311.1 MB, free: 9.613 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00027/0.1391, allocations: 309.1 kB / 311.4 MB, free: 9.449 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 2.132e-05/0.1391, allocations: 305.1 kB / 311.7 MB, free: 9.148 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002218/0.1394, allocations: 162.8 kB / 311.9 MB, free: 9.105 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004422/0.1398, allocations: 1.064 MB / 313 MB, free: 7.855 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009272/0.1407, allocations: 1.445 MB / 314.4 MB, free: 6.5 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.196e-05/0.1407, allocations: 12.16 kB / 314.4 MB, free: 6.488 MB / 266.7 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.001329/0.1421, allocations: 1.17 MB / 315.6 MB, free: 5.512 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.212e-05/0.1421, allocations: 18.34 kB / 315.6 MB, free: 5.496 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.27e-05/0.1421, allocations: 36 kB / 315.6 MB, free: 5.461 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000243/0.1424, allocations: 126.4 kB / 315.8 MB, free: 5.332 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007853/0.1431, allocations: 390.9 kB / 316.1 MB, free: 4.98 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005502/0.1437, allocations: 1.29 MB / 317.4 MB, free: 3.625 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007363/0.1444, allocations: 111.7 kB / 317.5 MB, free: 3.516 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.198e-05/0.1445, allocations: 87.98 kB / 317.6 MB, free: 3.43 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 149 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (204): * Single equations (assignments): 201 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002604/0.1448, allocations: 243 kB / 317.9 MB, free: 3.215 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001436/0.1449, allocations: 99.89 kB / 318 MB, free: 3.117 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005944/0.1455, allocations: 490.8 kB / 318.4 MB, free: 2.625 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.1455, allocations: 14.84 kB / 318.5 MB, free: 2.613 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.1455, allocations: 0 / 318.5 MB, free: 2.613 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.04e-06/0.1455, allocations: 0 / 318.5 MB, free: 2.613 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001631/0.1472, allocations: 1.421 MB / 319.9 MB, free: 1.262 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.369e-06/0.1472, allocations: 7.938 kB / 319.9 MB, free: 1.254 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003039/0.1475, allocations: 107.3 kB / 320 MB, free: 1.156 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002391/0.1477, allocations: 130.4 kB / 320.1 MB, free: 1.016 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.968e-05/0.1477, allocations: 15.98 kB / 320.1 MB, free: 1 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005131/0.1482, allocations: 1.239 MB / 321.4 MB, free: 15.69 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.1482, allocations: 4 kB / 321.4 MB, free: 15.69 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00083/0.1491, allocations: 0.6965 MB / 322.1 MB, free: 14.96 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00026/0.1493, allocations: 155 kB / 322.2 MB, free: 14.81 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001201/0.1495, allocations: 15.98 kB / 322.2 MB, free: 14.79 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003534/0.1498, allocations: 27.98 kB / 322.3 MB, free: 14.77 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.398e-05/0.1499, allocations: 48.41 kB / 322.3 MB, free: 14.72 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.123e-05/0.1499, allocations: 12 kB / 322.3 MB, free: 14.71 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000539/0.1505, allocations: 0.5305 MB / 322.9 MB, free: 14.24 MB / 282.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1505, allocations: 0 / 322.9 MB, free: 14.24 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001029/0.1515, allocations: 348 kB / 323.2 MB, free: 13.9 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 1 (speed.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (60): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002131/0.1517, allocations: 147.4 kB / 323.3 MB, free: 13.75 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.00099/0.1527, allocations: 0.8034 MB / 324.1 MB, free: 13.04 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.808e-05/0.1528, allocations: 31.84 kB / 324.2 MB, free: 13.01 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003708/0.1531, allocations: 321.6 kB / 324.5 MB, free: 12.7 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001043/0.1542, allocations: 368.6 kB / 324.9 MB, free: 12.36 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003315/0.1575, allocations: 2.546 MB / 327.4 MB, free: 9.773 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003171/0.1578, allocations: 354.5 kB / 327.7 MB, free: 9.398 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0005527/0.1584, allocations: 201.2 kB / 327.9 MB, free: 9.195 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006521/0.159, allocations: 377 kB / 328.3 MB, free: 8.824 MB / 282.7 MB Notification: Performance of SimCode: time 1.032e-06/0.159, allocations: 0 / 328.3 MB, free: 8.824 MB / 282.7 MB Notification: Performance of Templates: time 0.02748/0.1865, allocations: 19.25 MB / 347.6 MB, free: 6.004 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_NoLoad/SMPM_NoLoad.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0339078344404697]