Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.InitialSteadyState.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.InitialSteadyState,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.InitialSteadyState") translateModel(PowerSystems.Examples.Introductory.InitialSteadyState,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.InitialSteadyState") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001258/0.001258, allocations: 109.5 kB / 16.51 MB, free: 6.715 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.001754/0.001754, allocations: 190.5 kB / 17.43 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.422/1.422, allocations: 222.9 MB / 241.1 MB, free: 13.64 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.176/0.176, allocations: 38.02 MB / 329.3 MB, free: 8.844 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001554/0.001554, allocations: 63.38 kB / 398.1 MB, free: 34.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1169, allocations: 58.06 MB / 456.2 MB, free: 8.504 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.InitialSteadyState): time 0.006736/0.1237, allocations: 5.065 MB / 461.2 MB, free: 3.406 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003102/0.1268, allocations: 1.636 MB / 462.9 MB, free: 1.766 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005953/0.1275, allocations: 23.88 kB / 462.9 MB, free: 1.742 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001537/0.129, allocations: 346.7 kB / 463.2 MB, free: 1.402 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008995/0.1299, allocations: 235.1 kB / 463.4 MB, free: 1.172 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001015/0.131, allocations: 219.6 kB / 463.7 MB, free: 0.957 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001205/0.1322, allocations: 0.8693 MB / 464.5 MB, free: 88 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006266/0.1328, allocations: 272.6 kB / 464.8 MB, free: 15.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005158/0.1334, allocations: 219 kB / 465 MB, free: 15.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000705/0.1341, allocations: 378.9 kB / 465.4 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001414/0.1342, allocations: 24 kB / 465.4 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006947/0.1349, allocations: 243.5 kB / 465.6 MB, free: 14.97 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003201/0.1353, allocations: 223.4 kB / 465.9 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005275/0.1358, allocations: 242.8 kB / 466.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000835/0.1366, allocations: 0.6503 MB / 466.7 MB, free: 13.86 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.572e-06/0.1367, allocations: 4 kB / 466.8 MB, free: 13.86 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1367, allocations: 0 / 466.8 MB, free: 13.86 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.655e-05/0.1367, allocations: 0 / 466.8 MB, free: 13.86 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.001711/0.1384, allocations: 0.7661 MB / 467.5 MB, free: 13.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.825e-05/0.1385, allocations: 8.031 kB / 467.5 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007242/0.1392, allocations: 96.22 kB / 467.6 MB, free: 12.94 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008541/0.1401, allocations: 415.1 kB / 468 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.663e-05/0.1401, allocations: 33.31 kB / 468.1 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001812/0.1403, allocations: 48.11 kB / 468.1 MB, free: 12.42 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001245/0.1416, allocations: 0.6804 MB / 468.8 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.48e-05/0.1416, allocations: 0 / 468.8 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.451e-05/0.1417, allocations: 16 kB / 468.8 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001918/0.1419, allocations: 52.95 kB / 468.9 MB, free: 11.63 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001093/0.143, allocations: 0.6713 MB / 469.5 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003574/0.1466, allocations: 2.433 MB / 472 MB, free: 8.406 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005964/0.1472, allocations: 365.7 kB / 472.3 MB, free: 8.031 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003703/0.1476, allocations: 250.3 kB / 472.6 MB, free: 7.781 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.937e-05/0.1476, allocations: 8.281 kB / 472.6 MB, free: 7.773 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.743e-05/0.1476, allocations: 34.84 kB / 472.6 MB, free: 7.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 2.254e-06/0.1477, allocations: 0 / 472.6 MB, free: 7.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=46): time 0.002688/0.1503, allocations: 1.474 MB / 474.1 MB, free: 6.203 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.381e-05/0.1504, allocations: 81.11 kB / 474.2 MB, free: 6.105 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003458/0.1508, allocations: 299 kB / 474.4 MB, free: 5.797 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.56e-05/0.1508, allocations: 29.7 kB / 474.5 MB, free: 5.762 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001916/0.151, allocations: 247.7 kB / 474.7 MB, free: 5.512 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001659/0.1512, allocations: 161.6 kB / 474.9 MB, free: 5.352 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001784/0.1514, allocations: 90.25 kB / 475 MB, free: 5.258 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001622/0.1515, allocations: 346.8 kB / 475.3 MB, free: 4.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003311/0.1519, allocations: 217 kB / 475.5 MB, free: 4.699 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004377/0.1523, allocations: 365.7 kB / 475.9 MB, free: 4.285 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00088/0.1532, allocations: 0.6278 MB / 476.5 MB, free: 3.598 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.462e-06/0.1532, allocations: 4 kB / 476.5 MB, free: 3.594 MB / 350.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001323/0.1546, allocations: 0.7084 MB / 477.2 MB, free: 2.871 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.489e-05/0.1546, allocations: 11.94 kB / 477.2 MB, free: 2.859 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0009174/0.1555, allocations: 0.5225 MB / 477.7 MB, free: 2.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003634/0.1559, allocations: 72.78 kB / 477.8 MB, free: 2.266 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004305/0.1563, allocations: 112.1 kB / 477.9 MB, free: 2.156 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001889/0.1582, allocations: 1.592 MB / 479.5 MB, free: 444 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003215/0.1586, allocations: 40.02 kB / 479.6 MB, free: 404 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.384e-05/0.1586, allocations: 24 kB / 479.6 MB, free: 380 kB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (54): * Single equations (assignments): 51 * Array equations: 2 * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003036/0.159, allocations: 209.7 kB / 479.8 MB, free: 160 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001274/0.1591, allocations: 35.67 kB / 479.8 MB, free: 124 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001/0.1601, allocations: 0.5744 MB / 480.4 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.617e-05/0.1601, allocations: 15.94 kB / 480.4 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-06/0.1602, allocations: 4 kB / 480.4 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.418e-06/0.1602, allocations: 3.984 kB / 480.4 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001935/0.1621, allocations: 1.196 MB / 481.6 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.516e-06/0.1621, allocations: 3.938 kB / 481.6 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004122/0.1625, allocations: 87.88 kB / 481.7 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.919e-06/0.1626, allocations: 4.094 kB / 481.7 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.431e-05/0.1626, allocations: 8 kB / 481.7 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.763e-06/0.1626, allocations: 7.984 kB / 481.7 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.1626, allocations: 0 / 481.7 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001308/0.1639, allocations: 0.9336 MB / 482.7 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.492e-05/0.164, allocations: 108.6 kB / 482.8 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.718e-05/0.1641, allocations: 8 kB / 482.8 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002394/0.1644, allocations: 23.97 kB / 482.8 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.377e-05/0.1644, allocations: 23.97 kB / 482.8 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.319e-05/0.1645, allocations: 12 kB / 482.8 MB, free: 12.99 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000205/0.1647, allocations: 197.9 kB / 483 MB, free: 12.8 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1647, allocations: 0 / 483 MB, free: 12.8 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005291/0.1652, allocations: 120 kB / 483.1 MB, free: 12.68 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 (39): * Single equations (assignments): 36 * 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.0002358/0.1655, allocations: 131.5 kB / 483.3 MB, free: 12.54 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001031/0.1665, allocations: 0.6725 MB / 483.9 MB, free: 11.85 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.1665, allocations: 4.188 kB / 483.9 MB, free: 11.85 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000354/0.1669, allocations: 263.4 kB / 484.2 MB, free: 11.59 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005272/0.1674, allocations: 64.61 kB / 484.3 MB, free: 11.53 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001919/0.1693, allocations: 1.369 MB / 485.6 MB, free: 10.12 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004728/0.1698, allocations: 0.8782 MB / 486.5 MB, free: 9.215 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003601/0.1702, allocations: 127.1 kB / 486.6 MB, free: 9.09 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001146/0.1703, allocations: 31.44 kB / 486.7 MB, free: 9.062 MB / 366.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1703, allocations: 0 / 486.7 MB, free: 9.062 MB / 366.1 MB Notification: Performance of Templates: time 0.008769/0.1791, allocations: 4.261 MB / 490.9 MB, free: 4.836 MB / 366.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Introductory.InitialSteadyState.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.InitialSteadyState.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.InitialSteadyState.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.InitialSteadyState.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.InitialSteadyState.sim & ./PowerSystems_latest_PowerSystems.Examples.Introductory.InitialSteadyState -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Introductory.InitialSteadyState.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.InitialSteadyState_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.InitialSteadyState.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.InitialSteadyState.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches