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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001054/0.001054, allocations: 176.2 kB / 8.348 MB, free: 0.7266 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.634/1.634, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00124/0.00124, allocations: 94.06 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1816/0.1816, allocations: 37.98 MB / 348 MB, free: 7.781 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.702e-05/1.706e-05, allocations: 4 kB / 410.6 MB, free: 46.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09789/0.09792, allocations: 56.32 MB / 466.9 MB, free: 6.566 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3694/0.4674, allocations: 103 MB / 0.5566 GB, free: 7.895 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001961/0.4676, allocations: 85.12 kB / 0.5566 GB, free: 7.812 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.06874/0.5364, allocations: 25.59 MB / 0.5816 GB, free: 13.92 MB / 427.1 MB Notification: Performance of FrontEnd: time 8.21e-07/0.5364, allocations: 0 / 0.5816 GB, free: 13.92 MB / 427.1 MB Notification: Performance of Transformations before backend: time 4.96e-05/0.5365, allocations: 23.94 kB / 0.5817 GB, free: 13.89 MB / 427.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.001864/0.5383, allocations: 1.05 MB / 0.5827 GB, free: 12.79 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.569e-05/0.5384, allocations: 12.03 kB / 0.5827 GB, free: 12.77 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009215/0.5393, allocations: 186.5 kB / 0.5829 GB, free: 12.59 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003299/0.5426, allocations: 1.342 MB / 0.5842 GB, free: 11.21 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.083e-05/0.5427, allocations: 28 kB / 0.5842 GB, free: 11.18 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001072/0.5428, allocations: 44 kB / 0.5843 GB, free: 11.14 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001256/0.5441, allocations: 0.7341 MB / 0.585 GB, free: 10.4 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00149/0.5456, allocations: 1.015 MB / 0.586 GB, free: 9.309 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.697e-05/0.5456, allocations: 11.84 kB / 0.586 GB, free: 9.297 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.623e-05/0.5457, allocations: 7.984 kB / 0.586 GB, free: 9.289 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.954e-05/0.5458, allocations: 45.98 kB / 0.586 GB, free: 9.242 MB / 427.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005014/0.5508, allocations: 4.545 MB / 0.5905 GB, free: 4.508 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009744/0.5518, allocations: 0.6321 MB / 0.5911 GB, free: 3.859 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004629/0.5523, allocations: 367.9 kB / 0.5914 GB, free: 3.496 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.785e-05/0.5523, allocations: 20.53 kB / 0.5914 GB, free: 3.477 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005634/0.5529, allocations: 430.7 kB / 0.5919 GB, free: 3.027 MB / 427.1 MB Notification: Performance of pre-optimization done (n=69): time 2.024e-06/0.5529, allocations: 0 / 0.5919 GB, free: 3.027 MB / 427.1 MB Notification: Performance of matching and sorting (n=70): time 0.002697/0.5556, allocations: 1.567 MB / 0.5934 GB, free: 1.441 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.548e-05/0.5557, allocations: 166.8 kB / 0.5935 GB, free: 1.242 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005197/0.5562, allocations: 475.2 kB / 0.594 GB, free: 0.7695 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 4.311e-05/0.5563, allocations: 29.7 kB / 0.594 GB, free: 0.7344 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000333/0.5566, allocations: 470.8 kB / 0.5945 GB, free: 272 kB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002015/0.5568, allocations: 236.6 kB / 0.5947 GB, free: 32 kB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.148e-05/0.5569, allocations: 0 / 0.5947 GB, free: 32 kB / 427.1 MB Notification: Performance of setup shared object (initialization): time 0.0002119/0.5571, allocations: 386.8 kB / 0.5951 GB, free: 15.64 MB / 443.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003943/0.5575, allocations: 274.5 kB / 0.5953 GB, free: 15.38 MB / 443.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005593/0.5581, allocations: 0.526 MB / 0.5958 GB, free: 14.73 MB / 443.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005375/0.5586, allocations: 377.8 kB / 0.5962 GB, free: 14.36 MB / 443.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.5586, allocations: 3.938 kB / 0.5962 GB, free: 14.36 MB / 443.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001843/0.5605, allocations: 1.117 MB / 0.5973 GB, free: 13.23 MB / 443.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.64e-05/0.5605, allocations: 37.86 kB / 0.5973 GB, free: 13.18 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.201e-05/0.5606, allocations: 8 kB / 0.5973 GB, free: 13.18 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009736/0.5615, allocations: 337.4 kB / 0.5977 GB, free: 12.84 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004912/0.562, allocations: 139.7 kB / 0.5978 GB, free: 12.7 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005489/0.5675, allocations: 4.761 MB / 0.6025 GB, free: 7.688 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006256/0.5682, allocations: 24.02 kB / 0.6025 GB, free: 7.664 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.341e-05/0.5683, allocations: 39.98 kB / 0.6025 GB, free: 7.625 MB / 443.1 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.0002189/0.5685, allocations: 158.5 kB / 0.6027 GB, free: 7.457 MB / 443.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001027/0.5686, allocations: 67.16 kB / 0.6027 GB, free: 7.391 MB / 443.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0019/0.5705, allocations: 0.98 MB / 0.6037 GB, free: 6.391 MB / 443.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-05/0.5705, allocations: 15.95 kB / 0.6037 GB, free: 6.375 MB / 443.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.624e-06/0.5706, allocations: 8 kB / 0.6037 GB, free: 6.367 MB / 443.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.345e-06/0.5706, allocations: 3.984 kB / 0.6037 GB, free: 6.363 MB / 443.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002921/0.5735, allocations: 1.906 MB / 0.6056 GB, free: 4.395 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.037e-06/0.5735, allocations: 0 / 0.6056 GB, free: 4.395 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003085/0.5738, allocations: 79.89 kB / 0.6056 GB, free: 4.316 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007971/0.5746, allocations: 301.8 kB / 0.6059 GB, free: 4.016 MB / 443.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.849e-05/0.5747, allocations: 7.984 kB / 0.6059 GB, free: 4.008 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004916/0.5796, allocations: 4.708 MB / 0.6105 GB, free: 15.04 MB / 459.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.5796, allocations: 4 kB / 0.6105 GB, free: 15.04 MB / 459.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001927/0.5816, allocations: 1.124 MB / 0.6116 GB, free: 13.84 MB / 459.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002207/0.5818, allocations: 152.1 kB / 0.6118 GB, free: 13.67 MB / 459.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.875e-05/0.5819, allocations: 4 kB / 0.6118 GB, free: 13.66 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003379/0.5822, allocations: 19.91 kB / 0.6118 GB, free: 13.64 MB / 459.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001201/0.5824, allocations: 52.5 kB / 0.6119 GB, free: 13.59 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.616e-05/0.5824, allocations: 23.95 kB / 0.6119 GB, free: 13.57 MB / 459.1 MB Notification: Performance of sorting global known variables: time 0.0004622/0.5829, allocations: 363.1 kB / 0.6122 GB, free: 13.22 MB / 459.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5829, allocations: 0 / 0.6122 GB, free: 13.22 MB / 459.1 MB Notification: Performance of remove unused functions: time 0.0009895/0.5839, allocations: 260 kB / 0.6125 GB, free: 12.97 MB / 459.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.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.0002704/0.5842, allocations: 160.9 kB / 0.6126 GB, free: 12.8 MB / 459.1 MB Notification: Performance of simCode: created initialization part: time 0.001707/0.5859, allocations: 1.097 MB / 0.6137 GB, free: 11.67 MB / 459.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.5859, allocations: 0 / 0.6137 GB, free: 11.67 MB / 459.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009726/0.5869, allocations: 0.7378 MB / 0.6144 GB, free: 10.91 MB / 459.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007299/0.5876, allocations: 143.1 kB / 0.6146 GB, free: 10.76 MB / 459.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002335/0.59, allocations: 1.326 MB / 0.6159 GB, free: 9.387 MB / 459.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007361/0.5907, allocations: 1.124 MB / 0.617 GB, free: 8.238 MB / 459.1 MB Notification: Performance of simCode: alias equations: time 0.0005186/0.5913, allocations: 182 kB / 0.6171 GB, free: 8.059 MB / 459.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001203/0.5914, allocations: 55.38 kB / 0.6172 GB, free: 8.004 MB / 459.1 MB Notification: Performance of SimCode: time 5.81e-07/0.5914, allocations: 0 / 0.6172 GB, free: 8.004 MB / 459.1 MB Notification: Performance of Templates: time 0.01706/0.6085, allocations: 9.779 MB / 0.6267 GB, free: 14.23 MB / 475.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","../files/PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches