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.001084/0.001084, allocations: 112.5 kB / 17.68 MB, free: 5.469 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.001128/0.001128, allocations: 192 kB / 18.61 MB, free: 4.543 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.338/1.338, allocations: 222.9 MB / 242.3 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1815/0.1815, allocations: 38.04 MB / 330.5 MB, free: 8.789 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001239/0.001239, allocations: 67.39 kB / 400.2 MB, free: 33.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1047, allocations: 58.07 MB / 458.3 MB, free: 7.336 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.005733/0.1105, allocations: 4.924 MB / 463.2 MB, free: 2.387 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003226/0.1138, allocations: 2.477 MB / 465.7 MB, free: 15.9 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001695/0.1139, allocations: 11.94 kB / 465.7 MB, free: 15.89 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001085/0.115, allocations: 442 kB / 466.2 MB, free: 15.45 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008918/0.1159, allocations: 0.5135 MB / 466.7 MB, free: 14.94 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005919/0.1165, allocations: 279.3 kB / 466.9 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00072/0.1173, allocations: 0.7321 MB / 467.7 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004663/0.1177, allocations: 333.5 kB / 468 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003606/0.1181, allocations: 322.7 kB / 468.3 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003755/0.1185, allocations: 326.8 kB / 468.6 MB, free: 12.97 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.808e-05/0.1186, allocations: 40 kB / 468.7 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008023/0.1194, allocations: 0.6235 MB / 469.3 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001695/0.1195, allocations: 203.4 kB / 469.5 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002173/0.1198, allocations: 246.8 kB / 469.7 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007682/0.1206, allocations: 0.7557 MB / 470.5 MB, free: 11.11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1206, allocations: 0 / 470.5 MB, free: 11.11 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.1206, allocations: 0 / 470.5 MB, free: 11.11 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.095e-06/0.1206, allocations: 0 / 470.5 MB, free: 11.11 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.0009927/0.1216, allocations: 0.7722 MB / 471.3 MB, free: 10.29 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.334e-05/0.1216, allocations: 15.89 kB / 471.3 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001557/0.1232, allocations: 204.1 kB / 471.5 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005148/0.1237, allocations: 374.3 kB / 471.8 MB, free: 9.664 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.818e-05/0.1238, allocations: 25.38 kB / 471.9 MB, free: 9.637 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.053e-05/0.1238, allocations: 48.36 kB / 471.9 MB, free: 9.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008748/0.1247, allocations: 0.6266 MB / 472.5 MB, free: 8.941 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.22e-05/0.1248, allocations: 7.984 kB / 472.6 MB, free: 8.934 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.96e-05/0.1248, allocations: 12 kB / 472.6 MB, free: 8.922 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.841e-05/0.1249, allocations: 36.98 kB / 472.6 MB, free: 8.887 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008639/0.1257, allocations: 0.6089 MB / 473.2 MB, free: 8.273 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003012/0.1287, allocations: 2.253 MB / 475.5 MB, free: 5.898 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000594/0.1294, allocations: 482.6 kB / 475.9 MB, free: 5.391 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003039/0.1297, allocations: 233.7 kB / 476.2 MB, free: 5.156 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.228e-05/0.1297, allocations: 8 kB / 476.2 MB, free: 5.148 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.453e-05/0.1297, allocations: 38.5 kB / 476.2 MB, free: 5.102 MB / 350.1 MB Notification: Performance of pre-optimization done (n=42): time 1.804e-06/0.1298, allocations: 0 / 476.2 MB, free: 5.102 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.003191/0.133, allocations: 1.712 MB / 477.9 MB, free: 3.312 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.327e-05/0.133, allocations: 81.11 kB / 478 MB, free: 3.215 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000252/0.1333, allocations: 279 kB / 478.3 MB, free: 2.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.728e-05/0.1333, allocations: 29.7 kB / 478.3 MB, free: 2.895 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001228/0.1334, allocations: 228 kB / 478.5 MB, free: 2.668 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001053/0.1335, allocations: 157.8 kB / 478.7 MB, free: 2.512 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001187/0.1337, allocations: 86.27 kB / 478.8 MB, free: 2.422 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001129/0.1338, allocations: 354.7 kB / 479.1 MB, free: 2.066 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002527/0.1341, allocations: 177 kB / 479.3 MB, free: 1.895 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003226/0.1344, allocations: 298.3 kB / 479.6 MB, free: 1.555 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006167/0.135, allocations: 0.5005 MB / 480.1 MB, free: 1.008 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.135, allocations: 0 / 480.1 MB, free: 1.008 MB / 350.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001117/0.1361, allocations: 0.6848 MB / 480.8 MB, free: 320 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/0.1362, allocations: 11.94 kB / 480.8 MB, free: 308 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-06/0.1362, allocations: 4 kB / 480.8 MB, free: 304 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005551/0.1367, allocations: 168.7 kB / 480.9 MB, free: 132 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003397/0.1371, allocations: 92.11 kB / 481 MB, free: 40 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00327/0.1404, allocations: 2.791 MB / 483.8 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002273/0.1406, allocations: 23.98 kB / 483.8 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.8e-05/0.1407, allocations: 20.11 kB / 483.9 MB, free: 13.07 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.0002049/0.1409, allocations: 207.6 kB / 484.1 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.714e-05/0.1409, allocations: 35.56 kB / 484.1 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001094/0.142, allocations: 0.6298 MB / 484.7 MB, free: 12.19 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.1421, allocations: 4 kB / 484.7 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.1421, allocations: 4 kB / 484.7 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.325e-06/0.1421, allocations: 7.922 kB / 484.7 MB, free: 12.17 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002046/0.1441, allocations: 1.348 MB / 486.1 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.1442, allocations: 0 / 486.1 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003446/0.1445, allocations: 87.89 kB / 486.2 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004228/0.1449, allocations: 140.8 kB / 486.3 MB, free: 10.52 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.044e-05/0.145, allocations: 12 kB / 486.3 MB, free: 10.51 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002956/0.1479, allocations: 2.56 MB / 488.9 MB, free: 7.809 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.148, allocations: 4 kB / 488.9 MB, free: 7.805 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001352/0.1493, allocations: 0.9505 MB / 489.8 MB, free: 6.824 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001086/0.1494, allocations: 116.7 kB / 490 MB, free: 6.691 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.588e-05/0.1495, allocations: 7.938 kB / 490 MB, free: 6.684 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000204/0.1497, allocations: 19.98 kB / 490 MB, free: 6.664 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.277e-05/0.1498, allocations: 39.84 kB / 490 MB, free: 6.625 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.963e-05/0.1498, allocations: 12 kB / 490 MB, free: 6.613 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001985/0.15, allocations: 205.9 kB / 490.2 MB, free: 6.414 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.15, allocations: 0 / 490.2 MB, free: 6.414 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005903/0.1506, allocations: 132 kB / 490.4 MB, free: 6.285 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.0001325/0.1508, allocations: 115.3 kB / 490.5 MB, free: 6.164 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001183/0.152, allocations: 0.6811 MB / 491.2 MB, free: 5.473 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.152, allocations: 0 / 491.2 MB, free: 5.473 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006906/0.1527, allocations: 438.7 kB / 491.6 MB, free: 5.031 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004689/0.1532, allocations: 68.34 kB / 491.7 MB, free: 4.961 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001747/0.1549, allocations: 1.112 MB / 492.8 MB, free: 3.809 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004346/0.1554, allocations: 0.8669 MB / 493.6 MB, free: 2.918 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001794/0.1555, allocations: 75.2 kB / 493.7 MB, free: 2.848 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.99e-05/0.1556, allocations: 31.44 kB / 493.7 MB, free: 2.816 MB / 366.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1556, allocations: 0 / 493.7 MB, free: 2.816 MB / 366.1 MB Notification: Performance of Templates: time 0.009992/0.1656, allocations: 5.727 MB / 499.5 MB, free: 13.1 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.GeneratorTest2.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches