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.001569/0.001569, allocations: 183.1 kB / 15.76 MB, free: 6.34 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.041/2.041, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.00114/0.00114, allocations: 94.84 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.269/0.269, allocations: 38.06 MB / 356.6 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004818/0.000482, allocations: 12 kB / 422.8 MB, free: 26.33 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1101, allocations: 56.33 MB / 479.1 MB, free: 1.949 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5007/0.6109, allocations: 103.7 MB / 0.5692 GB, free: 11.73 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002874/0.6112, allocations: 81.41 kB / 0.5693 GB, free: 11.69 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1196/0.7309, allocations: 25.9 MB / 0.5946 GB, free: 5.367 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.505e-06/0.7309, allocations: 4 kB / 0.5946 GB, free: 5.363 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.597e-05/0.731, allocations: 23.94 kB / 0.5946 GB, free: 5.34 MB / 394.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.004506/0.7355, allocations: 1.219 MB / 0.5958 GB, free: 4.133 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.306e-05/0.7356, allocations: 8.031 kB / 0.5958 GB, free: 4.125 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005393/0.7362, allocations: 137.2 kB / 0.5959 GB, free: 4.035 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002031/0.7382, allocations: 190.5 kB / 0.5961 GB, free: 3.848 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00562/0.7439, allocations: 1.369 MB / 0.5974 GB, free: 2.672 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.125e-05/0.744, allocations: 67.11 kB / 0.5975 GB, free: 2.637 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003239/0.7443, allocations: 92.53 kB / 0.5976 GB, free: 2.57 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003301/0.7477, allocations: 1.189 MB / 0.5987 GB, free: 1.637 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.686e-05/0.7478, allocations: 7.938 kB / 0.5988 GB, free: 1.629 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001368/0.7479, allocations: 37.11 kB / 0.5988 GB, free: 1.617 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001278/0.748, allocations: 53.47 kB / 0.5988 GB, free: 1.57 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002955/0.751, allocations: 0.9752 MB / 0.5998 GB, free: 0.8789 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01053/0.7616, allocations: 4.687 MB / 0.6044 GB, free: 12.73 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001903/0.7635, allocations: 0.6784 MB / 0.605 GB, free: 12.24 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001071/0.7637, allocations: 16.19 kB / 0.6051 GB, free: 12.23 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001344/0.765, allocations: 0.5264 MB / 0.6056 GB, free: 11.8 MB / 410.7 MB Notification: Performance of pre-optimization done (n=73): time 3.797e-06/0.7651, allocations: 0 / 0.6056 GB, free: 11.8 MB / 410.7 MB Notification: Performance of matching and sorting (n=77): time 0.008604/0.7737, allocations: 3.1 MB / 0.6086 GB, free: 9.234 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001409/0.7739, allocations: 174.9 kB / 0.6088 GB, free: 9.027 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001041/0.7749, allocations: 0.5117 MB / 0.6093 GB, free: 8.613 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000191/0.7751, allocations: 39.58 kB / 0.6093 GB, free: 8.578 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004645/0.7756, allocations: 489.3 kB / 0.6098 GB, free: 8.199 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004199/0.776, allocations: 270.4 kB / 0.61 GB, free: 7.969 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.012e-05/0.7762, allocations: 20.25 kB / 0.61 GB, free: 7.961 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001722/0.7763, allocations: 351.1 kB / 0.6104 GB, free: 7.625 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001077/0.7774, allocations: 387.5 kB / 0.6107 GB, free: 7.371 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001256/0.7787, allocations: 0.6273 MB / 0.6114 GB, free: 6.777 MB / 410.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.01933/0.798, allocations: 3.813 MB / 0.6151 GB, free: 3.469 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.747e-06/0.7981, allocations: 0 / 0.6151 GB, free: 3.469 MB / 410.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.003944/0.802, allocations: 1.327 MB / 0.6164 GB, free: 2.469 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.585e-05/0.8021, allocations: 33.7 kB / 0.6164 GB, free: 2.43 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.246e-05/0.8022, allocations: 8 kB / 0.6164 GB, free: 2.422 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00108/0.8033, allocations: 252 kB / 0.6167 GB, free: 2.219 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002439/0.8057, allocations: 271.5 kB / 0.6169 GB, free: 1.957 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008271/0.814, allocations: 5.632 MB / 0.6224 GB, free: 12.25 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00115/0.8152, allocations: 43.97 kB / 0.6225 GB, free: 12.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001303/0.8154, allocations: 32 kB / 0.6225 GB, free: 12.17 MB / 426.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.000929/0.8163, allocations: 384.1 kB / 0.6229 GB, free: 11.78 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002658/0.8166, allocations: 79.61 kB / 0.6229 GB, free: 11.7 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003691/0.8203, allocations: 1.173 MB / 0.6241 GB, free: 10.5 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.746e-05/0.8204, allocations: 16 kB / 0.6241 GB, free: 10.49 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.134e-05/0.8204, allocations: 4 kB / 0.6241 GB, free: 10.48 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.335e-05/0.8205, allocations: 3.984 kB / 0.6241 GB, free: 10.48 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00642/0.8269, allocations: 2.318 MB / 0.6264 GB, free: 8.074 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.188e-05/0.8269, allocations: 4 kB / 0.6264 GB, free: 8.07 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002001/0.829, allocations: 199.7 kB / 0.6266 GB, free: 7.875 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001293/0.8303, allocations: 258.2 kB / 0.6268 GB, free: 7.613 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001456/0.8304, allocations: 23.98 kB / 0.6268 GB, free: 7.59 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008037/0.8385, allocations: 5.566 MB / 0.6323 GB, free: 1.621 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.049e-06/0.8385, allocations: 7.875 kB / 0.6323 GB, free: 1.613 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004742/0.8433, allocations: 1.767 MB / 0.634 GB, free: 15.75 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003625/0.8437, allocations: 148.2 kB / 0.6341 GB, free: 15.59 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002068/0.8439, allocations: 23.94 kB / 0.6342 GB, free: 15.57 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007972/0.8447, allocations: 35.97 kB / 0.6342 GB, free: 15.53 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002311/0.845, allocations: 56.47 kB / 0.6342 GB, free: 15.48 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.102e-05/0.8451, allocations: 24 kB / 0.6343 GB, free: 15.45 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.000791/0.8459, allocations: 407 kB / 0.6347 GB, free: 15.06 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.8459, allocations: 0 / 0.6347 GB, free: 15.06 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001678/0.8476, allocations: 307.9 kB / 0.635 GB, free: 14.76 MB / 442.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.005498/0.8531, allocations: 2.81 MB / 0.6377 GB, free: 11.86 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003756/0.8569, allocations: 1.431 MB / 0.6391 GB, free: 10.38 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.071e-06/0.857, allocations: 0 / 0.6391 GB, free: 10.38 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002488/0.8595, allocations: 0.9324 MB / 0.64 GB, free: 9.398 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001409/0.8609, allocations: 163.8 kB / 0.6402 GB, free: 9.242 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01842/0.8793, allocations: 11.29 MB / 0.6512 GB, free: 13.66 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001255/0.8807, allocations: 1.135 MB / 0.6523 GB, free: 12.5 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009256/0.8816, allocations: 343.3 kB / 0.6526 GB, free: 12.16 MB / 458.7 MB Notification: Performance of SimCode: time 1.673e-06/0.8817, allocations: 0 / 0.6526 GB, free: 12.16 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.4/4.282, allocations: 25.12 MB / 0.6772 GB, free: 3 MB / 474.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)