Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_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_cpp_PowerSystems_Examples_Introductory_SimulationFixedInitial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.SimulationFixedInitial,fileNamePrefix="PowerSystems_cpp_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.002016/0.002016, allocations: 181.1 kB / 8.011 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.283/2.283, allocations: 205.3 MB / 213.7 MB, free: 1.75 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001089/0.001089, allocations: 86.64 kB / 261.8 MB, free: 1.688 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.264/0.264, allocations: 37.99 MB / 347.7 MB, free: 5.781 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.272e-05/2.267e-05, allocations: 4 kB / 409.9 MB, free: 35.07 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1126, allocations: 56.33 MB / 466.3 MB, free: 10.75 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4959/0.6086, allocations: 103 MB / 0.5559 GB, free: 8.539 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002298/0.6089, allocations: 81.48 kB / 0.556 GB, free: 8.527 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1135/0.7223, allocations: 25.66 MB / 0.581 GB, free: 2.875 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.7224, allocations: 0 / 0.581 GB, free: 2.875 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.766e-05/0.7225, allocations: 19.98 kB / 0.581 GB, free: 2.855 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.003684/0.7262, allocations: 1.091 MB / 0.5821 GB, free: 1.77 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.244e-05/0.7263, allocations: 8.031 kB / 0.5821 GB, free: 1.762 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002144/0.7284, allocations: 186.5 kB / 0.5823 GB, free: 1.578 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005723/0.7342, allocations: 1.353 MB / 0.5836 GB, free: 444 kB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.506e-05/0.7343, allocations: 28 kB / 0.5836 GB, free: 416 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002803/0.7346, allocations: 55.84 kB / 0.5837 GB, free: 364 kB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002615/0.7372, allocations: 0.8106 MB / 0.5845 GB, free: 15.81 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003097/0.7403, allocations: 1.064 MB / 0.5855 GB, free: 14.94 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.466e-05/0.7404, allocations: 7.562 kB / 0.5855 GB, free: 14.93 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001173/0.7406, allocations: 3.984 kB / 0.5855 GB, free: 14.93 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000124/0.7407, allocations: 53.92 kB / 0.5856 GB, free: 14.88 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01107/0.7518, allocations: 4.515 MB / 0.59 GB, free: 10.84 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001584/0.7534, allocations: 0.6304 MB / 0.5906 GB, free: 10.4 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000943/0.7544, allocations: 445.3 kB / 0.591 GB, free: 10.11 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.379e-05/0.7545, allocations: 13.11 kB / 0.5911 GB, free: 10.1 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001142/0.7556, allocations: 0.5046 MB / 0.5915 GB, free: 9.684 MB / 394.7 MB Notification: Performance of pre-optimization done (n=73): time 6.021e-06/0.7557, allocations: 3.984 kB / 0.5915 GB, free: 9.68 MB / 394.7 MB Notification: Performance of matching and sorting (n=77): time 0.007207/0.7629, allocations: 2.349 MB / 0.5938 GB, free: 7.723 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001259/0.763, allocations: 163 kB / 0.594 GB, free: 7.527 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008747/0.7639, allocations: 455.5 kB / 0.5944 GB, free: 7.172 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001987/0.7641, allocations: 29.69 kB / 0.5945 GB, free: 7.137 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004919/0.7646, allocations: 0.4966 MB / 0.5949 GB, free: 6.738 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004266/0.7651, allocations: 254.9 kB / 0.5952 GB, free: 6.52 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.192e-05/0.7652, allocations: 0 / 0.5952 GB, free: 6.52 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.00018/0.7654, allocations: 348.7 kB / 0.5955 GB, free: 6.184 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009156/0.7663, allocations: 360 kB / 0.5959 GB, free: 5.957 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001153/0.7675, allocations: 0.5986 MB / 0.5964 GB, free: 5.398 MB / 394.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.01965/0.7871, allocations: 3.701 MB / 0.6001 GB, free: 2.176 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.207e-05/0.7872, allocations: 4 kB / 0.6001 GB, free: 2.172 MB / 394.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.004038/0.7912, allocations: 1.195 MB / 0.6012 GB, free: 1.242 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.716e-05/0.7913, allocations: 33.7 kB / 0.6013 GB, free: 1.203 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.443e-05/0.7914, allocations: 8 kB / 0.6013 GB, free: 1.195 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001093/0.7925, allocations: 250.1 kB / 0.6015 GB, free: 0.9922 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002547/0.7951, allocations: 267 kB / 0.6018 GB, free: 0.7344 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008453/0.8036, allocations: 5.396 MB / 0.607 GB, free: 11.31 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001126/0.8047, allocations: 23.97 kB / 0.6071 GB, free: 11.29 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001477/0.8049, allocations: 36 kB / 0.6071 GB, free: 11.25 MB / 410.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.0003954/0.8053, allocations: 187.3 kB / 0.6073 GB, free: 11.06 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003212/0.8085, allocations: 1.008 MB / 0.6083 GB, free: 10.04 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002813/0.8088, allocations: 71.16 kB / 0.6083 GB, free: 9.969 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003546/0.8124, allocations: 1.08 MB / 0.6094 GB, free: 8.863 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.614e-05/0.8125, allocations: 15.98 kB / 0.6094 GB, free: 8.848 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.266e-05/0.8125, allocations: 4 kB / 0.6094 GB, free: 8.844 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.515e-05/0.8126, allocations: 3.938 kB / 0.6094 GB, free: 8.84 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006371/0.8189, allocations: 2.085 MB / 0.6114 GB, free: 6.684 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.686e-05/0.819, allocations: 4 kB / 0.6114 GB, free: 6.68 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002035/0.821, allocations: 203.7 kB / 0.6116 GB, free: 6.48 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001325/0.8224, allocations: 246.4 kB / 0.6119 GB, free: 6.23 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002039/0.8226, allocations: 24 kB / 0.6119 GB, free: 6.207 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008084/0.8307, allocations: 5.321 MB / 0.6171 GB, free: 0.5391 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.098e-05/0.8308, allocations: 3.938 kB / 0.6171 GB, free: 0.5352 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004357/0.8352, allocations: 1.669 MB / 0.6187 GB, free: 14.79 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003511/0.8356, allocations: 148.2 kB / 0.6189 GB, free: 14.62 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001954/0.8358, allocations: 11.98 kB / 0.6189 GB, free: 14.61 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007886/0.8366, allocations: 23.97 kB / 0.6189 GB, free: 14.59 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002274/0.8368, allocations: 60.44 kB / 0.619 GB, free: 14.53 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.122e-05/0.8369, allocations: 27.98 kB / 0.619 GB, free: 14.5 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0006492/0.8376, allocations: 347.2 kB / 0.6193 GB, free: 14.16 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.8376, allocations: 0 / 0.6193 GB, free: 14.16 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001868/0.8395, allocations: 291.9 kB / 0.6196 GB, free: 13.88 MB / 426.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.005452/0.845, allocations: 2.7 MB / 0.6222 GB, free: 11.1 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003477/0.8485, allocations: 1.33 MB / 0.6235 GB, free: 9.727 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.222e-06/0.8485, allocations: 0 / 0.6235 GB, free: 9.727 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0024/0.8509, allocations: 0.882 MB / 0.6244 GB, free: 8.805 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00148/0.8525, allocations: 147.5 kB / 0.6245 GB, free: 8.66 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006134/0.8586, allocations: 2.094 MB / 0.6266 GB, free: 6.492 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001188/0.8599, allocations: 1.131 MB / 0.6277 GB, free: 5.332 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008577/0.8607, allocations: 339.3 kB / 0.628 GB, free: 5.004 MB / 426.7 MB Notification: Performance of SimCode: time 1.022e-06/0.8608, allocations: 3.938 kB / 0.628 GB, free: 5 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.364/4.225, allocations: 25.07 MB / 0.6525 GB, free: 11.89 MB / 458.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_Introductory_SimulationFixedInitial_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_Introductory_SimulationFixedInitial.fmu > PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe 2>&1)