Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.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.Introductory.ReferenceSynchron,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter_dq0.i.1.|meter_dq0.i.2.|meter_dq0.i.3.|meter_dq0.p.1.|meter_dq0.p.2.|meter_dq0.p.3.|meter_dq0.v.1.|meter_dq0.v.2.|meter_dq0.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron") translateModel(PowerSystems.Examples.Introductory.ReferenceSynchron,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter_dq0.i.1.|meter_dq0.i.2.|meter_dq0.i.3.|meter_dq0.p.1.|meter_dq0.p.2.|meter_dq0.p.3.|meter_dq0.v.1.|meter_dq0.v.2.|meter_dq0.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001326/0.001326, allocations: 97.08 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.0012/0.0012, 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.393/1.393, allocations: 222.9 MB / 241.1 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.177/0.177, allocations: 38.04 MB / 329.3 MB, free: 9.094 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 62.77 kB / 398.1 MB, free: 34.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.1236, allocations: 58.06 MB / 456.2 MB, free: 8.566 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceSynchron): time 0.006763/0.1304, allocations: 5.072 MB / 461.2 MB, free: 3.461 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00272/0.1332, allocations: 1.624 MB / 462.9 MB, free: 1.832 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002468/0.1334, allocations: 27.81 kB / 462.9 MB, free: 1.805 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009438/0.1344, allocations: 350.8 kB / 463.2 MB, free: 1.461 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004916/0.1349, allocations: 227.1 kB / 463.4 MB, free: 1.238 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005199/0.1354, allocations: 219.6 kB / 463.7 MB, free: 1.023 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007297/0.1362, allocations: 0.8693 MB / 464.5 MB, free: 152 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000406/0.1366, allocations: 272.6 kB / 464.8 MB, free: 15.89 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002939/0.1369, allocations: 223 kB / 465 MB, free: 15.67 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004692/0.1374, allocations: 374.9 kB / 465.4 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.941e-05/0.1374, allocations: 28 kB / 465.4 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004489/0.1379, allocations: 243.5 kB / 465.6 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002425/0.1382, allocations: 231.5 kB / 465.9 MB, free: 14.81 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003327/0.1385, allocations: 238.7 kB / 466.1 MB, free: 14.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000942/0.1394, allocations: 0.6503 MB / 466.8 MB, free: 13.92 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/0.1395, allocations: 4 kB / 466.8 MB, free: 13.92 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.1395, allocations: 0 / 466.8 MB, free: 13.92 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.071e-05/0.1395, allocations: 0 / 466.8 MB, free: 13.92 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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.001399/0.1409, allocations: 0.77 MB / 467.5 MB, free: 13.1 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.623e-05/0.1409, allocations: 16.02 kB / 467.5 MB, free: 13.08 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005507/0.1415, allocations: 84.23 kB / 467.6 MB, free: 13 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006353/0.1422, allocations: 407.2 kB / 468 MB, free: 12.56 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.657e-05/0.1422, allocations: 29.31 kB / 468 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001072/0.1423, allocations: 52.11 kB / 468.1 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000981/0.1433, allocations: 0.6765 MB / 468.8 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.441e-05/0.1433, allocations: 4 kB / 468.8 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.242e-05/0.1434, allocations: 16 kB / 468.8 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001698/0.1435, allocations: 52.91 kB / 468.8 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001042/0.1446, allocations: 0.6752 MB / 469.5 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003249/0.1479, allocations: 2.509 MB / 472 MB, free: 8.383 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005048/0.1484, allocations: 337.3 kB / 472.4 MB, free: 8.035 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002921/0.1487, allocations: 226 kB / 472.6 MB, free: 7.809 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.069e-05/0.1487, allocations: 15.97 kB / 472.6 MB, free: 7.793 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.764e-05/0.1488, allocations: 38.5 kB / 472.6 MB, free: 7.746 MB / 350.1 MB Notification: Performance of pre-optimization done (n=42): time 2.946e-06/0.1488, allocations: 0 / 472.6 MB, free: 7.746 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.001977/0.1508, allocations: 1.353 MB / 474 MB, free: 6.336 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.032e-05/0.1508, allocations: 81.11 kB / 474.1 MB, free: 6.238 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002921/0.1511, allocations: 300.6 kB / 474.4 MB, free: 5.934 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.554e-05/0.1512, allocations: 33.7 kB / 474.4 MB, free: 5.895 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001579/0.1513, allocations: 259.5 kB / 474.6 MB, free: 5.633 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001053/0.1514, allocations: 149.8 kB / 474.8 MB, free: 5.484 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001361/0.1516, allocations: 94.16 kB / 474.9 MB, free: 5.383 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000139/0.1517, allocations: 350.8 kB / 475.2 MB, free: 5.031 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002866/0.152, allocations: 193 kB / 475.4 MB, free: 4.844 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004019/0.1524, allocations: 377 kB / 475.8 MB, free: 4.406 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007431/0.1532, allocations: 0.606 MB / 476.4 MB, free: 3.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.1532, allocations: 4 kB / 476.4 MB, free: 3.727 MB / 350.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0009183/0.1541, allocations: 0.6308 MB / 477 MB, free: 3.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.723e-05/0.1542, allocations: 16.06 kB / 477 MB, free: 3.074 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.1542, allocations: 4 kB / 477 MB, free: 3.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.716e-05/0.1542, allocations: 8 kB / 477.1 MB, free: 3.062 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004147/0.1546, allocations: 115.9 kB / 477.2 MB, free: 2.949 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.213e-05/0.1546, allocations: 7.938 kB / 477.2 MB, free: 2.941 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002147/0.1549, allocations: 19.98 kB / 477.2 MB, free: 2.922 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.491e-05/0.1549, allocations: 27.98 kB / 477.2 MB, free: 2.895 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (57): * Single equations (assignments): 55 * Array equations: 2 * 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.0002218/0.1551, allocations: 209.6 kB / 477.4 MB, free: 2.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.157e-05/0.1552, allocations: 43.55 kB / 477.5 MB, free: 2.637 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007724/0.156, allocations: 0.4925 MB / 478 MB, free: 2.137 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.113e-05/0.156, allocations: 15.92 kB / 478 MB, free: 2.121 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.243e-06/0.1561, allocations: 8 kB / 478 MB, free: 2.113 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.992e-06/0.1561, allocations: 7.922 kB / 478 MB, free: 2.105 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001686/0.1578, allocations: 1.093 MB / 479.1 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.1578, allocations: 0 / 479.1 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003598/0.1581, allocations: 75.89 kB / 479.2 MB, free: 0.875 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.517e-06/0.1582, allocations: 3.938 kB / 479.2 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.68e-05/0.1582, allocations: 8 kB / 479.2 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.529e-06/0.1582, allocations: 4 kB / 479.2 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.1582, allocations: 0 / 479.2 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001042/0.1593, allocations: 0.8375 MB / 480 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.884e-05/0.1594, allocations: 108.6 kB / 480.1 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.496e-05/0.1594, allocations: 11.98 kB / 480.1 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002014/0.1596, allocations: 15.98 kB / 480.1 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.039e-05/0.1597, allocations: 27.91 kB / 480.2 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.616e-05/0.1597, allocations: 8 kB / 480.2 MB, free: 15.8 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002023/0.1599, allocations: 215.1 kB / 480.4 MB, free: 15.6 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1599, allocations: 0 / 480.4 MB, free: 15.6 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004741/0.1604, allocations: 108 kB / 480.5 MB, free: 15.49 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (load_dq0.i[1],load_dq0.i[2],load_dq0.i[3]) * 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 (33): * Single equations (assignments): 30 * Array equations: 2 * 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.0002208/0.1606, allocations: 135.1 kB / 480.6 MB, free: 15.35 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007223/0.1614, allocations: 0.4922 MB / 481.1 MB, free: 14.86 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1614, allocations: 0 / 481.1 MB, free: 14.86 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003102/0.1617, allocations: 221.2 kB / 481.3 MB, free: 14.64 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005135/0.1622, allocations: 78.09 kB / 481.4 MB, free: 14.57 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001722/0.164, allocations: 1.303 MB / 482.7 MB, free: 13.23 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004545/0.1644, allocations: 0.8743 MB / 483.6 MB, free: 12.33 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000332/0.1648, allocations: 131.1 kB / 483.7 MB, free: 12.2 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.658e-05/0.1649, allocations: 35.42 kB / 483.8 MB, free: 12.16 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1649, allocations: 0 / 483.8 MB, free: 12.16 MB / 366.1 MB Notification: Performance of Templates: time 0.007629/0.1725, allocations: 3.623 MB / 487.4 MB, free: 8.559 MB / 366.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.sim & ./PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.ReferenceSynchron.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches