Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.Introductory.SimulationFixedInitial,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_SimulationFixedInitial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.SimulationFixedInitial,fileNamePrefix="PowerSystems_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.2+maint.om/package.mo): time 0.001639/0.001639, allocations: 181.4 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.475/1.475, allocations: 194.2 MB / 208.4 MB, free: 6.719 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.002057/0.002057, allocations: 120.7 kB / 253.5 MB, free: 9.586 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1836/0.1836, allocations: 37.91 MB / 336.4 MB, free: 14.25 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 4.924e-05/4.924e-05, allocations: 3.938 kB / 397.6 MB, free: 0.9531 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3714/0.3715, allocations: 53.22 MB / 450.8 MB, free: 13.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5169/0.8885, allocations: 98.67 MB / 0.5366 GB, free: 32.82 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004034/0.8889, allocations: 87.52 kB / 0.5367 GB, free: 32.82 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07435/0.9633, allocations: 25.87 MB / 0.562 GB, free: 29.33 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.9634, allocations: 0 / 0.562 GB, free: 29.33 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.579e-05/0.9634, allocations: 23.56 kB / 0.562 GB, free: 29.33 MB / 378.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.002124/0.9656, allocations: 1.084 MB / 0.5631 GB, free: 28.64 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.593e-05/0.9656, allocations: 15.66 kB / 0.5631 GB, free: 28.64 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001664/0.9658, allocations: 140.8 kB / 0.5632 GB, free: 28.6 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001015/0.9668, allocations: 185.3 kB / 0.5634 GB, free: 28.54 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003113/0.9699, allocations: 1.353 MB / 0.5647 GB, free: 28.14 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.117e-05/0.97, allocations: 70.5 kB / 0.5648 GB, free: 28.14 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001446/0.9702, allocations: 95.06 kB / 0.5649 GB, free: 28.13 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001624/0.9718, allocations: 1.178 MB / 0.566 GB, free: 27.88 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.048e-05/0.9718, allocations: 3.812 kB / 0.566 GB, free: 27.88 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.284e-05/0.9719, allocations: 38.06 kB / 0.5661 GB, free: 27.88 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.198e-05/0.972, allocations: 51.06 kB / 0.5661 GB, free: 27.88 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001336/0.9734, allocations: 0.9537 MB / 0.567 GB, free: 27.85 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005114/0.9785, allocations: 4.676 MB / 0.5716 GB, free: 24.96 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009505/0.9794, allocations: 0.6757 MB / 0.5723 GB, free: 24.83 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005229/0.98, allocations: 467.1 kB / 0.5727 GB, free: 24.77 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.743e-05/0.9801, allocations: 8.5 kB / 0.5727 GB, free: 24.77 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000716/0.9808, allocations: 0.5301 MB / 0.5732 GB, free: 24.55 MB / 378.7 MB Notification: Performance of pre-optimization done (n=73): time 2.634e-06/0.9808, allocations: 0 / 0.5732 GB, free: 24.55 MB / 378.7 MB Notification: Performance of matching and sorting (n=77): time 0.003876/0.9847, allocations: 2.53 MB / 0.5757 GB, free: 23.5 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.655e-05/0.9848, allocations: 162.8 kB / 0.5759 GB, free: 23.31 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005206/0.9853, allocations: 0.5058 MB / 0.5764 GB, free: 23.13 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.572e-05/0.9853, allocations: 43.64 kB / 0.5764 GB, free: 23.1 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002715/0.9856, allocations: 472.7 kB / 0.5768 GB, free: 22.81 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001897/0.9858, allocations: 269.1 kB / 0.5771 GB, free: 22.61 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.514e-05/0.9859, allocations: 17.69 kB / 0.5771 GB, free: 22.61 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001195/0.986, allocations: 398.4 kB / 0.5775 GB, free: 22.27 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005019/0.9865, allocations: 379.4 kB / 0.5779 GB, free: 22.23 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000578/0.9871, allocations: 0.6168 MB / 0.5785 GB, free: 21.89 MB / 378.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.009921/0.997, allocations: 3.881 MB / 0.5823 GB, free: 20.4 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.155e-06/0.9971, allocations: 3.906 kB / 0.5823 GB, free: 20.4 MB / 378.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002101/0.9992, allocations: 1.347 MB / 0.5836 GB, free: 20.02 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.275e-05/0.9992, allocations: 33.52 kB / 0.5836 GB, free: 19.99 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.504e-05/0.9992, allocations: 7.812 kB / 0.5836 GB, free: 19.99 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005767/0.9998, allocations: 249.4 kB / 0.5839 GB, free: 19.92 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001125/1.001, allocations: 271.1 kB / 0.5841 GB, free: 19.85 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004089/1.005, allocations: 5.564 MB / 0.5895 GB, free: 15.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008245/1.006, allocations: 49.83 kB / 0.5896 GB, free: 15.48 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.505e-05/1.006, allocations: 38.23 kB / 0.5896 GB, free: 15.47 MB / 378.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 () * 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.0002732/1.006, allocations: 211.4 kB / 0.5898 GB, free: 15.3 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00011/1.006, allocations: 78.12 kB / 0.5899 GB, free: 15.27 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0019/1.008, allocations: 1.162 MB / 0.591 GB, free: 14.93 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.84e-05/1.008, allocations: 15.77 kB / 0.5911 GB, free: 14.93 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/1.008, allocations: 3.969 kB / 0.5911 GB, free: 14.93 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.195e-06/1.008, allocations: 3.984 kB / 0.5911 GB, free: 14.92 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003737/1.012, allocations: 2.315 MB / 0.5933 GB, free: 13.97 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.713e-06/1.012, allocations: 3.984 kB / 0.5933 GB, free: 13.97 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001048/1.013, allocations: 200.7 kB / 0.5935 GB, free: 13.92 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006925/1.014, allocations: 248.9 kB / 0.5938 GB, free: 13.83 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.241e-05/1.014, allocations: 22.55 kB / 0.5938 GB, free: 13.82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004188/1.018, allocations: 5.492 MB / 0.5991 GB, free: 9.488 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/1.018, allocations: 3.938 kB / 0.5991 GB, free: 9.488 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002628/1.021, allocations: 1.747 MB / 0.6008 GB, free: 8.863 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002756/1.021, allocations: 157.4 kB / 0.601 GB, free: 8.719 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001117/1.021, allocations: 25.95 kB / 0.601 GB, free: 8.715 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004449/1.022, allocations: 31.72 kB / 0.6011 GB, free: 8.707 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001571/1.022, allocations: 65.42 kB / 0.6011 GB, free: 8.676 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.591e-05/1.022, allocations: 22 kB / 0.6011 GB, free: 8.672 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005289/1.023, allocations: 405.3 kB / 0.6015 GB, free: 8.539 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.21e-07/1.023, allocations: 0 / 0.6015 GB, free: 8.539 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001209/1.024, allocations: 308.5 kB / 0.6018 GB, free: 8.523 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) * 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.002973/1.027, allocations: 2.811 MB / 0.6046 GB, free: 6.922 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002043/1.029, allocations: 1.408 MB / 0.6059 GB, free: 6.355 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/1.029, allocations: 3.875 kB / 0.6059 GB, free: 6.355 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001154/1.03, allocations: 0.9182 MB / 0.6068 GB, free: 5.859 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008155/1.031, allocations: 163.1 kB / 0.607 GB, free: 5.82 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003458/1.034, allocations: 2.067 MB / 0.609 GB, free: 4.781 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006926/1.035, allocations: 1.144 MB / 0.6101 GB, free: 19.86 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0005648/1.036, allocations: 208.1 kB / 0.6103 GB, free: 19.77 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003762/1.036, allocations: 339.2 kB / 0.6107 GB, free: 19.48 MB / 394.7 MB Notification: Performance of SimCode: time 1.172e-06/1.036, allocations: 0 / 0.6107 GB, free: 19.48 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04156/1.077, allocations: 19.18 MB / 0.6294 GB, free: 0.7461 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000218/1.078, allocations: 172.9 kB / 0.6295 GB, free: 0.5273 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.863/3.941, allocations: 0 / 0.6295 GB, free: 0.5273 MB / 394.7 MB (rm -f PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Introductory_SimulationFixedInitial_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Introductory_SimulationFixedInitial.fmu > PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe 2>&1)