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.001221/0.00122, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.579/1.579, allocations: 205.1 MB / 223.1 MB, free: 8.457 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.001005/0.001005, allocations: 96.03 kB / 270.5 MB, free: 8.43 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1798/0.1798, allocations: 38.02 MB / 355.8 MB, free: 2.926 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001176/0.001176, allocations: 52.11 kB / 421.9 MB, free: 37.78 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3939/0.3951, allocations: 55.23 MB / 477.1 MB, free: 9.906 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.01102/0.4062, allocations: 9.242 MB / 486.3 MB, free: 3.312 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.006611/0.4129, allocations: 2.892 MB / 489.2 MB, free: 1.273 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002418/0.4154, allocations: 60.75 kB / 489.3 MB, free: 1.25 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002788/0.4182, allocations: 0.7938 MB / 490.1 MB, free: 0.7773 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002619/0.4208, allocations: 493 kB / 490.6 MB, free: 0.5 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001785/0.4226, allocations: 403.9 kB / 491 MB, free: 316 kB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003555/0.4262, allocations: 1.945 MB / 492.9 MB, free: 15.69 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001309/0.4275, allocations: 0.6638 MB / 493.6 MB, free: 15.43 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00122/0.4287, allocations: 487.6 kB / 494 MB, free: 15.22 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001646/0.4304, allocations: 0.6928 MB / 494.7 MB, free: 14.98 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001489/0.4306, allocations: 57.03 kB / 494.8 MB, free: 14.98 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00064/0.4312, allocations: 208 kB / 495 MB, free: 14.93 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000739/0.432, allocations: 471.9 kB / 495.4 MB, free: 14.79 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006701/0.4326, allocations: 0.4996 MB / 495.9 MB, free: 14.51 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001663/0.4343, allocations: 1.207 MB / 497.2 MB, free: 14.04 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.4343, allocations: 4 kB / 497.2 MB, free: 14.04 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.4343, allocations: 0 / 497.2 MB, free: 14.04 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.548e-05/0.4344, allocations: 0 / 497.2 MB, free: 14.04 MB / 330.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.002545/0.4369, allocations: 1.311 MB / 498.5 MB, free: 13.02 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.047e-05/0.437, allocations: 13.2 kB / 498.5 MB, free: 13.01 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008729/0.4378, allocations: 163.7 kB / 498.6 MB, free: 12.93 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001264/0.4391, allocations: 0.6936 MB / 499.3 MB, free: 12.4 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.114e-05/0.4392, allocations: 60.38 kB / 499.4 MB, free: 12.37 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00014/0.4393, allocations: 94.17 kB / 499.5 MB, free: 12.33 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001782/0.4411, allocations: 1.172 MB / 0.4889 GB, free: 11.55 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.855e-05/0.4412, allocations: 7.5 kB / 0.4889 GB, free: 11.55 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.364e-05/0.4413, allocations: 41.16 kB / 0.489 GB, free: 11.52 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.909e-05/0.4414, allocations: 58.03 kB / 0.489 GB, free: 11.5 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001533/0.4429, allocations: 0.9228 MB / 0.4899 GB, free: 11.06 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00603/0.4489, allocations: 4.791 MB / 0.4946 GB, free: 7.062 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001307/0.4503, allocations: 0.6683 MB / 0.4953 GB, free: 6.703 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006062/0.4509, allocations: 378.5 kB / 0.4956 GB, free: 6.516 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.535e-05/0.451, allocations: 11.48 kB / 0.4956 GB, free: 6.508 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000664/0.4516, allocations: 448.3 kB / 0.4961 GB, free: 6.199 MB / 330.7 MB Notification: Performance of pre-optimization done (n=65): time 2.375e-06/0.4517, allocations: 0 / 0.4961 GB, free: 6.199 MB / 330.7 MB Notification: Performance of matching and sorting (n=66): time 0.005708/0.4574, allocations: 2.436 MB / 0.4984 GB, free: 4.719 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001101/0.4575, allocations: 164.4 kB / 0.4986 GB, free: 4.527 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008303/0.4583, allocations: 0.6046 MB / 0.4992 GB, free: 4.172 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.011e-05/0.4584, allocations: 36.8 kB / 0.4992 GB, free: 4.133 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004197/0.4588, allocations: 491.8 kB / 0.4997 GB, free: 3.703 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002323/0.4591, allocations: 220.3 kB / 0.4999 GB, free: 3.516 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002684/0.4593, allocations: 152.1 kB / 0.5 GB, free: 3.418 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002047/0.4596, allocations: 386.8 kB / 0.5004 GB, free: 3.031 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004797/0.4601, allocations: 285.8 kB / 0.5007 GB, free: 2.75 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000615/0.4607, allocations: 0.5563 MB / 0.5012 GB, free: 2.07 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001123/0.4618, allocations: 0.9572 MB / 0.5022 GB, free: 0.9805 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.932e-06/0.4618, allocations: 3.938 kB / 0.5022 GB, free: 0.9766 MB / 330.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002067/0.4639, allocations: 1.231 MB / 0.5034 GB, free: 15.72 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.18e-05/0.464, allocations: 37.7 kB / 0.5034 GB, free: 15.68 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.512e-05/0.464, allocations: 11.98 kB / 0.5034 GB, free: 15.67 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001019/0.465, allocations: 338.2 kB / 0.5037 GB, free: 15.33 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004773/0.4655, allocations: 143.7 kB / 0.5039 GB, free: 15.19 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005836/0.4713, allocations: 4.949 MB / 0.5087 GB, free: 9.949 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007975/0.4722, allocations: 36.03 kB / 0.5087 GB, free: 9.914 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.496e-05/0.4723, allocations: 36 kB / 0.5088 GB, free: 9.879 MB / 346.7 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.0007017/0.473, allocations: 370.8 kB / 0.5091 GB, free: 9.5 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001342/0.4731, allocations: 79.06 kB / 0.5092 GB, free: 9.422 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001897/0.475, allocations: 1.04 MB / 0.5102 GB, free: 8.359 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.046e-05/0.475, allocations: 8 kB / 0.5102 GB, free: 8.352 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-06/0.4751, allocations: 4 kB / 0.5102 GB, free: 8.348 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.269e-05/0.4751, allocations: 7.922 kB / 0.5102 GB, free: 8.34 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00366/0.4787, allocations: 2.059 MB / 0.5123 GB, free: 6.191 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.054e-06/0.4788, allocations: 7.938 kB / 0.5123 GB, free: 6.184 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003126/0.4791, allocations: 75.89 kB / 0.5123 GB, free: 6.109 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009475/0.48, allocations: 309.6 kB / 0.5126 GB, free: 5.801 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.733e-05/0.4801, allocations: 15.94 kB / 0.5126 GB, free: 5.785 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005861/0.486, allocations: 4.88 MB / 0.5174 GB, free: 0.6094 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.095e-06/0.486, allocations: 0 / 0.5174 GB, free: 0.6094 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003172/0.4892, allocations: 2.139 MB / 0.5195 GB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003535/0.4896, allocations: 152.1 kB / 0.5196 GB, free: 14.21 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.615e-05/0.4897, allocations: 15.98 kB / 0.5197 GB, free: 14.2 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000342/0.49, allocations: 16 kB / 0.5197 GB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001858/0.4902, allocations: 64.42 kB / 0.5197 GB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.801e-05/0.4903, allocations: 20 kB / 0.5198 GB, free: 14.1 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005609/0.4909, allocations: 423 kB / 0.5202 GB, free: 13.69 MB / 362.7 MB Notification: Performance of sort global known variables: time 2e-07/0.4909, allocations: 0 / 0.5202 GB, free: 13.69 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001173/0.4921, allocations: 268 kB / 0.5204 GB, free: 13.43 MB / 362.7 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.0001737/0.4922, allocations: 115.2 kB / 0.5205 GB, free: 13.3 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001752/0.494, allocations: 1.156 MB / 0.5217 GB, free: 12.11 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.494, allocations: 0 / 0.5217 GB, free: 12.11 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00099/0.495, allocations: 0.7605 MB / 0.5224 GB, free: 11.32 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008701/0.4959, allocations: 175.4 kB / 0.5226 GB, free: 11.15 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003235/0.4991, allocations: 2.511 MB / 0.525 GB, free: 8.578 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007953/0.5, allocations: 1.133 MB / 0.5261 GB, free: 7.418 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0005234/0.5005, allocations: 174.3 kB / 0.5263 GB, free: 7.242 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001221/0.5006, allocations: 51.42 kB / 0.5263 GB, free: 7.191 MB / 362.7 MB Notification: Performance of SimCode: time 4.41e-07/0.5006, allocations: 0 / 0.5263 GB, free: 7.191 MB / 362.7 MB Notification: Performance of Templates: time 0.01804/0.5187, allocations: 10.73 MB / 0.5368 GB, free: 12.48 MB / 378.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@2/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