Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.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.PMeterTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|pMeter.I|pMeter.P|pMeter.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest") translateModel(PowerSystems.Examples.Generic.Test.PMeterTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|pMeter.I|pMeter.P|pMeter.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007436/0.0007437, allocations: 91.2 kB / 16.65 MB, free: 6.352 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.0008395/0.0008395, allocations: 180.2 kB / 17.56 MB, free: 5.949 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.364/1.364, allocations: 223.3 MB / 241.6 MB, free: 204 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1737/0.1737, allocations: 38.09 MB / 330.8 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004966/0.0004965, allocations: 8 kB / 400.7 MB, free: 34.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1275/0.128, allocations: 59.15 MB / 459.9 MB, free: 7.094 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.PMeterTest): time 0.004184/0.1323, allocations: 3.318 MB / 463.2 MB, free: 3.754 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002366/0.1347, allocations: 1.551 MB / 464.7 MB, free: 2.195 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002536/0.135, allocations: 7.938 kB / 464.8 MB, free: 2.188 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000212/0.1352, allocations: 39.7 kB / 464.8 MB, free: 2.148 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000834/0.136, allocations: 267.2 kB / 465.1 MB, free: 1.887 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003476/0.1364, allocations: 111.8 kB / 465.2 MB, free: 1.777 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006498/0.1371, allocations: 0.565 MB / 465.7 MB, free: 1.211 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006888/0.1378, allocations: 326.9 kB / 466 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002879/0.1381, allocations: 123.4 kB / 466.2 MB, free: 0.75 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002881/0.1384, allocations: 143.5 kB / 466.3 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.084e-05/0.1384, allocations: 12 kB / 466.3 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006951/0.1391, allocations: 419 kB / 466.7 MB, free: 192 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001399/0.1393, allocations: 91.75 kB / 466.8 MB, free: 100 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001605/0.1394, allocations: 121.2 kB / 466.9 MB, free: 15.97 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006212/0.1401, allocations: 370.8 kB / 467.3 MB, free: 15.61 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.1401, allocations: 0 / 467.3 MB, free: 15.61 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.1401, allocations: 0 / 467.3 MB, free: 15.61 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.967e-06/0.1401, allocations: 0 / 467.3 MB, free: 15.61 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0006905/0.1408, allocations: 490.7 kB / 467.8 MB, free: 15.08 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.724e-05/0.1408, allocations: 8.031 kB / 467.8 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009853/0.1418, allocations: 104.5 kB / 467.9 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003337/0.1422, allocations: 258.4 kB / 468.1 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.567e-05/0.1422, allocations: 16.33 kB / 468.2 MB, free: 14.67 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.057e-05/0.1423, allocations: 23.94 kB / 468.2 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004933/0.1428, allocations: 326.3 kB / 468.5 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.22e-05/0.1428, allocations: 0 / 468.5 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.864e-05/0.1428, allocations: 8 kB / 468.5 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.297e-05/0.1429, allocations: 12 kB / 468.5 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000465/0.1433, allocations: 303.7 kB / 468.8 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00173/0.1451, allocations: 1.3 MB / 470.1 MB, free: 12.58 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003124/0.1454, allocations: 198.5 kB / 470.3 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001063/0.1455, allocations: 41.77 kB / 470.3 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.669e-05/0.1455, allocations: 7.984 kB / 470.4 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.796e-05/0.1456, allocations: 34.56 kB / 470.4 MB, free: 12.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.733e-06/0.1456, allocations: 0 / 470.4 MB, free: 12.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003444/0.1459, allocations: 141.3 kB / 470.5 MB, free: 12.11 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.993e-05/0.146, allocations: 81.17 kB / 470.6 MB, free: 12.01 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002132/0.1462, allocations: 219.7 kB / 470.8 MB, free: 11.79 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.369e-05/0.1462, allocations: 25.7 kB / 470.8 MB, free: 11.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001185/0.1464, allocations: 167.6 kB / 471 MB, free: 11.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.616e-05/0.1464, allocations: 39.53 kB / 471 MB, free: 11.55 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.725e-05/0.1465, allocations: 21.72 kB / 471.1 MB, free: 11.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.1466, allocations: 330.8 kB / 471.4 MB, free: 11.19 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.32e-05/0.1467, allocations: 35.98 kB / 471.4 MB, free: 11.15 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001346/0.1468, allocations: 139 kB / 471.6 MB, free: 10.97 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000232/0.1471, allocations: 192.6 kB / 471.8 MB, free: 10.74 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.66e-06/0.1471, allocations: 4 kB / 471.8 MB, free: 10.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003175/0.1474, allocations: 205.2 kB / 472 MB, free: 10.53 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.94e-05/0.1474, allocations: 8 kB / 472 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.214e-06/0.1474, allocations: 0 / 472 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.965e-05/0.1475, allocations: 8 kB / 472 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001653/0.1476, allocations: 47.92 kB / 472 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.329e-05/0.1477, allocations: 7.938 kB / 472 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001321/0.1478, allocations: 31.67 kB / 472.1 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.666e-05/0.1478, allocations: 8.344 kB / 472.1 MB, free: 10.42 MB / 350.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 (23): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000157/0.148, allocations: 157.7 kB / 472.2 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.411e-05/0.148, allocations: 16.34 kB / 472.2 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002287/0.1483, allocations: 131 kB / 472.4 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.1483, allocations: 4 kB / 472.4 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.1483, allocations: 0 / 472.4 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/0.1483, allocations: 0 / 472.4 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007344/0.149, allocations: 0.572 MB / 472.9 MB, free: 9.445 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-06/0.1491, allocations: 4 kB / 472.9 MB, free: 9.441 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.508e-05/0.1491, allocations: 16.31 kB / 473 MB, free: 9.426 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.674e-06/0.1492, allocations: 11.94 kB / 473 MB, free: 9.414 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.465e-05/0.1492, allocations: 4 kB / 473 MB, free: 9.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.52e-06/0.1492, allocations: 11.92 kB / 473 MB, free: 9.398 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.1492, allocations: 4 kB / 473 MB, free: 9.395 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002879/0.1495, allocations: 275.8 kB / 473.3 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.742e-05/0.1496, allocations: 100.9 kB / 473.4 MB, free: 8.961 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.19e-05/0.1496, allocations: 7.938 kB / 473.4 MB, free: 8.953 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001139/0.1497, allocations: 4 kB / 473.4 MB, free: 8.949 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.704e-05/0.1498, allocations: 15.98 kB / 473.4 MB, free: 8.934 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.488e-06/0.1498, allocations: 4 kB / 473.4 MB, free: 8.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001318/0.1499, allocations: 157.5 kB / 473.5 MB, free: 8.777 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.15, allocations: 0 / 473.5 MB, free: 8.777 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003677/0.1503, allocations: 51.84 kB / 473.6 MB, free: 8.727 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * 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 simulation (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001253/0.1505, allocations: 111.1 kB / 473.7 MB, free: 8.609 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002197/0.1507, allocations: 107.8 kB / 473.8 MB, free: 8.504 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.1507, allocations: 0 / 473.8 MB, free: 8.504 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.312e-05/0.1508, allocations: 53.22 kB / 473.9 MB, free: 8.453 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000444/0.1512, allocations: 36.11 kB / 473.9 MB, free: 8.418 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000738/0.152, allocations: 0.5339 MB / 474.4 MB, free: 7.824 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003278/0.1523, allocations: 0.7518 MB / 475.2 MB, free: 7.043 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001138/0.1524, allocations: 37.52 kB / 475.2 MB, free: 7.008 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.183e-05/0.1525, allocations: 19.44 kB / 475.2 MB, free: 6.988 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1525, allocations: 0 / 475.2 MB, free: 6.988 MB / 350.1 MB Notification: Performance of Templates: time 0.003895/0.1564, allocations: 1.143 MB / 476.4 MB, free: 5.852 MB / 350.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.sim & ./PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.PMeterTest.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches