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"}) [: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.3+maint.om/package.mo): time 0.001219/0.001219, allocations: 183.3 kB / 8.132 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.217/1.217, allocations: 205.2 MB / 213.7 MB, free: 13.86 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.0009206/0.0009203, allocations: 95.88 kB / 261.7 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1926/0.1926, allocations: 37.97 MB / 347.7 MB, free: 7.477 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2409/0.4336, allocations: 62.43 MB / 410.1 MB, free: 46.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.121/0.5546, allocations: 56.32 MB / 466.4 MB, free: 6.391 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3618/0.9164, allocations: 102.9 MB / 0.556 GB, free: 7.547 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003189/0.9168, allocations: 83.95 kB / 0.5561 GB, free: 7.465 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.08278/0.9996, allocations: 26.49 MB / 0.582 GB, free: 12.61 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.05e-05/0.9996, allocations: 8 kB / 0.582 GB, free: 12.61 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001577/1.001, allocations: 182.6 kB / 0.5821 GB, free: 12.43 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004729/1.006, allocations: 1.37 MB / 0.5835 GB, free: 11.01 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.78e-05/1.006, allocations: 28 kB / 0.5835 GB, free: 10.98 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003399/1.006, allocations: 52 kB / 0.5836 GB, free: 10.93 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001998/1.008, allocations: 0.8479 MB / 0.5844 GB, free: 10.09 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00217/1.011, allocations: 1.089 MB / 0.5855 GB, free: 8.926 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.334e-05/1.011, allocations: 4 kB / 0.5855 GB, free: 8.922 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.186e-05/1.011, allocations: 3.984 kB / 0.5855 GB, free: 8.918 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001131/1.011, allocations: 53.98 kB / 0.5855 GB, free: 8.863 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007294/1.018, allocations: 4.528 MB / 0.5899 GB, free: 4.156 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001091/1.019, allocations: 0.624 MB / 0.5905 GB, free: 3.512 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006462/1.02, allocations: 460.2 kB / 0.591 GB, free: 3.055 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.785e-05/1.02, allocations: 24.56 kB / 0.591 GB, free: 3.031 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007461/1.021, allocations: 0.5005 MB / 0.5915 GB, free: 2.504 MB / 426.7 MB Notification: Performance of pre-optimization done (n=73): time 3.135e-06/1.021, allocations: 0 / 0.5915 GB, free: 2.504 MB / 426.7 MB Notification: Performance of matching and sorting (n=77): time 0.005948/1.027, allocations: 2.37 MB / 0.5938 GB, free: 72 kB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001916/1.027, allocations: 178.8 kB / 0.594 GB, free: 15.86 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001028/1.028, allocations: 450.4 kB / 0.5944 GB, free: 15.41 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 8.474e-05/1.028, allocations: 33.77 kB / 0.5944 GB, free: 15.38 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005415/1.029, allocations: 383 kB / 0.5948 GB, free: 14.99 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003265/1.029, allocations: 260.3 kB / 0.5951 GB, free: 14.73 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.405e-05/1.029, allocations: 0 / 0.5951 GB, free: 14.73 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002279/1.029, allocations: 386.8 kB / 0.5954 GB, free: 14.35 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006212/1.03, allocations: 381.8 kB / 0.5958 GB, free: 13.97 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009224/1.031, allocations: 0.6041 MB / 0.5964 GB, free: 13.27 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.012/1.043, allocations: 3.321 MB / 0.5996 GB, free: 9.891 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.241e-05/1.043, allocations: 4 kB / 0.5996 GB, free: 9.887 MB / 442.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.003178/1.046, allocations: 1.261 MB / 0.6009 GB, free: 8.609 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.713e-05/1.046, allocations: 4 kB / 0.6009 GB, free: 8.605 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.419e-05/1.046, allocations: 8 kB / 0.6009 GB, free: 8.598 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007674/1.047, allocations: 258.8 kB / 0.6011 GB, free: 8.336 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001286/1.048, allocations: 243.7 kB / 0.6013 GB, free: 8.098 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005947/1.054, allocations: 5.307 MB / 0.6065 GB, free: 2.449 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000808/1.055, allocations: 19.98 kB / 0.6065 GB, free: 2.43 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001479/1.055, allocations: 32 kB / 0.6066 GB, free: 2.398 MB / 442.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.0003747/1.056, allocations: 189.6 kB / 0.6068 GB, free: 2.203 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002052/1.056, allocations: 75.06 kB / 0.6068 GB, free: 2.129 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002456/1.058, allocations: 1.103 MB / 0.6079 GB, free: 1.004 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.307e-05/1.058, allocations: 12 kB / 0.6079 GB, free: 0.9922 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.688e-06/1.058, allocations: 4 kB / 0.6079 GB, free: 0.9883 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.012e-05/1.058, allocations: 3.984 kB / 0.6079 GB, free: 0.9844 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004223/1.063, allocations: 2.186 MB / 0.6101 GB, free: 14.72 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.195e-06/1.063, allocations: 3.938 kB / 0.6101 GB, free: 14.71 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001044/1.064, allocations: 171.8 kB / 0.6102 GB, free: 14.55 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007913/1.065, allocations: 250.5 kB / 0.6105 GB, free: 14.29 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.52e-05/1.065, allocations: 19.97 kB / 0.6105 GB, free: 14.27 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00562/1.07, allocations: 5.231 MB / 0.6156 GB, free: 8.695 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.155e-05/1.07, allocations: 11.92 kB / 0.6156 GB, free: 8.684 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003152/1.074, allocations: 1.78 MB / 0.6173 GB, free: 6.781 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004099/1.078, allocations: 2.676 MB / 0.62 GB, free: 3.98 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004726/1.078, allocations: 152.1 kB / 0.6201 GB, free: 3.812 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002688/1.078, allocations: 15.98 kB / 0.6201 GB, free: 3.797 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006607/1.079, allocations: 19.97 kB / 0.6201 GB, free: 3.777 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001471/1.079, allocations: 40.59 kB / 0.6202 GB, free: 3.738 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.299e-05/1.079, allocations: 27.98 kB / 0.6202 GB, free: 3.711 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.0006095/1.08, allocations: 351.2 kB / 0.6205 GB, free: 3.371 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002185/1.082, allocations: 287.8 kB / 0.6208 GB, free: 3.09 MB / 458.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.0006424/1.083, allocations: 188.1 kB / 0.621 GB, free: 2.898 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002707/1.086, allocations: 1.292 MB / 0.6223 GB, free: 1.57 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.541e-06/1.086, allocations: 0 / 0.6223 GB, free: 1.57 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001577/1.087, allocations: 0.8577 MB / 0.6231 GB, free: 0.6797 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001044/1.088, allocations: 139.2 kB / 0.6232 GB, free: 0.543 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004816/1.093, allocations: 1.863 MB / 0.625 GB, free: 14.61 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00132/1.094, allocations: 1.2 MB / 0.6262 GB, free: 13.38 MB / 474.7 MB Notification: Performance of SimCode: time 1.342e-06/1.094, allocations: 0 / 0.6262 GB, free: 13.38 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)