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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001142/0.001142, allocations: 182.1 kB / 8.137 MB, free: 2.074 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.41/1.41, allocations: 205.2 MB / 213.7 MB, free: 13.92 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008616/0.0008616, allocations: 101.5 kB / 261.8 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1761/0.1761, allocations: 37.98 MB / 347.7 MB, free: 7.469 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.193e-06/7.223e-06, allocations: 4 kB / 410 MB, free: 46.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1253/0.1253, allocations: 56.32 MB / 466.3 MB, free: 6.465 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3455/0.4709, allocations: 103 MB / 0.556 GB, free: 7.551 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002047/0.4711, allocations: 83.95 kB / 0.5561 GB, free: 7.469 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.06892/0.54, allocations: 25.32 MB / 0.5808 GB, free: 13.84 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.33e-05/0.5401, allocations: 23.94 kB / 0.5808 GB, free: 13.81 MB / 426.7 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.001761/0.5419, allocations: 1.063 MB / 0.5819 GB, free: 12.69 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.009e-05/0.5419, allocations: 8.031 kB / 0.5819 GB, free: 12.68 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008882/0.5428, allocations: 182.6 kB / 0.582 GB, free: 12.5 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003181/0.546, allocations: 1.358 MB / 0.5834 GB, free: 11.1 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.228e-05/0.5461, allocations: 28 kB / 0.5834 GB, free: 11.07 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001052/0.5462, allocations: 48 kB / 0.5834 GB, free: 11.03 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001284/0.5475, allocations: 0.7614 MB / 0.5842 GB, free: 10.27 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001429/0.5489, allocations: 1.035 MB / 0.5852 GB, free: 9.148 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.659e-05/0.5489, allocations: 7.938 kB / 0.5852 GB, free: 9.141 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.653e-05/0.549, allocations: 11.89 kB / 0.5852 GB, free: 9.129 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.505e-05/0.5491, allocations: 45.98 kB / 0.5852 GB, free: 9.082 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005075/0.5542, allocations: 4.588 MB / 0.5897 GB, free: 4.309 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000978/0.5552, allocations: 0.6149 MB / 0.5903 GB, free: 3.676 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004993/0.5557, allocations: 384.2 kB / 0.5907 GB, free: 3.297 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.542e-05/0.5557, allocations: 12.64 kB / 0.5907 GB, free: 3.285 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005383/0.5563, allocations: 443.7 kB / 0.5911 GB, free: 2.82 MB / 426.7 MB Notification: Performance of pre-optimization done (n=69): time 2.785e-06/0.5563, allocations: 0 / 0.5911 GB, free: 2.82 MB / 426.7 MB Notification: Performance of matching and sorting (n=70): time 0.002869/0.5592, allocations: 1.596 MB / 0.5927 GB, free: 1.207 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.66e-05/0.5593, allocations: 166.9 kB / 0.5928 GB, free: 1.008 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005744/0.5599, allocations: 475.2 kB / 0.5933 GB, free: 0.5391 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.679e-05/0.5599, allocations: 25.7 kB / 0.5933 GB, free: 0.5078 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002845/0.5602, allocations: 386.8 kB / 0.5937 GB, free: 124 kB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002165/0.5604, allocations: 232.6 kB / 0.5939 GB, free: 15.89 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.098e-05/0.5605, allocations: 0 / 0.5939 GB, free: 15.89 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002058/0.5607, allocations: 382.8 kB / 0.5943 GB, free: 15.51 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004306/0.5611, allocations: 289.9 kB / 0.5946 GB, free: 15.22 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005673/0.5617, allocations: 0.5315 MB / 0.5951 GB, free: 14.58 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005925/0.5623, allocations: 394.8 kB / 0.5955 GB, free: 14.19 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.5623, allocations: 7.938 kB / 0.5955 GB, free: 14.18 MB / 442.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001991/0.5643, allocations: 1.125 MB / 0.5966 GB, free: 13.04 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.723e-05/0.5643, allocations: 5.406 kB / 0.5966 GB, free: 13.04 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.857e-05/0.5644, allocations: 12 kB / 0.5966 GB, free: 13.03 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001087/0.5655, allocations: 337.4 kB / 0.5969 GB, free: 12.69 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005083/0.566, allocations: 143.8 kB / 0.597 GB, free: 12.55 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005292/0.5713, allocations: 4.495 MB / 0.6014 GB, free: 7.832 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005233/0.5718, allocations: 19.98 kB / 0.6014 GB, free: 7.812 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.095e-05/0.5719, allocations: 36 kB / 0.6015 GB, free: 7.777 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 11 (system.initime,$whenCondition1,$PRE.relayNet.cnt,relayNet.cnt,switch.control[1],$PRE.switch.open,switch.open,$PRE.switch.closed,switch.closed,$PRE.relayNet.y[1],relayNet.y[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 76 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,100.0%) 17,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001932/0.5721, allocations: 170.4 kB / 0.6016 GB, free: 7.602 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.852e-05/0.5722, allocations: 75.16 kB / 0.6017 GB, free: 7.527 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001919/0.5741, allocations: 0.9925 MB / 0.6027 GB, free: 6.52 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.013e-05/0.5742, allocations: 11.98 kB / 0.6027 GB, free: 6.508 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.105e-05/0.5742, allocations: 12 kB / 0.6027 GB, free: 6.496 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.097e-06/0.5742, allocations: 3.984 kB / 0.6027 GB, free: 6.492 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003356/0.5776, allocations: 1.979 MB / 0.6046 GB, free: 4.438 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.754e-06/0.5776, allocations: 8.281 kB / 0.6046 GB, free: 4.43 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000337/0.5779, allocations: 75.89 kB / 0.6047 GB, free: 4.355 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008893/0.5788, allocations: 305.8 kB / 0.605 GB, free: 4.051 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.497e-05/0.5789, allocations: 11.98 kB / 0.605 GB, free: 4.039 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005073/0.584, allocations: 4.449 MB / 0.6094 GB, free: 15.35 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.584, allocations: 0 / 0.6094 GB, free: 15.35 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001861/0.5859, allocations: 1.211 MB / 0.6106 GB, free: 14.02 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001925/0.5861, allocations: 152.1 kB / 0.6107 GB, free: 13.86 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001118/0.5862, allocations: 7.984 kB / 0.6107 GB, free: 13.85 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003741/0.5866, allocations: 19.89 kB / 0.6107 GB, free: 13.83 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001027/0.5867, allocations: 40.39 kB / 0.6108 GB, free: 13.79 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.893e-05/0.5867, allocations: 20 kB / 0.6108 GB, free: 13.77 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.0004649/0.5872, allocations: 363.1 kB / 0.6111 GB, free: 13.42 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001023/0.5882, allocations: 236 kB / 0.6114 GB, free: 13.19 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 7 (switch.open,switch.closed,switch.control[1],$whenCondition1,relayNet.y[1],relayNet.cnt,system.initime) * Number of discrete states: 3 (relayNet.y[1],relayNet.cnt,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 38 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,100.0%) 17,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002921/0.5885, allocations: 169.1 kB / 0.6115 GB, free: 13.02 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001612/0.5902, allocations: 1.054 MB / 0.6125 GB, free: 11.94 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.5902, allocations: 4.25 kB / 0.6125 GB, free: 11.93 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001022/0.5912, allocations: 0.6889 MB / 0.6132 GB, free: 11.22 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007114/0.5919, allocations: 139.2 kB / 0.6134 GB, free: 11.08 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002674/0.5946, allocations: 1.42 MB / 0.6147 GB, free: 9.598 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009587/0.5956, allocations: 1.162 MB / 0.6159 GB, free: 8.41 MB / 458.7 MB Notification: Performance of SimCode: time 2.91e-07/0.5956, allocations: 0 / 0.6159 GB, free: 8.41 MB / 458.7 MB Notification: Performance of Templates: time 0.01949/0.6151, allocations: 10.46 MB / 0.6261 GB, free: 13.95 MB / 474.7 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","../files/PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches