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.001361/0.001361, allocations: 104 kB / 17.59 MB, free: 5.559 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.001477/0.001477, allocations: 191.5 kB / 18.51 MB, free: 4.641 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.365/1.365, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2106/0.2106, allocations: 38.03 MB / 330.4 MB, free: 8.84 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00154/0.00154, allocations: 59.2 kB / 399.5 MB, free: 34.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1042, allocations: 58.06 MB / 457.5 MB, free: 8.074 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Units): time 0.007675/0.1119, allocations: 6.087 MB / 463.6 MB, free: 1.953 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003349/0.1153, allocations: 1.955 MB / 465.6 MB, free: 15.99 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004914/0.1158, allocations: 19.88 kB / 465.6 MB, free: 15.97 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00186/0.1177, allocations: 0.6906 MB / 466.3 MB, free: 15.28 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001011/0.1187, allocations: 382.1 kB / 466.7 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001076/0.1198, allocations: 399.1 kB / 467 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001159/0.121, allocations: 0.9394 MB / 468 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007299/0.1217, allocations: 0.4961 MB / 468.5 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007547/0.1225, allocations: 426.3 kB / 468.9 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008595/0.1234, allocations: 0.5412 MB / 469.4 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001499/0.1235, allocations: 56 kB / 469.5 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005766/0.1241, allocations: 235.6 kB / 469.7 MB, free: 11.83 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004256/0.1245, allocations: 407.1 kB / 470.1 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005864/0.1251, allocations: 426 kB / 470.5 MB, free: 11.01 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00114/0.1263, allocations: 1.001 MB / 471.5 MB, free: 10.01 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.1263, allocations: 0 / 471.5 MB, free: 10.01 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1263, allocations: 0 / 471.5 MB, free: 10.01 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.986e-05/0.1264, allocations: 0 / 471.5 MB, free: 10.01 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.002074/0.1284, allocations: 1.075 MB / 472.6 MB, free: 8.883 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.143e-05/0.1285, allocations: 11.89 kB / 472.6 MB, free: 8.871 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007877/0.1293, allocations: 143.8 kB / 472.8 MB, free: 8.73 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009051/0.1302, allocations: 0.5089 MB / 473.3 MB, free: 8.184 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.862e-05/0.1303, allocations: 58.38 kB / 473.3 MB, free: 8.125 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000122/0.1304, allocations: 84.11 kB / 473.4 MB, free: 8.043 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001643/0.132, allocations: 1.122 MB / 474.5 MB, free: 6.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.436e-05/0.1321, allocations: 7.938 kB / 474.5 MB, free: 6.812 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.603e-05/0.1322, allocations: 39.92 kB / 474.6 MB, free: 6.773 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-05/0.1322, allocations: 49.98 kB / 474.6 MB, free: 6.723 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001386/0.1336, allocations: 0.8662 MB / 475.5 MB, free: 5.859 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005578/0.1392, allocations: 5.063 MB / 480.6 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007173/0.14, allocations: 423.8 kB / 481 MB, free: 136 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003065/0.1403, allocations: 213.6 kB / 481.2 MB, free: 15.92 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.572e-05/0.1404, allocations: 11.97 kB / 481.2 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.56e-05/0.1404, allocations: 38.56 kB / 481.2 MB, free: 15.86 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 2.976e-06/0.1404, allocations: 0 / 481.2 MB, free: 15.86 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.001864/0.1423, allocations: 1.071 MB / 482.3 MB, free: 14.78 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.629e-05/0.1424, allocations: 89.05 kB / 482.4 MB, free: 14.67 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005187/0.1429, allocations: 497.8 kB / 482.9 MB, free: 14.17 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.121e-05/0.1429, allocations: 33.7 kB / 482.9 MB, free: 14.13 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002856/0.1432, allocations: 457.7 kB / 483.4 MB, free: 13.68 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001329/0.1434, allocations: 157.7 kB / 483.5 MB, free: 13.52 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001985/0.1436, allocations: 158.4 kB / 483.7 MB, free: 13.36 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.1437, allocations: 374.8 kB / 484 MB, free: 12.99 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003519/0.1441, allocations: 237.8 kB / 484.3 MB, free: 12.75 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005837/0.1447, allocations: 0.6132 MB / 484.9 MB, free: 11.95 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001044/0.1457, allocations: 0.9379 MB / 485.8 MB, free: 10.83 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.218e-06/0.1457, allocations: 7.984 kB / 485.8 MB, free: 10.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001289/0.147, allocations: 0.8958 MB / 486.7 MB, free: 9.922 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.24e-05/0.1471, allocations: 12 kB / 486.7 MB, free: 9.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.712e-05/0.1471, allocations: 12 kB / 486.7 MB, free: 9.898 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.69e-05/0.1471, allocations: 27.92 kB / 486.8 MB, free: 9.871 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007007/0.1478, allocations: 211.6 kB / 487 MB, free: 9.664 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.649e-05/0.1479, allocations: 27.92 kB / 487 MB, free: 9.637 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004269/0.1483, allocations: 51.95 kB / 487.1 MB, free: 9.586 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.051e-05/0.1484, allocations: 40.12 kB / 487.1 MB, free: 9.547 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.0003564/0.1487, allocations: 313.3 kB / 487.4 MB, free: 9.23 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.964e-05/0.1488, allocations: 55.25 kB / 487.5 MB, free: 9.176 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008983/0.1498, allocations: 0.5564 MB / 488 MB, free: 8.613 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.184e-06/0.1498, allocations: 4 kB / 488 MB, free: 8.609 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.1498, allocations: 4 kB / 488 MB, free: 8.605 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.068e-05/0.1498, allocations: 7.984 kB / 488 MB, free: 8.598 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002008/0.1518, allocations: 1.334 MB / 489.4 MB, free: 7.184 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.163e-06/0.1518, allocations: 4 kB / 489.4 MB, free: 7.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004298/0.1523, allocations: 111.9 kB / 489.5 MB, free: 7.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.008e-05/0.1523, allocations: 7.938 kB / 489.5 MB, free: 7.062 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.032e-05/0.1523, allocations: 8 kB / 489.5 MB, free: 7.055 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.55e-06/0.1523, allocations: 4 kB / 489.5 MB, free: 7.051 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.072e-06/0.1523, allocations: 11.92 kB / 489.5 MB, free: 7.039 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007552/0.1531, allocations: 0.6407 MB / 490.1 MB, free: 6.352 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001189/0.1532, allocations: 132.3 kB / 490.3 MB, free: 6.203 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.378e-05/0.1533, allocations: 27.86 kB / 490.3 MB, free: 6.176 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002431/0.1536, allocations: 15.98 kB / 490.3 MB, free: 6.16 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.086e-05/0.1536, allocations: 31.95 kB / 490.3 MB, free: 6.129 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.725e-05/0.1537, allocations: 16 kB / 490.4 MB, free: 6.113 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003221/0.154, allocations: 334.8 kB / 490.7 MB, free: 5.789 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.154, allocations: 4 kB / 490.7 MB, free: 5.785 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006325/0.1546, allocations: 156 kB / 490.8 MB, free: 5.633 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.0001203/0.1548, allocations: 111.1 kB / 491 MB, free: 5.516 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00103/0.1558, allocations: 0.6924 MB / 491.6 MB, free: 4.824 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.1558, allocations: 0 / 491.6 MB, free: 4.824 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003045/0.1561, allocations: 244.7 kB / 491.9 MB, free: 4.586 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006521/0.1568, allocations: 124.1 kB / 492 MB, free: 4.473 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00221/0.159, allocations: 1.441 MB / 493.4 MB, free: 2.965 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006177/0.1596, allocations: 1.007 MB / 494.5 MB, free: 1.93 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001603/0.1598, allocations: 55.44 kB / 494.5 MB, free: 1.875 MB / 366.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1598, allocations: 0 / 494.5 MB, free: 1.875 MB / 366.1 MB Notification: Performance of Templates: time 0.01281/0.1726, allocations: 8.182 MB / 0.4909 GB, free: 9.703 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.Units.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.Units.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches