Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.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.SimulationSteadyState,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState") translateModel(PowerSystems.Examples.Introductory.SimulationSteadyState,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001126/0.001127, allocations: 113.6 kB / 17.69 MB, free: 5.309 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.001158/0.001158, allocations: 192 kB / 18.63 MB, free: 4.375 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.32/1.32, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1711/0.1711, allocations: 38.03 MB / 330.5 MB, free: 8.793 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 64.25 kB / 400.2 MB, free: 33.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.107, allocations: 58.08 MB / 458.3 MB, free: 7.348 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.008749/0.1157, allocations: 7.574 MB / 465.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003981/0.1198, allocations: 2.309 MB / 468.2 MB, free: 13.42 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004082/0.1202, allocations: 39.75 kB / 468.2 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002111/0.1223, allocations: 0.8479 MB / 469.1 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001056/0.1234, allocations: 0.5092 MB / 469.6 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001125/0.1245, allocations: 443 kB / 470 MB, free: 11.58 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001278/0.1258, allocations: 1.274 MB / 471.3 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008592/0.1267, allocations: 0.6777 MB / 472 MB, free: 9.621 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006982/0.1274, allocations: 0.5602 MB / 472.5 MB, free: 9.059 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008783/0.1283, allocations: 0.654 MB / 473.2 MB, free: 8.402 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001151/0.1284, allocations: 76 kB / 473.3 MB, free: 8.328 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003911/0.1288, allocations: 207.7 kB / 473.5 MB, free: 8.125 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004569/0.1293, allocations: 486.8 kB / 474 MB, free: 7.648 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005364/0.1298, allocations: 0.5403 MB / 474.5 MB, free: 7.105 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001184/0.131, allocations: 1.234 MB / 475.7 MB, free: 5.867 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.131, allocations: 0 / 475.7 MB, free: 5.867 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.1311, allocations: 0 / 475.7 MB, free: 5.867 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.673e-05/0.1311, allocations: 0 / 475.7 MB, free: 5.867 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: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.0022/0.1333, allocations: 1.31 MB / 477 MB, free: 4.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.83e-05/0.1333, allocations: 11.89 kB / 477.1 MB, free: 4.488 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008512/0.1342, allocations: 171.5 kB / 477.2 MB, free: 4.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001362/0.1356, allocations: 0.731 MB / 477.9 MB, free: 3.547 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.078e-05/0.1356, allocations: 62.36 kB / 478 MB, free: 3.488 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001303/0.1358, allocations: 88.11 kB / 478.1 MB, free: 3.402 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001698/0.1375, allocations: 1.175 MB / 479.3 MB, free: 2.145 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.089e-05/0.1375, allocations: 0 / 479.3 MB, free: 2.145 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.02e-05/0.1376, allocations: 39.94 kB / 479.3 MB, free: 2.105 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.307e-05/0.1377, allocations: 57.97 kB / 479.4 MB, free: 2.051 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001408/0.1391, allocations: 0.9288 MB / 480.3 MB, free: 1.121 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005328/0.1444, allocations: 4.768 MB / 485.1 MB, free: 12.14 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001114/0.1456, allocations: 0.6761 MB / 485.7 MB, free: 11.45 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005061/0.1461, allocations: 375.8 kB / 486.1 MB, free: 11.07 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.848e-05/0.1462, allocations: 12.55 kB / 486.1 MB, free: 11.06 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005983/0.1468, allocations: 443.8 kB / 486.6 MB, free: 10.6 MB / 366.1 MB Notification: Performance of pre-optimization done (n=65): time 2.535e-06/0.1468, allocations: 0 / 486.6 MB, free: 10.6 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.005163/0.152, allocations: 2.44 MB / 489 MB, free: 8.09 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.816e-05/0.1521, allocations: 174.7 kB / 489.2 MB, free: 7.883 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006955/0.1528, allocations: 0.5978 MB / 489.8 MB, free: 7.273 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.782e-05/0.1528, allocations: 37.7 kB / 489.8 MB, free: 7.23 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003561/0.1532, allocations: 482.6 kB / 490.3 MB, free: 6.75 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000192/0.1534, allocations: 228.9 kB / 490.5 MB, free: 6.523 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002231/0.1536, allocations: 150.5 kB / 490.6 MB, free: 6.371 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001766/0.1538, allocations: 390.8 kB / 491 MB, free: 5.98 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004482/0.1543, allocations: 281.8 kB / 491.3 MB, free: 5.703 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006198/0.1549, allocations: 0.5602 MB / 491.9 MB, free: 5.02 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001179/0.1561, allocations: 0.9495 MB / 492.8 MB, free: 3.93 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.588e-06/0.1561, allocations: 7.938 kB / 492.8 MB, free: 3.922 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002063/0.1582, allocations: 1.227 MB / 494 MB, free: 2.68 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.15e-05/0.1582, allocations: 33.7 kB / 494.1 MB, free: 2.641 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.582e-05/0.1582, allocations: 12 kB / 494.1 MB, free: 2.629 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001052/0.1593, allocations: 330.1 kB / 494.4 MB, free: 2.301 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005174/0.1598, allocations: 151.7 kB / 494.6 MB, free: 2.152 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006354/0.1662, allocations: 5.4 MB / 500 MB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005899/0.1668, allocations: 32.03 kB / 500 MB, free: 12.42 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.724e-05/0.1669, allocations: 36 kB / 0.4883 GB, free: 12.39 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 11 (system.initime,relayNet.cnt,$PRE.relayNet.cnt,$whenCondition1,relayNet.y[1],$PRE.relayNet.y[1],switch.closed,$PRE.switch.closed,switch.open,$PRE.switch.open,switch.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,17,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005237/0.1674, allocations: 359.1 kB / 0.4886 GB, free: 12.02 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001088/0.1675, allocations: 79 kB / 0.4887 GB, free: 11.94 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002005/0.1696, allocations: 1.036 MB / 0.4897 GB, free: 10.88 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.023e-06/0.1696, allocations: 8 kB / 0.4897 GB, free: 10.87 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.1696, allocations: 7.938 kB / 0.4897 GB, free: 10.86 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/0.1696, allocations: 7.984 kB / 0.4898 GB, free: 10.85 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003469/0.1731, allocations: 2.054 MB / 0.4918 GB, free: 8.711 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.079e-06/0.1731, allocations: 4 kB / 0.4918 GB, free: 8.707 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003187/0.1734, allocations: 71.89 kB / 0.4918 GB, free: 8.637 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009125/0.1744, allocations: 317.7 kB / 0.4921 GB, free: 8.32 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.054e-05/0.1744, allocations: 19.94 kB / 0.4922 GB, free: 8.301 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005821/0.1802, allocations: 5.311 MB / 0.4973 GB, free: 2.68 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.979e-06/0.1803, allocations: 3.938 kB / 0.4973 GB, free: 2.676 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001851/0.1821, allocations: 1.116 MB / 0.4984 GB, free: 1.512 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002332/0.1824, allocations: 144.2 kB / 0.4986 GB, free: 1.352 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.099e-05/0.1825, allocations: 16 kB / 0.4986 GB, free: 1.336 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003346/0.1828, allocations: 23.98 kB / 0.4986 GB, free: 1.312 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001398/0.183, allocations: 56.38 kB / 0.4987 GB, free: 1.258 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.337e-05/0.183, allocations: 16 kB / 0.4987 GB, free: 1.242 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004818/0.1835, allocations: 423 kB / 0.4991 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1835, allocations: 4 kB / 0.4991 GB, free: 0.832 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009855/0.1845, allocations: 264 kB / 0.4993 GB, free: 0.5742 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 7 (switch.open,switch.control[1],switch.closed,$whenCondition1,relayNet.y[1],relayNet.cnt,system.initime) * Number of discrete states: 3 (relayNet.y[1],relayNet.cnt,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,17,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001707/0.1847, allocations: 123.1 kB / 0.4995 GB, free: 456 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001843/0.1865, allocations: 1.156 MB / 0.5006 GB, free: 15.25 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.1866, allocations: 0 / 0.5006 GB, free: 15.25 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001044/0.1876, allocations: 0.7644 MB / 0.5013 GB, free: 14.45 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009058/0.1885, allocations: 179.2 kB / 0.5015 GB, free: 14.29 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00288/0.1914, allocations: 1.747 MB / 0.5032 GB, free: 12.49 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007888/0.1922, allocations: 1.111 MB / 0.5043 GB, free: 11.35 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004333/0.1927, allocations: 170.3 kB / 0.5045 GB, free: 11.18 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00012/0.1928, allocations: 51.44 kB / 0.5045 GB, free: 11.12 MB / 398.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1928, allocations: 0 / 0.5045 GB, free: 11.12 MB / 398.1 MB Notification: Performance of Templates: time 0.0197/0.2125, allocations: 10.79 MB / 0.515 GB, free: 424 kB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.sim & ./PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.SimulationSteadyState.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches