Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.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.SimulationFixedInitial,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.SimulationFixedInitial") translateModel(PowerSystems.Examples.Introductory.SimulationFixedInitial,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.SimulationFixedInitial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001956/0.001956, 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.665/1.665, allocations: 205.1 MB / 223.1 MB, free: 8.461 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.001113/0.001112, allocations: 90.3 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.1804/0.1804, allocations: 38 MB / 355.8 MB, free: 2.922 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001638/0.001638, allocations: 51.92 kB / 421.9 MB, free: 37.76 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4121/0.4138, allocations: 55.23 MB / 477.1 MB, free: 9.898 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.01044/0.4243, allocations: 9.228 MB / 486.3 MB, free: 3.316 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.006872/0.4312, allocations: 2.895 MB / 489.2 MB, free: 1.273 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001751/0.433, allocations: 64.53 kB / 489.3 MB, free: 1.246 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002513/0.4355, allocations: 0.7883 MB / 490.1 MB, free: 0.7773 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002069/0.4376, allocations: 481.4 kB / 490.5 MB, free: 0.5117 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001673/0.4393, allocations: 407.8 kB / 490.9 MB, free: 324 kB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.00388/0.4432, allocations: 1.99 MB / 492.9 MB, free: 15.68 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001735/0.445, allocations: 0.6682 MB / 493.6 MB, free: 15.42 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001692/0.4467, allocations: 0.4924 MB / 494.1 MB, free: 15.21 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001669/0.4484, allocations: 0.7254 MB / 494.8 MB, free: 14.96 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001645/0.4485, allocations: 56.12 kB / 494.9 MB, free: 14.96 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001002/0.4495, allocations: 257.5 kB / 495.1 MB, free: 14.89 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009363/0.4505, allocations: 0.4917 MB / 495.6 MB, free: 14.74 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008897/0.4514, allocations: 0.5134 MB / 496.1 MB, free: 14.45 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002139/0.4535, allocations: 1.287 MB / 497.4 MB, free: 13.89 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.4536, allocations: 0.9375 kB / 497.4 MB, free: 13.89 MB / 330.7 MB Notification: Performance of FrontEnd: time 4.168e-06/0.4536, allocations: 0 / 497.4 MB, free: 13.89 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.136e-05/0.4536, allocations: 7.938 kB / 497.4 MB, free: 13.89 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.003213/0.4568, allocations: 1.34 MB / 498.8 MB, free: 12.85 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.457e-05/0.4569, allocations: 13.39 kB / 498.8 MB, free: 12.85 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00112/0.458, allocations: 167.1 kB / 498.9 MB, free: 12.77 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001836/0.4599, allocations: 0.7002 MB / 499.6 MB, free: 12.23 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001136/0.46, allocations: 62.06 kB / 499.7 MB, free: 12.21 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003187/0.4603, allocations: 112.6 kB / 499.8 MB, free: 12.16 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002646/0.463, allocations: 1.221 MB / 0.4893 GB, free: 11.36 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.999e-05/0.463, allocations: 6.312 kB / 0.4893 GB, free: 11.36 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.753e-05/0.4631, allocations: 33.59 kB / 0.4893 GB, free: 11.34 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003099/0.4635, allocations: 61.56 kB / 0.4894 GB, free: 11.32 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002123/0.4656, allocations: 1.014 MB / 0.4904 GB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00774/0.4733, allocations: 4.77 MB / 0.495 GB, free: 6.957 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001315/0.4747, allocations: 0.6651 MB / 0.4957 GB, free: 6.594 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007443/0.4755, allocations: 447.9 kB / 0.4961 GB, free: 6.371 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.072e-05/0.4755, allocations: 11.64 kB / 0.4961 GB, free: 6.367 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008197/0.4764, allocations: 0.5015 MB / 0.4966 GB, free: 6.027 MB / 330.7 MB Notification: Performance of pre-optimization done (n=69): time 2.154e-06/0.4764, allocations: 5.312 kB / 0.4966 GB, free: 6.023 MB / 330.7 MB Notification: Performance of matching and sorting (n=73): time 0.005357/0.4817, allocations: 2.781 MB / 0.4993 GB, free: 4.234 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.254e-05/0.4818, allocations: 174.7 kB / 0.4995 GB, free: 4.027 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007049/0.4826, allocations: 0.5822 MB / 0.5001 GB, free: 3.438 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.135e-05/0.4826, allocations: 41.7 kB / 0.5001 GB, free: 3.391 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003993/0.483, allocations: 486.9 kB / 0.5006 GB, free: 2.906 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002402/0.4833, allocations: 256.5 kB / 0.5008 GB, free: 2.652 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002595/0.4835, allocations: 170.5 kB / 0.501 GB, free: 2.48 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.4837, allocations: 394.7 kB / 0.5013 GB, free: 2.086 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005565/0.4843, allocations: 377.8 kB / 0.5017 GB, free: 1.715 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007542/0.485, allocations: 0.631 MB / 0.5023 GB, free: 0.9688 MB / 330.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[1] = lineR.i_start[1] (lineL.i_start[1] - lineB.i_start[1] = lineR.i_start[1]) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[2] = lineR.i_start[2] (lineL.i_start[2] - lineB.i_start[2] = lineR.i_start[2]) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[3] = lineR.i_start[3] (lineL.i_start[3] - lineB.i_start[3] = lineR.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.006965/0.492, allocations: 3.459 MB / 0.5057 GB, free: 13.34 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.973e-06/0.492, allocations: 4 kB / 0.5057 GB, free: 13.33 MB / 346.7 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002302/0.4943, allocations: 1.344 MB / 0.507 GB, free: 11.96 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.61e-05/0.4944, allocations: 33.7 kB / 0.5071 GB, free: 11.93 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.652e-05/0.4944, allocations: 8 kB / 0.5071 GB, free: 11.92 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006702/0.4951, allocations: 250.6 kB / 0.5073 GB, free: 11.66 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001131/0.4963, allocations: 263.6 kB / 0.5075 GB, free: 11.41 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005505/0.5018, allocations: 5.566 MB / 0.513 GB, free: 5.438 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008719/0.5027, allocations: 35.98 kB / 0.513 GB, free: 5.402 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.548e-05/0.5028, allocations: 40.17 kB / 0.5131 GB, free: 5.363 MB / 346.7 MB Warning: The initial conditions are over specified. The following 3 initial equations are redundant, so they are removed from the initialization system: lineR.i[1] = lineR.i_start[1] lineR.i[2] = lineR.i_start[2] lineR.i[3] = lineR.i_start[3]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,relayNet.cnt,$PRE.relayNet.cnt,$whenCondition1,$PRE.switch.t0,$PRE.switch.closed,$PRE.switch.open,relayNet.y[1],$PRE.relayNet.y[1],switch.closed,switch.open,switch.t0,switch.control[1],$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (99): * Single equations (assignments): 94 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,7,100.0%), (1,7,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007664/0.5035, allocations: 383.3 kB / 0.5134 GB, free: 4.973 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001395/0.5037, allocations: 75.06 kB / 0.5135 GB, free: 4.898 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002089/0.5058, allocations: 1.153 MB / 0.5146 GB, free: 3.719 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.6e-05/0.5058, allocations: 12 kB / 0.5146 GB, free: 3.707 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.055e-06/0.5058, allocations: 4 kB / 0.5146 GB, free: 3.703 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.019e-05/0.5059, allocations: 3.984 kB / 0.5146 GB, free: 3.699 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003827/0.5097, allocations: 2.246 MB / 0.5168 GB, free: 1.367 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.724e-06/0.5097, allocations: 4 kB / 0.5168 GB, free: 1.363 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000931/0.5106, allocations: 183.8 kB / 0.517 GB, free: 1.184 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007448/0.5114, allocations: 258.3 kB / 0.5173 GB, free: 0.9219 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.879e-05/0.5115, allocations: 23.98 kB / 0.5173 GB, free: 0.8984 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005158/0.5166, allocations: 5.495 MB / 0.5226 GB, free: 10.99 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.5167, allocations: 0 / 0.5226 GB, free: 10.99 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02419/0.5409, allocations: 14.42 MB / 0.5367 GB, free: 11.91 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003411/0.5413, allocations: 148.2 kB / 0.5369 GB, free: 11.74 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002996/0.5416, allocations: 27.89 kB / 0.5369 GB, free: 11.71 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006592/0.5423, allocations: 31.92 kB / 0.5369 GB, free: 11.68 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003343/0.5426, allocations: 68.41 kB / 0.537 GB, free: 11.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001173/0.5428, allocations: 23.98 kB / 0.537 GB, free: 11.59 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008404/0.5436, allocations: 415 kB / 0.5374 GB, free: 11.2 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.2e-07/0.5436, allocations: 0 / 0.5374 GB, free: 11.2 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002359/0.546, allocations: 407.9 kB / 0.5378 GB, free: 10.8 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (lineL.i[1],lineL.i[2],lineL.i[3],lineB.i[1],lineB.i[2],lineB.i[3]) * Number of discrete variables: 9 (switch.control[1],$whenCondition2,$whenCondition1,switch.t0,switch.open,switch.closed,relayNet.y[1],relayNet.cnt,system.initime) * Number of discrete states: 5 (relayNet.y[1],relayNet.cnt,$whenCondition1,switch.open,switch.closed) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 48 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,7,100.0%), (1,7,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003532/0.5464, allocations: 147.2 kB / 0.5379 GB, free: 10.64 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002759/0.5491, allocations: 1.38 MB / 0.5393 GB, free: 9.207 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.213e-06/0.5492, allocations: 4 kB / 0.5393 GB, free: 9.203 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001523/0.5507, allocations: 0.9133 MB / 0.5402 GB, free: 8.238 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001111/0.5518, allocations: 178.7 kB / 0.5404 GB, free: 8.062 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005834/0.5577, allocations: 3.523 MB / 0.5438 GB, free: 4.434 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00104/0.5587, allocations: 1.145 MB / 0.5449 GB, free: 3.262 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000817/0.5596, allocations: 222.5 kB / 0.5451 GB, free: 3.039 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002818/0.5599, allocations: 63.42 kB / 0.5452 GB, free: 2.977 MB / 378.7 MB Notification: Performance of SimCode: time 9.02e-07/0.5599, allocations: 3.938 kB / 0.5452 GB, free: 2.973 MB / 378.7 MB Notification: Performance of Templates: time 0.02999/0.5899, allocations: 14.68 MB / 0.5595 GB, free: 4.309 MB / 394.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.sim & ./PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.SimulationFixedInitial.mat","../files/PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches