Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.Units.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.Units,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|meter_SI.i.1.|meter_SI.i.2.|meter_SI.i.3.|meter_SI.p.1.|meter_SI.p.2.|meter_SI.p.3.|meter_SI.v.1.|meter_SI.v.2.|meter_SI.v.3.|meter_pu.i.1.|meter_pu.i.2.|meter_pu.i.3.|meter_pu.p.1.|meter_pu.p.2.|meter_pu.p.3.|meter_pu.v.1.|meter_pu.v.2.|meter_pu.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.Units") translateModel(PowerSystems.Examples.Introductory.Units,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|meter_SI.i.1.|meter_SI.i.2.|meter_SI.i.3.|meter_SI.p.1.|meter_SI.p.2.|meter_SI.p.3.|meter_SI.v.1.|meter_SI.v.2.|meter_SI.v.3.|meter_pu.i.1.|meter_pu.i.2.|meter_pu.i.3.|meter_pu.p.1.|meter_pu.p.2.|meter_pu.p.3.|meter_pu.v.1.|meter_pu.v.2.|meter_pu.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.Units") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001418/0.001418, allocations: 112.3 kB / 16.62 MB, free: 6.812 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.001538/0.001538, allocations: 185.8 kB / 17.55 MB, free: 5.934 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.341/1.341, allocations: 222.9 MB / 241.2 MB, free: 15.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1762/0.1762, allocations: 38.04 MB / 329.4 MB, free: 9.031 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001471/0.001471, allocations: 61.27 kB / 398.3 MB, free: 34.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1116, allocations: 58.06 MB / 456.3 MB, free: 8.434 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Units): time 0.007795/0.1194, allocations: 7.353 MB / 463.7 MB, free: 1.043 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003894/0.1234, allocations: 2.321 MB / 466 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005292/0.1239, allocations: 43.75 kB / 466.1 MB, free: 14.67 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001633/0.1255, allocations: 0.6531 MB / 466.7 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009974/0.1266, allocations: 350.5 kB / 467.1 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00132/0.1279, allocations: 371.4 kB / 467.4 MB, free: 13.31 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001247/0.1292, allocations: 0.9316 MB / 468.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008881/0.1301, allocations: 0.5508 MB / 468.9 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007189/0.1308, allocations: 418.3 kB / 469.3 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006655/0.1315, allocations: 0.5764 MB / 469.9 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.863e-05/0.1316, allocations: 56 kB / 469.9 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004243/0.132, allocations: 243.6 kB / 470.2 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003394/0.1324, allocations: 423 kB / 470.6 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003776/0.1327, allocations: 426 kB / 471 MB, free: 9.707 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009392/0.1337, allocations: 1.005 MB / 472 MB, free: 8.699 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.1337, allocations: 0 / 472 MB, free: 8.699 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1337, allocations: 0 / 472 MB, free: 8.699 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.849e-06/0.1337, allocations: 0 / 472 MB, free: 8.699 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: 208 * Number of variables: 208 Notification: Performance of Generate backend data structure: time 0.00166/0.1354, allocations: 1.072 MB / 473.1 MB, free: 7.574 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/0.1354, allocations: 11.89 kB / 473.1 MB, free: 7.562 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007268/0.1362, allocations: 143.8 kB / 473.2 MB, free: 7.422 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007115/0.1369, allocations: 0.5166 MB / 473.8 MB, free: 6.863 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.322e-05/0.137, allocations: 58.38 kB / 473.8 MB, free: 6.805 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001104/0.1371, allocations: 76.12 kB / 473.9 MB, free: 6.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001518/0.1386, allocations: 1.134 MB / 475 MB, free: 5.496 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.672e-05/0.1386, allocations: 4 kB / 475 MB, free: 5.492 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.221e-05/0.1387, allocations: 32 kB / 475.1 MB, free: 5.461 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.448e-05/0.1388, allocations: 49.98 kB / 475.1 MB, free: 5.41 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001261/0.1401, allocations: 0.8623 MB / 476 MB, free: 4.551 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004993/0.1451, allocations: 5.078 MB / 481 MB, free: 15.24 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006675/0.1457, allocations: 419.7 kB / 481.5 MB, free: 14.81 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002955/0.146, allocations: 217.7 kB / 481.7 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.308e-05/0.1461, allocations: 4 kB / 481.7 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.18e-05/0.1461, allocations: 38.56 kB / 481.7 MB, free: 14.54 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 2.344e-06/0.1461, allocations: 0 / 481.7 MB, free: 14.54 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.001815/0.148, allocations: 1.072 MB / 482.8 MB, free: 13.46 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.358e-05/0.148, allocations: 89.19 kB / 482.9 MB, free: 13.36 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005055/0.1485, allocations: 0.49 MB / 483.4 MB, free: 12.85 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.7e-05/0.1486, allocations: 33.7 kB / 483.4 MB, free: 12.81 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002798/0.1489, allocations: 457.6 kB / 483.8 MB, free: 12.36 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001267/0.149, allocations: 153.8 kB / 484 MB, free: 12.21 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001899/0.1492, allocations: 154.4 kB / 484.1 MB, free: 12.05 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.1494, allocations: 370.8 kB / 484.5 MB, free: 11.68 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003362/0.1497, allocations: 233.9 kB / 484.7 MB, free: 11.45 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005504/0.1503, allocations: 0.617 MB / 485.3 MB, free: 10.65 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009737/0.1512, allocations: 0.9418 MB / 486.3 MB, free: 9.523 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-06/0.1513, allocations: 4 kB / 486.3 MB, free: 9.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001236/0.1525, allocations: 0.8958 MB / 487.2 MB, free: 8.617 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.429e-05/0.1525, allocations: 12 kB / 487.2 MB, free: 8.605 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.658e-05/0.1526, allocations: 16.12 kB / 487.2 MB, free: 8.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.046e-05/0.1526, allocations: 23.94 kB / 487.2 MB, free: 8.566 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00071/0.1533, allocations: 207.7 kB / 487.4 MB, free: 8.363 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.636e-05/0.1533, allocations: 31.86 kB / 487.5 MB, free: 8.332 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004058/0.1538, allocations: 55.86 kB / 487.5 MB, free: 8.277 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.157e-05/0.1538, allocations: 40 kB / 487.6 MB, free: 8.238 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * 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 (99): * Single equations (assignments): 99 * 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.0003276/0.1542, allocations: 309.3 kB / 487.9 MB, free: 7.926 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.145e-05/0.1543, allocations: 55.34 kB / 487.9 MB, free: 7.871 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008881/0.1551, allocations: 0.5602 MB / 488.5 MB, free: 7.305 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.1552, allocations: 4 kB / 488.5 MB, free: 7.301 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.1552, allocations: 4 kB / 488.5 MB, free: 7.297 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.1552, allocations: 0 / 488.5 MB, free: 7.297 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001867/0.1571, allocations: 1.336 MB / 489.8 MB, free: 5.879 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/0.1571, allocations: 8.031 kB / 489.8 MB, free: 5.871 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004363/0.1575, allocations: 107.9 kB / 489.9 MB, free: 5.766 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.696e-06/0.1575, allocations: 7.938 kB / 489.9 MB, free: 5.758 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.9e-05/0.1576, allocations: 8 kB / 490 MB, free: 5.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.142e-06/0.1576, allocations: 11.92 kB / 490 MB, free: 5.738 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.1576, allocations: 4 kB / 490 MB, free: 5.734 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007318/0.1583, allocations: 0.6404 MB / 490.6 MB, free: 5.047 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001028/0.1584, allocations: 128.4 kB / 490.7 MB, free: 4.902 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.159e-05/0.1585, allocations: 19.94 kB / 490.8 MB, free: 4.883 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002635/0.1588, allocations: 19.97 kB / 490.8 MB, free: 4.863 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.093e-05/0.1589, allocations: 27.97 kB / 490.8 MB, free: 4.836 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.892e-05/0.1589, allocations: 19.98 kB / 490.8 MB, free: 4.816 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003368/0.1592, allocations: 334.8 kB / 491.1 MB, free: 4.492 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1592, allocations: 0 / 491.1 MB, free: 4.492 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006732/0.1599, allocations: 156 kB / 491.3 MB, free: 4.34 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (51): * Single equations (assignments): 50 * 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.0001153/0.16, allocations: 119.2 kB / 491.4 MB, free: 4.215 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001014/0.1611, allocations: 0.6968 MB / 492.1 MB, free: 3.52 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.1611, allocations: 0 / 492.1 MB, free: 3.52 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003132/0.1614, allocations: 237.3 kB / 492.3 MB, free: 3.289 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006727/0.1621, allocations: 120.8 kB / 492.5 MB, free: 3.176 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002243/0.1643, allocations: 1.682 MB / 494.1 MB, free: 1.434 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005814/0.1649, allocations: 1.007 MB / 495.1 MB, free: 408 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005608/0.1655, allocations: 225 kB / 495.4 MB, free: 184 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001305/0.1656, allocations: 47.38 kB / 495.4 MB, free: 136 kB / 366.1 MB Notification: Performance of SimCode: time 6.51e-07/0.1656, allocations: 4 kB / 495.4 MB, free: 132 kB / 366.1 MB Notification: Performance of Templates: time 0.01048/0.1761, allocations: 5.557 MB / 0.4892 GB, free: 10.61 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Introductory.Units.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.Units.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.Units.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.Units.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.Units.sim & ./PowerSystems_latest_PowerSystems.Examples.Introductory.Units -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Introductory.Units.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.Units_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.Units.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.Units.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches