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: "" <> buildModelFMU(PowerSystems.Examples.Introductory.SimulationFixedInitial,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_SimulationFixedInitial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.SimulationFixedInitial,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_SimulationFixedInitial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001048/0.001048, allocations: 181.3 kB / 16.39 MB, free: 5.766 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.233/1.233, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.0007936/0.0007937, allocations: 96.08 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1586/0.1586, allocations: 38.06 MB / 357.2 MB, free: 1.883 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002805/0.0002805, allocations: 8 kB / 424.1 MB, free: 37.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2378/0.2381, allocations: 56.33 MB / 480.4 MB, free: 9.539 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1232/0.3614, allocations: 103.7 MB / 0.5704 GB, free: 14.65 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002351/0.3617, allocations: 83.97 kB / 0.5705 GB, free: 14.57 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0685/0.4302, allocations: 25.89 MB / 0.5958 GB, free: 4.348 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.185e-06/0.4302, allocations: 0 / 0.5958 GB, free: 4.348 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.388e-05/0.4303, allocations: 20 kB / 0.5958 GB, free: 4.328 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.002432/0.4327, allocations: 1.216 MB / 0.597 GB, free: 3.051 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.735e-05/0.4328, allocations: 12.03 kB / 0.597 GB, free: 3.039 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001839/0.433, allocations: 143.5 kB / 0.5972 GB, free: 2.891 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001057/0.4341, allocations: 190.5 kB / 0.5974 GB, free: 2.703 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003588/0.4377, allocations: 1.37 MB / 0.5987 GB, free: 1.289 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.143e-05/0.4377, allocations: 66 kB / 0.5988 GB, free: 1.227 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001436/0.4379, allocations: 95.88 kB / 0.5988 GB, free: 1.133 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001846/0.4397, allocations: 1.187 MB / 0.6 GB, free: 15.87 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.697e-05/0.4398, allocations: 15.92 kB / 0.6 GB, free: 15.86 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001003/0.4399, allocations: 32 kB / 0.6 GB, free: 15.82 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.462e-05/0.44, allocations: 49.98 kB / 0.6001 GB, free: 15.78 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001412/0.4414, allocations: 0.9718 MB / 0.601 GB, free: 14.8 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005926/0.4473, allocations: 4.69 MB / 0.6056 GB, free: 9.926 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009792/0.4484, allocations: 0.6859 MB / 0.6063 GB, free: 9.219 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.831e-05/0.4484, allocations: 8.625 kB / 0.6063 GB, free: 9.211 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006842/0.4491, allocations: 0.5282 MB / 0.6068 GB, free: 8.656 MB / 442.7 MB Notification: Performance of pre-optimization done (n=73): time 2.665e-06/0.4491, allocations: 0 / 0.6068 GB, free: 8.656 MB / 442.7 MB Notification: Performance of matching and sorting (n=77): time 0.004387/0.4535, allocations: 3.101 MB / 0.6098 GB, free: 5.418 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.782e-05/0.4536, allocations: 174.8 kB / 0.61 GB, free: 5.211 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005346/0.4541, allocations: 0.4993 MB / 0.6105 GB, free: 4.707 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.917e-05/0.4542, allocations: 53.62 kB / 0.6106 GB, free: 4.648 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002922/0.4545, allocations: 463.1 kB / 0.611 GB, free: 4.188 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001953/0.4547, allocations: 272.2 kB / 0.6113 GB, free: 3.918 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.224e-05/0.4548, allocations: 16 kB / 0.6113 GB, free: 3.902 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001359/0.4549, allocations: 398.8 kB / 0.6116 GB, free: 3.504 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005414/0.4555, allocations: 389.8 kB / 0.612 GB, free: 3.125 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006621/0.4561, allocations: 0.6218 MB / 0.6126 GB, free: 2.395 MB / 442.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.009791/0.4659, allocations: 3.916 MB / 0.6165 GB, free: 14.42 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.4659, allocations: 0 / 0.6165 GB, free: 14.42 MB / 458.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.0021/0.4681, allocations: 1.361 MB / 0.6178 GB, free: 13.04 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.937e-05/0.4681, allocations: 37.7 kB / 0.6178 GB, free: 13 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.272e-05/0.4681, allocations: 4 kB / 0.6178 GB, free: 13 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005931/0.4687, allocations: 254.7 kB / 0.6181 GB, free: 12.74 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001079/0.4698, allocations: 267.6 kB / 0.6183 GB, free: 12.48 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004683/0.4745, allocations: 5.637 MB / 0.6238 GB, free: 6.438 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007046/0.4752, allocations: 40.03 kB / 0.6239 GB, free: 6.398 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.581e-05/0.4753, allocations: 44 kB / 0.6239 GB, free: 6.355 MB / 458.7 MB Warning: The initial conditions are over specified. The following 3 initial equations are redundant, so they are removed from the initialization sytem: 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: 34 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,$whenCondition1,$PRE.relayNet.cnt,relayNet.cnt,$whenCondition2,switch.control[1],$PRE.switch.t0,switch.t0,$PRE.switch.open,switch.open,$PRE.switch.closed,switch.closed,$PRE.relayNet.y[1],relayNet.y[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (97): * Single equations (assignments): 91 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 7,(1,100.0%) 7,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006354/0.476, allocations: 379 kB / 0.6243 GB, free: 5.973 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001142/0.4761, allocations: 78.97 kB / 0.6243 GB, free: 5.895 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001932/0.478, allocations: 1.177 MB / 0.6255 GB, free: 4.691 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.432e-05/0.4781, allocations: 8 kB / 0.6255 GB, free: 4.684 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.4781, allocations: 4 kB / 0.6255 GB, free: 4.68 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.518e-06/0.4781, allocations: 11.98 kB / 0.6255 GB, free: 4.668 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003457/0.4815, allocations: 2.306 MB / 0.6278 GB, free: 2.273 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.273e-06/0.4816, allocations: 3.953 kB / 0.6278 GB, free: 2.27 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008913/0.4825, allocations: 207.8 kB / 0.628 GB, free: 2.066 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007054/0.4832, allocations: 258.2 kB / 0.6282 GB, free: 1.805 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.259e-05/0.4833, allocations: 23.98 kB / 0.6282 GB, free: 1.781 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004654/0.4879, allocations: 5.562 MB / 0.6337 GB, free: 11.82 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.4879, allocations: 4.422 kB / 0.6337 GB, free: 11.82 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0024/0.4904, allocations: 1.763 MB / 0.6354 GB, free: 9.961 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001914/0.4906, allocations: 144.1 kB / 0.6355 GB, free: 9.801 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001096/0.4907, allocations: 36.06 kB / 0.6356 GB, free: 9.766 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004294/0.4911, allocations: 39.89 kB / 0.6356 GB, free: 9.727 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001227/0.4912, allocations: 60.41 kB / 0.6357 GB, free: 9.668 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.414e-05/0.4913, allocations: 28.05 kB / 0.6357 GB, free: 9.641 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0004377/0.4917, allocations: 411 kB / 0.6361 GB, free: 9.242 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4918, allocations: 0 / 0.6361 GB, free: 9.242 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001011/0.4928, allocations: 303.9 kB / 0.6364 GB, free: 8.945 MB / 474.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 (56): * Single equations (assignments): 48 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 7,(1,100.0%) 7,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002912/0.4957, allocations: 2.806 MB / 0.6391 GB, free: 6.055 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.00204/0.4977, allocations: 1.428 MB / 0.6405 GB, free: 4.578 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.4978, allocations: 8 kB / 0.6405 GB, free: 4.57 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001283/0.4991, allocations: 0.9281 MB / 0.6414 GB, free: 3.594 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007459/0.4998, allocations: 159.2 kB / 0.6416 GB, free: 3.441 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1876/0.6874, allocations: 11.2 MB / 0.6525 GB, free: 130.6 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007631/0.6882, allocations: 1.135 MB / 0.6536 GB, free: 129.9 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0007402/0.6889, allocations: 208.5 kB / 0.6538 GB, free: 129.9 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004041/0.6893, allocations: 340.9 kB / 0.6541 GB, free: 129.9 MB / 474.7 MB Notification: Performance of SimCode: time 8.02e-07/0.6894, allocations: 0 / 0.6541 GB, free: 129.9 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03964/0.729, allocations: 18.95 MB / 0.6726 GB, free: 129 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001413/0.7292, allocations: 206.8 kB / 0.6728 GB, free: 128.8 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.428/3.158, allocations: 5.688 kB / 0.6729 GB, free: 128.8 MB / 474.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Introductory_SimulationFixedInitial_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Introductory_SimulationFixedInitial.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial_res.mat does not exist to compare? outputFormat=mat