Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithVariableLoads.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithVariableLoads,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_StructuredNetwork_DoubleNetworkWithVariableLoads",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithVariableLoads,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_StructuredNetwork_DoubleNetworkWithVariableLoads",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 4.0.0+maint.om/package.mo): time 0.0009894/0.0009894, allocations: 192.3 kB / 7.849 MB, free: 2.504 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.199/1.199, allocations: 221.4 MB / 229.7 MB, free: 3.082 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001019/0.001019, allocations: 96.12 kB / 280.5 MB, free: 1.277 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.04009/0.04009, allocations: 8.095 MB / 339.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1848/0.2249, allocations: 58.63 MB / 398 MB, free: 67.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07855/0.3035, allocations: 52.5 MB / 450.5 MB, free: 15.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2661/0.5696, allocations: 81.39 MB / 0.5194 GB, free: 12.75 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001576/0.5698, allocations: 74.41 kB / 0.5195 GB, free: 12.71 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: 262 * Number of variables: 262 Notification: Performance of Generate backend data structure: time 0.1041/0.674, allocations: 40.35 MB / 0.5589 GB, free: 11.45 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.81e-05/0.674, allocations: 15.94 kB / 0.5589 GB, free: 11.43 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005661/0.6746, allocations: 158.2 kB / 0.5591 GB, free: 11.28 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001628/0.6762, allocations: 0.827 MB / 0.5599 GB, free: 10.41 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002015/0.6765, allocations: 267.6 kB / 0.5601 GB, free: 10.09 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002448/0.6767, allocations: 56 kB / 0.5602 GB, free: 10.04 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002944/0.6797, allocations: 1.64 MB / 0.5618 GB, free: 8.391 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003254/0.6829, allocations: 1.624 MB / 0.5634 GB, free: 6.727 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.38e-05/0.683, allocations: 3.938 kB / 0.5634 GB, free: 6.723 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001778/0.6832, allocations: 7.969 kB / 0.5634 GB, free: 6.715 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.652e-05/0.6832, allocations: 28 kB / 0.5634 GB, free: 6.688 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01116/0.6944, allocations: 7.255 MB / 0.5705 GB, free: 14.98 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002539/0.6969, allocations: 1.693 MB / 0.5722 GB, free: 13.28 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001604/0.6986, allocations: 1.099 MB / 0.5732 GB, free: 12.18 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002947/0.6989, allocations: 118.4 kB / 0.5733 GB, free: 12.05 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002088/0.701, allocations: 1.202 MB / 0.5745 GB, free: 10.83 MB / 394.7 MB Notification: Performance of pre-optimization done (n=166): time 3.907e-06/0.701, allocations: 0 / 0.5745 GB, free: 10.83 MB / 394.7 MB Notification: Performance of matching and sorting (n=166): time 0.006414/0.7074, allocations: 2.972 MB / 0.5774 GB, free: 7.848 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.96e-05/0.7075, allocations: 128.1 kB / 0.5775 GB, free: 7.695 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009157/0.7084, allocations: 0.5469 MB / 0.5781 GB, free: 7.145 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001751/0.7086, allocations: 37.69 kB / 0.5781 GB, free: 7.102 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002525/0.7089, allocations: 317 kB / 0.5784 GB, free: 6.785 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004926/0.7094, allocations: 0.5118 MB / 0.5789 GB, free: 6.266 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001168/0.7095, allocations: 3.938 kB / 0.5789 GB, free: 6.262 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.7097, allocations: 361.9 kB / 0.5793 GB, free: 5.902 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001535/0.7112, allocations: 0.9335 MB / 0.5802 GB, free: 4.969 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001568/0.7128, allocations: 1.062 MB / 0.5812 GB, free: 3.891 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002674/0.7155, allocations: 1.083 MB / 0.5823 GB, free: 2.812 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.61e-06/0.7155, allocations: 0 / 0.5823 GB, free: 2.812 MB / 394.7 MB Notification: Performance of matching and sorting (n=198) (initialization): time 0.008181/0.7237, allocations: 3.439 MB / 0.5856 GB, free: 15.36 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.744e-05/0.7237, allocations: 4 kB / 0.5856 GB, free: 15.36 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.238e-05/0.7237, allocations: 4 kB / 0.5856 GB, free: 15.35 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01242/0.7362, allocations: 3.043 MB / 0.5886 GB, free: 12.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008769/0.7371, allocations: 175.7 kB / 0.5888 GB, free: 12.13 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007255/0.7444, allocations: 3.656 MB / 0.5923 GB, free: 8.449 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001567/0.7459, allocations: 118.8 kB / 0.5925 GB, free: 8.332 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002694/0.7462, allocations: 55.97 kB / 0.5925 GB, free: 8.277 MB / 410.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: feeder1.load1.terminal.i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real feeder2.load1.terminal.i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real feeder2.load4.U:VARIABLE(unit = "V" ) "Voltage at the load" type: Real feeder2.load1.U:VARIABLE(unit = "V" ) "Voltage at the load" type: Real feeder2.load3.U:VARIABLE(unit = "V" ) "Voltage at the load" type: Real feeder2.load2.U:VARIABLE(unit = "V" ) "Voltage at the load" type: Real feeder1.load1.U:VARIABLE(unit = "V" ) "Voltage at the load" type: Real feeder1.load4.U:VARIABLE(unit = "V" ) "Voltage at the load" type: Real feeder1.load3.U:VARIABLE(unit = "V" ) "Voltage at the load" type: Real feeder1.load2.U:VARIABLE(unit = "V" ) "Voltage at the load" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.feeder2.load1.degradedMode,feeder2.load1.degradedMode,$PRE.feeder2.load2.degradedMode,feeder2.load2.degradedMode,$PRE.feeder2.load3.degradedMode,feeder2.load3.degradedMode,$PRE.feeder2.load4.degradedMode,feeder2.load4.degradedMode,$PRE.feeder1.load1.degradedMode,feeder1.load1.degradedMode,$PRE.feeder1.load2.degradedMode,feeder1.load2.degradedMode,$PRE.feeder1.load3.degradedMode,feeder1.load3.degradedMode,$PRE.feeder1.load4.degradedMode,feeder1.load4.degradedMode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (115): * Single equations (assignments): 114 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {28 56} Notification: Performance of prepare postOptimizeDAE: time 0.0006178/0.7469, allocations: 161.9 kB / 0.5927 GB, free: 8.113 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004015/0.7473, allocations: 122.6 kB / 0.5928 GB, free: 7.992 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006715/0.754, allocations: 3.278 MB / 0.596 GB, free: 4.695 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.002e-05/0.754, allocations: 16 kB / 0.596 GB, free: 4.68 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.055e-06/0.754, allocations: 0 / 0.596 GB, free: 4.68 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.711e-05/0.7541, allocations: 7.969 kB / 0.596 GB, free: 4.672 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00313/0.7572, allocations: 2.282 MB / 0.5982 GB, free: 2.348 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/0.7572, allocations: 0 / 0.5982 GB, free: 2.348 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005838/0.7578, allocations: 143.8 kB / 0.5984 GB, free: 2.207 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01221/0.77, allocations: 3.082 MB / 0.6014 GB, free: 15.12 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002286/0.7703, allocations: 11.98 kB / 0.6014 GB, free: 15.11 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006856/0.7772, allocations: 3.704 MB / 0.605 GB, free: 11.38 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.701e-06/0.7772, allocations: 0 / 0.605 GB, free: 11.38 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006315/0.7835, allocations: 3.07 MB / 0.608 GB, free: 8.289 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006741/0.7903, allocations: 3.454 MB / 0.6114 GB, free: 4.809 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004584/0.7908, allocations: 219.2 kB / 0.6116 GB, free: 4.574 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003311/0.7911, allocations: 4 kB / 0.6116 GB, free: 4.57 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001469/0.7926, allocations: 115.9 kB / 0.6117 GB, free: 4.457 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003158/0.7929, allocations: 113.8 kB / 0.6118 GB, free: 4.348 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002088/0.7932, allocations: 67.91 kB / 0.6119 GB, free: 4.281 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0006829/0.7939, allocations: 431.2 kB / 0.6123 GB, free: 3.859 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00174/0.7956, allocations: 363.5 kB / 0.6126 GB, free: 3.504 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,feeder2.load1.degradedMode,feeder2.load2.degradedMode,feeder2.load3.degradedMode,feeder2.load4.degradedMode,feeder1.load1.degradedMode,feeder1.load2.degradedMode,feeder1.load3.degradedMode,feeder1.load4.degradedMode) * Number of discrete states: 8 (feeder2.load1.degradedMode,feeder2.load2.degradedMode,feeder2.load3.degradedMode,feeder2.load4.degradedMode,feeder1.load1.degradedMode,feeder1.load2.degradedMode,feeder1.load3.degradedMode,feeder1.load4.degradedMode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {28 64} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003946/0.796, allocations: 141.7 kB / 0.6128 GB, free: 3.359 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006697/0.8027, allocations: 2.64 MB / 0.6153 GB, free: 0.7188 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.637e-06/0.8028, allocations: 5.688 kB / 0.6153 GB, free: 0.7109 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004796/0.8076, allocations: 1.576 MB / 0.6169 GB, free: 15.14 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001031/0.8086, allocations: 103.1 kB / 0.617 GB, free: 15.04 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00468/0.8133, allocations: 1.784 MB / 0.6187 GB, free: 13.23 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0011/0.8144, allocations: 1.225 MB / 0.6199 GB, free: 11.97 MB / 442.7 MB Notification: Performance of SimCode: time 9.22e-07/0.8144, allocations: 0 / 0.6199 GB, free: 11.97 MB / 442.7 MB (rm -f PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithVariableLoads.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithVariableLoads.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithVariableLoads.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithVariableLoads.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_StructuredNetwork_DoubleNetworkWithVariableLoads_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_StructuredNetwork_DoubleNetworkWithVariableLoads.fmu > PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithVariableLoads.pipe 2>&1)