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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.0009376/0.0009377, allocations: 182.5 kB / 8.137 MB, free: 2.223 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 0.9597/0.9597, allocations: 194.2 MB / 202.8 MB, free: 8.723 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.001732/0.001732, allocations: 124.2 kB / 247.7 MB, free: 6.277 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1505/0.1505, allocations: 37.92 MB / 330.5 MB, free: 6.914 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1627/0.3133, allocations: 59.34 MB / 389.9 MB, free: 78.04 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07021/0.3835, allocations: 53.23 MB / 443.1 MB, free: 24.89 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2242/0.6077, allocations: 97.96 MB / 0.5284 GB, free: 8.34 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001865/0.6079, allocations: 82.55 kB / 0.5285 GB, free: 8.328 MB / 346.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.06715/0.6751, allocations: 26.48 MB / 0.5543 GB, free: 2.844 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.251e-05/0.6751, allocations: 12 kB / 0.5543 GB, free: 2.832 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001035/0.6762, allocations: 181.8 kB / 0.5545 GB, free: 2.656 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003011/0.6792, allocations: 1.368 MB / 0.5559 GB, free: 1.496 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.798e-05/0.6792, allocations: 31.98 kB / 0.5559 GB, free: 1.465 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001215/0.6794, allocations: 52 kB / 0.5559 GB, free: 1.414 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001238/0.6806, allocations: 0.8485 MB / 0.5568 GB, free: 0.8359 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001405/0.682, allocations: 1.085 MB / 0.5578 GB, free: 15.93 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.502e-05/0.6821, allocations: 3.906 kB / 0.5578 GB, free: 15.93 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.145e-05/0.6821, allocations: 4 kB / 0.5578 GB, free: 15.93 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.815e-05/0.6822, allocations: 49.8 kB / 0.5579 GB, free: 15.88 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005048/0.6873, allocations: 4.528 MB / 0.5623 GB, free: 11.84 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008732/0.6882, allocations: 0.6304 MB / 0.5629 GB, free: 11.36 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005429/0.6887, allocations: 465.7 kB / 0.5634 GB, free: 11.05 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.105e-05/0.6888, allocations: 12.59 kB / 0.5634 GB, free: 11.04 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000599/0.6894, allocations: 0.5066 MB / 0.5639 GB, free: 10.63 MB / 378.7 MB Notification: Performance of pre-optimization done (n=73): time 2.345e-06/0.6894, allocations: 0 / 0.5639 GB, free: 10.63 MB / 378.7 MB Notification: Performance of matching and sorting (n=77): time 0.003675/0.6931, allocations: 2.376 MB / 0.5662 GB, free: 8.641 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.769e-05/0.6932, allocations: 165.5 kB / 0.5663 GB, free: 8.445 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000435/0.6936, allocations: 461 kB / 0.5668 GB, free: 8.082 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.16e-05/0.6937, allocations: 28.77 kB / 0.5668 GB, free: 8.051 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002038/0.6939, allocations: 386.9 kB / 0.5672 GB, free: 7.707 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001984/0.6941, allocations: 258.4 kB / 0.5674 GB, free: 7.484 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.873e-05/0.6941, allocations: 0 / 0.5674 GB, free: 7.484 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.6943, allocations: 387.9 kB / 0.5678 GB, free: 7.129 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004985/0.6948, allocations: 371.4 kB / 0.5681 GB, free: 6.883 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006184/0.6954, allocations: 0.6147 MB / 0.5687 GB, free: 6.309 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.009578/0.705, allocations: 3.319 MB / 0.572 GB, free: 3.477 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.705, allocations: 0 / 0.572 GB, free: 3.477 MB / 378.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.001964/0.707, allocations: 1.255 MB / 0.5732 GB, free: 2.48 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.088e-05/0.707, allocations: 4 kB / 0.5732 GB, free: 2.477 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.219e-05/0.707, allocations: 8 kB / 0.5732 GB, free: 2.469 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005901/0.7076, allocations: 262 kB / 0.5735 GB, free: 2.254 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001155/0.7088, allocations: 249.8 kB / 0.5737 GB, free: 2.016 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004514/0.7133, allocations: 5.305 MB / 0.5789 GB, free: 12.75 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000527/0.7139, allocations: 23.92 kB / 0.5789 GB, free: 12.72 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.531e-05/0.7139, allocations: 32 kB / 0.5789 GB, free: 12.69 MB / 394.7 MB Warning: Assuming redundant initial conditions for the following 3 initial equations: 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.0002191/0.7142, allocations: 178.5 kB / 0.5791 GB, free: 12.5 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001146/0.7143, allocations: 79.06 kB / 0.5792 GB, free: 12.43 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001939/0.7162, allocations: 1.107 MB / 0.5803 GB, free: 11.3 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.437e-05/0.7163, allocations: 12 kB / 0.5803 GB, free: 11.29 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.7163, allocations: 0 / 0.5803 GB, free: 11.29 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.315e-06/0.7163, allocations: 7.984 kB / 0.5803 GB, free: 11.28 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003401/0.7197, allocations: 2.178 MB / 0.5824 GB, free: 9.012 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.7e-06/0.7197, allocations: 4 kB / 0.5824 GB, free: 9.008 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009763/0.7207, allocations: 171.8 kB / 0.5826 GB, free: 8.84 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006982/0.7214, allocations: 262.5 kB / 0.5828 GB, free: 8.574 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.204e-05/0.7215, allocations: 19.98 kB / 0.5829 GB, free: 8.555 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004338/0.7258, allocations: 5.223 MB / 0.588 GB, free: 2.977 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.16e-06/0.7258, allocations: 3.938 kB / 0.588 GB, free: 2.973 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002475/0.7283, allocations: 1.784 MB / 0.5897 GB, free: 1.07 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00325/0.7316, allocations: 2.676 MB / 0.5923 GB, free: 14.28 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001947/0.7318, allocations: 148.2 kB / 0.5925 GB, free: 14.11 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001362/0.7319, allocations: 19.89 kB / 0.5925 GB, free: 14.09 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004511/0.7324, allocations: 15.98 kB / 0.5925 GB, free: 14.08 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001386/0.7325, allocations: 44.59 kB / 0.5925 GB, free: 14.04 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.831e-05/0.7326, allocations: 23.98 kB / 0.5926 GB, free: 14.01 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0004029/0.733, allocations: 359.2 kB / 0.5929 GB, free: 13.66 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001632/0.7347, allocations: 283.9 kB / 0.5932 GB, free: 13.39 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * 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.0002884/0.735, allocations: 184.1 kB / 0.5933 GB, free: 13.2 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002027/0.737, allocations: 1.296 MB / 0.5946 GB, free: 11.86 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.737, allocations: 4 kB / 0.5946 GB, free: 11.86 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001286/0.7383, allocations: 0.8538 MB / 0.5955 GB, free: 10.97 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006899/0.739, allocations: 138.5 kB / 0.5956 GB, free: 10.84 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003028/0.742, allocations: 1.871 MB / 0.5974 GB, free: 8.902 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008541/0.7429, allocations: 1.193 MB / 0.5986 GB, free: 7.68 MB / 410.7 MB Notification: Performance of SimCode: time 2.61e-07/0.7429, allocations: 3.938 kB / 0.5986 GB, free: 7.676 MB / 410.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)