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.001296/0.001296, allocations: 114.7 kB / 16.51 MB, free: 6.652 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.001337/0.001337, allocations: 199.9 kB / 17.43 MB, free: 6.035 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.364/1.364, allocations: 222.9 MB / 241.1 MB, free: 15.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.183/0.183, allocations: 38.03 MB / 329.3 MB, free: 9.094 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 61.23 kB / 398.1 MB, free: 34.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1116, allocations: 58.06 MB / 456.2 MB, free: 8.555 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.009351/0.121, allocations: 9.222 MB / 465.4 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005584/0.1266, allocations: 2.851 MB / 468.2 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007966/0.1274, allocations: 59.62 kB / 468.3 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002375/0.1298, allocations: 0.8112 MB / 469.1 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001246/0.1311, allocations: 485.9 kB / 469.6 MB, free: 11.08 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001312/0.1324, allocations: 395.3 kB / 470 MB, free: 10.69 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002117/0.1346, allocations: 1.937 MB / 471.9 MB, free: 8.746 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001035/0.1356, allocations: 0.6617 MB / 472.6 MB, free: 8.082 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007586/0.1364, allocations: 485.8 kB / 473 MB, free: 7.605 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009059/0.1373, allocations: 0.693 MB / 473.7 MB, free: 6.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001064/0.1374, allocations: 56 kB / 473.8 MB, free: 6.855 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005043/0.1379, allocations: 211.6 kB / 474 MB, free: 6.648 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004384/0.1384, allocations: 478.7 kB / 474.5 MB, free: 6.18 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005248/0.1389, allocations: 0.4936 MB / 474.9 MB, free: 5.684 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001085/0.14, allocations: 1.203 MB / 476.1 MB, free: 4.477 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.815e-06/0.14, allocations: 4 kB / 476.2 MB, free: 4.473 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.82e-07/0.14, allocations: 0 / 476.2 MB, free: 4.473 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.504e-05/0.1401, allocations: 0 / 476.2 MB, free: 4.473 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.002553/0.1426, allocations: 1.306 MB / 477.5 MB, free: 3.105 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.246e-05/0.1427, allocations: 8.031 kB / 477.5 MB, free: 3.098 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009374/0.1436, allocations: 167.4 kB / 477.6 MB, free: 2.934 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001162/0.1448, allocations: 0.6883 MB / 478.3 MB, free: 2.207 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.663e-05/0.1449, allocations: 62.38 kB / 478.4 MB, free: 2.145 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001346/0.145, allocations: 92.02 kB / 478.5 MB, free: 2.055 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00163/0.1466, allocations: 1.179 MB / 479.6 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.842e-05/0.1467, allocations: 7.938 kB / 479.7 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.606e-05/0.1468, allocations: 32 kB / 479.7 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.594e-05/0.1468, allocations: 61.91 kB / 479.7 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001415/0.1483, allocations: 0.9289 MB / 480.7 MB, free: 15.77 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005483/0.1538, allocations: 4.791 MB / 485.5 MB, free: 10.76 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001179/0.155, allocations: 0.6778 MB / 486.1 MB, free: 10.06 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005449/0.1555, allocations: 383.8 kB / 486.5 MB, free: 9.68 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.168e-05/0.1556, allocations: 20.55 kB / 486.5 MB, free: 9.66 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005866/0.1562, allocations: 435.8 kB / 487 MB, free: 9.207 MB / 366.1 MB Notification: Performance of pre-optimization done (n=65): time 2.705e-06/0.1562, allocations: 0 / 487 MB, free: 9.207 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.00517/0.1614, allocations: 2.44 MB / 489.4 MB, free: 6.699 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.534e-05/0.1615, allocations: 170.8 kB / 489.6 MB, free: 6.496 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007279/0.1622, allocations: 0.6017 MB / 490.2 MB, free: 5.887 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.342e-05/0.1623, allocations: 37.7 kB / 490.2 MB, free: 5.844 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003518/0.1626, allocations: 482.6 kB / 490.7 MB, free: 5.363 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001849/0.1628, allocations: 224.8 kB / 490.9 MB, free: 5.141 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000213/0.163, allocations: 162.5 kB / 491.1 MB, free: 4.977 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001835/0.1632, allocations: 386.8 kB / 491.4 MB, free: 4.59 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004564/0.1637, allocations: 277.8 kB / 491.7 MB, free: 4.316 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006491/0.1644, allocations: 0.5602 MB / 492.3 MB, free: 3.633 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001219/0.1656, allocations: 0.9534 MB / 493.2 MB, free: 2.543 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.344e-06/0.1656, allocations: 7.938 kB / 493.2 MB, free: 2.535 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002042/0.1676, allocations: 1.215 MB / 494.4 MB, free: 1.301 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.166e-05/0.1677, allocations: 37.7 kB / 494.5 MB, free: 1.258 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.457e-05/0.1677, allocations: 12.83 kB / 494.5 MB, free: 1.246 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00104/0.1688, allocations: 333.5 kB / 494.8 MB, free: 0.9141 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004758/0.1693, allocations: 147.7 kB / 495 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005641/0.1749, allocations: 4.954 MB / 499.9 MB, free: 11.53 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005168/0.1755, allocations: 32.03 kB / 499.9 MB, free: 11.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.319e-05/0.1755, allocations: 40 kB / 500 MB, free: 11.46 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.0004838/0.176, allocations: 363 kB / 0.4886 GB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001/0.1761, allocations: 75.06 kB / 0.4887 GB, free: 11.01 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001815/0.1779, allocations: 1.036 MB / 0.4897 GB, free: 9.945 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.864e-06/0.178, allocations: 8 kB / 0.4897 GB, free: 9.938 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.178, allocations: 4 kB / 0.4897 GB, free: 9.934 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.091e-05/0.178, allocations: 11.92 kB / 0.4897 GB, free: 9.922 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003134/0.1811, allocations: 2.059 MB / 0.4917 GB, free: 7.777 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.081e-06/0.1812, allocations: 4 kB / 0.4917 GB, free: 7.773 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003167/0.1815, allocations: 76.05 kB / 0.4918 GB, free: 7.699 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008952/0.1824, allocations: 309.5 kB / 0.4921 GB, free: 7.391 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.121e-05/0.1824, allocations: 12 kB / 0.4921 GB, free: 7.379 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005516/0.188, allocations: 4.879 MB / 0.4969 GB, free: 2.203 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.538e-06/0.188, allocations: 4 kB / 0.4969 GB, free: 2.199 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001943/0.19, allocations: 1.123 MB / 0.498 GB, free: 1.031 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002537/0.1902, allocations: 148.2 kB / 0.4981 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.908e-05/0.1903, allocations: 16 kB / 0.4981 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003301/0.1907, allocations: 19.98 kB / 0.4982 GB, free: 0.832 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001453/0.1908, allocations: 56.38 kB / 0.4982 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.389e-05/0.1909, allocations: 20 kB / 0.4982 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004977/0.1914, allocations: 423 kB / 0.4986 GB, free: 352 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1914, allocations: 0 / 0.4986 GB, free: 352 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009175/0.1923, allocations: 264 kB / 0.4989 GB, free: 88 kB / 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.0001683/0.1925, allocations: 127.1 kB / 0.499 GB, free: 15.95 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001829/0.1943, allocations: 1.14 MB / 0.5001 GB, free: 14.78 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.1944, allocations: 0 / 0.5001 GB, free: 14.78 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001081/0.1954, allocations: 0.7682 MB / 0.5009 GB, free: 13.98 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009155/0.1964, allocations: 173.4 kB / 0.501 GB, free: 13.81 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003048/0.1994, allocations: 2.141 MB / 0.5031 GB, free: 11.62 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007688/0.2002, allocations: 1.107 MB / 0.5042 GB, free: 10.49 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005181/0.2007, allocations: 170.3 kB / 0.5044 GB, free: 10.32 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001217/0.2009, allocations: 47.44 kB / 0.5044 GB, free: 10.27 MB / 398.1 MB Notification: Performance of SimCode: time 1.062e-06/0.2009, allocations: 4 kB / 0.5044 GB, free: 10.27 MB / 398.1 MB Notification: Performance of Templates: time 0.01926/0.2201, allocations: 10.25 MB / 0.5144 GB, free: 96 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 -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