Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|generator.p.1.|generator.p.2.|generator.phi|generator1.p.1.|generator1.p.2.|generator1.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2") translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|generator.p.1.|generator.p.2.|generator.phi|generator1.p.1.|generator1.p.2.|generator1.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001646/0.001646, allocations: 102.4 kB / 16.5 MB, free: 6.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001889/0.001889, allocations: 195.1 kB / 17.42 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.457/1.457, allocations: 222.9 MB / 241.1 MB, free: 13.79 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1713/0.1713, allocations: 38.03 MB / 329.3 MB, free: 8.883 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001169/0.001169, allocations: 65.89 kB / 398.1 MB, free: 34.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1086, allocations: 58.07 MB / 456.2 MB, free: 8.52 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.006886/0.1155, allocations: 5.344 MB / 461.5 MB, free: 3.145 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003821/0.1194, allocations: 2.613 MB / 464.1 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003105/0.1197, allocations: 23.88 kB / 464.1 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001141/0.1209, allocations: 412.5 kB / 464.6 MB, free: 96 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00112/0.122, allocations: 486.3 kB / 465 MB, free: 15.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006329/0.1226, allocations: 251.4 kB / 465.3 MB, free: 15.37 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009745/0.1236, allocations: 1.134 MB / 466.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005086/0.1241, allocations: 312.2 kB / 466.7 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003658/0.1245, allocations: 274.8 kB / 467 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004293/0.125, allocations: 346.8 kB / 467.3 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.225e-05/0.125, allocations: 32 kB / 467.3 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001236/0.1263, allocations: 0.7677 MB / 468.1 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002232/0.1265, allocations: 199.5 kB / 468.3 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002439/0.1267, allocations: 226.8 kB / 468.5 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009258/0.1277, allocations: 0.7984 MB / 469.3 MB, free: 11.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.1277, allocations: 3.938 kB / 469.3 MB, free: 11.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.1277, allocations: 0 / 469.3 MB, free: 11.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.244e-06/0.1277, allocations: 0 / 469.3 MB, free: 11.3 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.001158/0.1289, allocations: 0.7684 MB / 470.1 MB, free: 10.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.051e-05/0.1289, allocations: 12.03 kB / 470.1 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001678/0.1306, allocations: 196.1 kB / 470.3 MB, free: 10.28 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004652/0.1311, allocations: 366.2 kB / 470.7 MB, free: 9.875 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.936e-05/0.1311, allocations: 33.38 kB / 470.7 MB, free: 9.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.218e-05/0.1312, allocations: 40.36 kB / 470.7 MB, free: 9.801 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001042/0.1323, allocations: 0.6305 MB / 471.4 MB, free: 9.145 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.214e-05/0.1323, allocations: 3.906 kB / 471.4 MB, free: 9.141 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.903e-05/0.1323, allocations: 16 kB / 471.4 MB, free: 9.125 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.98e-05/0.1324, allocations: 40.97 kB / 471.4 MB, free: 9.086 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009525/0.1334, allocations: 0.605 MB / 472 MB, free: 8.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003321/0.1367, allocations: 2.269 MB / 474.3 MB, free: 6.094 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006501/0.1374, allocations: 486.6 kB / 474.8 MB, free: 5.582 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000302/0.1377, allocations: 233.7 kB / 475 MB, free: 5.348 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.594e-05/0.1377, allocations: 7.984 kB / 475 MB, free: 5.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.581e-05/0.1378, allocations: 38.56 kB / 475 MB, free: 5.293 MB / 350.1 MB Notification: Performance of pre-optimization done (n=42): time 1.804e-06/0.1378, allocations: 0 / 475 MB, free: 5.293 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.003292/0.1411, allocations: 1.705 MB / 476.8 MB, free: 3.512 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.065e-05/0.1411, allocations: 89.05 kB / 476.8 MB, free: 3.406 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002723/0.1414, allocations: 275 kB / 477.1 MB, free: 3.125 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.932e-05/0.1415, allocations: 29.7 kB / 477.1 MB, free: 3.09 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001398/0.1416, allocations: 228 kB / 477.4 MB, free: 2.859 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001144/0.1417, allocations: 153.8 kB / 477.5 MB, free: 2.707 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001216/0.1418, allocations: 90.28 kB / 477.6 MB, free: 2.613 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.142, allocations: 350.7 kB / 477.9 MB, free: 2.262 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002666/0.1423, allocations: 181 kB / 478.1 MB, free: 2.082 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003164/0.1426, allocations: 290.4 kB / 478.4 MB, free: 1.758 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006281/0.1432, allocations: 0.5044 MB / 478.9 MB, free: 1.207 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.1432, allocations: 0 / 478.9 MB, free: 1.207 MB / 350.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001117/0.1444, allocations: 0.6809 MB / 479.6 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.1444, allocations: 11.98 kB / 479.6 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.1444, allocations: 0 / 479.6 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005493/0.1449, allocations: 168.7 kB / 479.8 MB, free: 344 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003615/0.1453, allocations: 96.03 kB / 479.9 MB, free: 248 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003136/0.1485, allocations: 2.536 MB / 482.4 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002294/0.1487, allocations: 19.98 kB / 482.4 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.78e-05/0.1488, allocations: 24 kB / 482.4 MB, free: 13.54 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0002181/0.149, allocations: 201.6 kB / 482.6 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.806e-05/0.1491, allocations: 35.56 kB / 482.7 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00113/0.1502, allocations: 0.6375 MB / 483.3 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.933e-06/0.1502, allocations: 8 kB / 483.3 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.904e-06/0.1502, allocations: 0 / 483.3 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.1502, allocations: 4 kB / 483.3 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002046/0.1523, allocations: 1.355 MB / 484.7 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.1523, allocations: 0 / 484.7 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003484/0.1527, allocations: 83.89 kB / 484.8 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004676/0.1531, allocations: 144.8 kB / 484.9 MB, free: 10.97 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.248e-05/0.1532, allocations: 15.98 kB / 484.9 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002691/0.1559, allocations: 2.307 MB / 487.2 MB, free: 8.516 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.1559, allocations: 0 / 487.2 MB, free: 8.516 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001436/0.1573, allocations: 0.953 MB / 488.2 MB, free: 7.531 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.346e-05/0.1574, allocations: 116.7 kB / 488.3 MB, free: 7.398 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.084e-05/0.1575, allocations: 8.109 kB / 488.3 MB, free: 7.391 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002057/0.1577, allocations: 15.94 kB / 488.3 MB, free: 7.375 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.413e-05/0.1578, allocations: 35.89 kB / 488.3 MB, free: 7.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.513e-05/0.1578, allocations: 19.98 kB / 488.4 MB, free: 7.32 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002532/0.1581, allocations: 197.9 kB / 488.6 MB, free: 7.125 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1581, allocations: 4 kB / 488.6 MB, free: 7.121 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006029/0.1587, allocations: 136.2 kB / 488.7 MB, free: 6.988 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia.w,constantTorque.phi,inertia1.w,constantTorque1.phi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001284/0.1588, allocations: 115.1 kB / 488.8 MB, free: 6.863 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001201/0.1601, allocations: 0.6654 MB / 489.5 MB, free: 6.188 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.1601, allocations: 0 / 489.5 MB, free: 6.188 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006959/0.1608, allocations: 418.3 kB / 489.9 MB, free: 5.766 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004966/0.1613, allocations: 61.19 kB / 489.9 MB, free: 5.707 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001919/0.1632, allocations: 1.315 MB / 491.3 MB, free: 4.359 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005353/0.1638, allocations: 0.8749 MB / 492.1 MB, free: 3.461 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002102/0.164, allocations: 71.23 kB / 492.2 MB, free: 3.395 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.969e-05/0.1641, allocations: 35.42 kB / 492.2 MB, free: 3.359 MB / 366.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1641, allocations: 0 / 492.2 MB, free: 3.359 MB / 366.1 MB Notification: Performance of Templates: time 0.0109/0.175, allocations: 5.373 MB / 497.6 MB, free: 13.99 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.sim & ./PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.GeneratorTest2.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches