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.001478/0.001478, allocations: 105 kB / 16.92 MB, free: 6.145 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.001696/0.001696, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.415/1.415, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1767/0.1767, allocations: 38.05 MB / 329.7 MB, free: 8.812 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001201/0.001201, allocations: 60.95 kB / 398.8 MB, free: 34.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.106, allocations: 58.07 MB / 456.9 MB, free: 8.055 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.008773/0.1148, allocations: 7.573 MB / 464.4 MB, free: 456 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004077/0.1189, allocations: 2.325 MB / 466.8 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000601/0.1196, allocations: 27.81 kB / 466.8 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002275/0.1218, allocations: 0.8544 MB / 467.6 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001318/0.1232, allocations: 0.5014 MB / 468.1 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001204/0.1244, allocations: 451 kB / 468.6 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001563/0.126, allocations: 1.274 MB / 469.9 MB, free: 11.01 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001/0.127, allocations: 0.6776 MB / 470.5 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009529/0.128, allocations: 0.5524 MB / 471.1 MB, free: 9.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001048/0.129, allocations: 0.654 MB / 471.7 MB, free: 9.113 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001866/0.1292, allocations: 76 kB / 471.8 MB, free: 9.039 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005228/0.1297, allocations: 215.7 kB / 472 MB, free: 8.828 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004819/0.1302, allocations: 486.8 kB / 472.5 MB, free: 8.352 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006809/0.1309, allocations: 0.5325 MB / 473 MB, free: 7.816 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001313/0.1323, allocations: 1.23 MB / 474.3 MB, free: 6.582 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.1323, allocations: 0 / 474.3 MB, free: 6.582 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1323, allocations: 4 kB / 474.3 MB, free: 6.578 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.577e-05/0.1323, allocations: 0 / 474.3 MB, free: 6.578 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.002095/0.1344, allocations: 1.306 MB / 475.6 MB, free: 5.215 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/0.1345, allocations: 15.89 kB / 475.6 MB, free: 5.199 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008674/0.1353, allocations: 163.5 kB / 475.8 MB, free: 5.039 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00104/0.1364, allocations: 0.6843 MB / 476.4 MB, free: 4.312 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.395e-05/0.1365, allocations: 66.36 kB / 476.5 MB, free: 4.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001213/0.1366, allocations: 80.12 kB / 476.6 MB, free: 4.172 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001588/0.1382, allocations: 1.179 MB / 477.8 MB, free: 2.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.568e-05/0.1382, allocations: 4 kB / 477.8 MB, free: 2.906 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.381e-05/0.1383, allocations: 35.94 kB / 477.8 MB, free: 2.871 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.453e-05/0.1384, allocations: 57.98 kB / 477.9 MB, free: 2.816 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001345/0.1397, allocations: 0.9327 MB / 478.8 MB, free: 1.883 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004849/0.1446, allocations: 4.807 MB / 483.6 MB, free: 12.86 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001074/0.1457, allocations: 0.6683 MB / 484.3 MB, free: 12.18 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005432/0.1462, allocations: 379.8 kB / 484.6 MB, free: 11.8 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.523e-05/0.1463, allocations: 8.562 kB / 484.6 MB, free: 11.79 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006257/0.1469, allocations: 443.7 kB / 485.1 MB, free: 11.33 MB / 366.1 MB Notification: Performance of pre-optimization done (n=65): time 2.895e-06/0.1469, allocations: 0 / 485.1 MB, free: 11.33 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.004966/0.1519, allocations: 2.44 MB / 487.5 MB, free: 8.82 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.26e-05/0.152, allocations: 166.8 kB / 487.7 MB, free: 8.621 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006104/0.1526, allocations: 0.6017 MB / 488.3 MB, free: 8.008 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.123e-05/0.1527, allocations: 37.7 kB / 488.3 MB, free: 7.965 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000295/0.153, allocations: 482.6 kB / 488.8 MB, free: 7.484 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001791/0.1532, allocations: 224.9 kB / 489 MB, free: 7.262 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002029/0.1534, allocations: 158.5 kB / 489.2 MB, free: 7.102 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001526/0.1535, allocations: 390.8 kB / 489.5 MB, free: 6.711 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004372/0.154, allocations: 281.8 kB / 489.8 MB, free: 6.434 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005843/0.1546, allocations: 0.5563 MB / 490.4 MB, free: 5.754 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001104/0.1557, allocations: 0.9533 MB / 491.3 MB, free: 4.66 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.108e-05/0.1557, allocations: 7.938 kB / 491.3 MB, free: 4.652 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001939/0.1577, allocations: 1.22 MB / 492.6 MB, free: 3.418 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.601e-05/0.1577, allocations: 33.7 kB / 492.6 MB, free: 3.379 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.698e-05/0.1577, allocations: 8 kB / 492.6 MB, free: 3.371 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001021/0.1587, allocations: 344.1 kB / 492.9 MB, free: 3.031 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004648/0.1592, allocations: 143.8 kB / 493.1 MB, free: 2.891 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00594/0.1652, allocations: 5.408 MB / 498.5 MB, free: 13.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004593/0.1657, allocations: 32 kB / 498.5 MB, free: 13.15 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.199e-05/0.1657, allocations: 39.98 kB / 498.5 MB, free: 13.11 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.0004597/0.1662, allocations: 359 kB / 498.9 MB, free: 12.74 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001054/0.1663, allocations: 79 kB / 499 MB, free: 12.66 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001812/0.1681, allocations: 1.044 MB / 0.4883 GB, free: 11.59 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.662e-06/0.1682, allocations: 4 kB / 0.4883 GB, free: 11.59 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.092e-05/0.1682, allocations: 12 kB / 0.4883 GB, free: 11.57 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.028e-05/0.1682, allocations: 3.984 kB / 0.4883 GB, free: 11.57 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003181/0.1714, allocations: 2.051 MB / 0.4903 GB, free: 9.434 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.668e-06/0.1714, allocations: 4.156 kB / 0.4903 GB, free: 9.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002889/0.1717, allocations: 67.91 kB / 0.4904 GB, free: 9.363 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008306/0.1725, allocations: 317.6 kB / 0.4907 GB, free: 9.047 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.713e-05/0.1726, allocations: 19.94 kB / 0.4907 GB, free: 9.027 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005801/0.1784, allocations: 5.323 MB / 0.4959 GB, free: 3.395 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.1784, allocations: 4 kB / 0.4959 GB, free: 3.391 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001699/0.1801, allocations: 1.115 MB / 0.497 GB, free: 2.23 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001714/0.1803, allocations: 144.2 kB / 0.4971 GB, free: 2.07 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001032/0.1804, allocations: 19.98 kB / 0.4972 GB, free: 2.051 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003275/0.1808, allocations: 16 kB / 0.4972 GB, free: 2.035 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001228/0.1809, allocations: 56.42 kB / 0.4972 GB, free: 1.977 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.949e-05/0.1809, allocations: 20 kB / 0.4973 GB, free: 1.957 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004591/0.1814, allocations: 423 kB / 0.4977 GB, free: 1.551 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1814, allocations: 0 / 0.4977 GB, free: 1.551 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009105/0.1823, allocations: 268 kB / 0.4979 GB, free: 1.289 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.0001594/0.1825, allocations: 130.4 kB / 0.498 GB, free: 1.156 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002069/0.1846, allocations: 1.261 MB / 0.4993 GB, free: 15.86 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.712e-06/0.1846, allocations: 4 kB / 0.4993 GB, free: 15.86 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001114/0.1857, allocations: 0.7605 MB / 0.5 GB, free: 15.06 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008801/0.1866, allocations: 184.9 kB / 0.5002 GB, free: 14.88 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003101/0.1897, allocations: 1.767 MB / 0.5019 GB, free: 13.06 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008655/0.1906, allocations: 1.107 MB / 0.503 GB, free: 11.93 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004834/0.1911, allocations: 170.3 kB / 0.5032 GB, free: 11.76 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001334/0.1912, allocations: 55.38 kB / 0.5032 GB, free: 11.7 MB / 398.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1912, allocations: 0 / 0.5032 GB, free: 11.7 MB / 398.1 MB Notification: Performance of Templates: time 0.02049/0.2117, allocations: 10.78 MB / 0.5137 GB, free: 0.9961 MB / 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.SimulationSteadyState.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches