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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001505/0.001505, allocations: 176.7 kB / 8.051 MB, free: 1.023 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.342/1.342, allocations: 221.5 MB / 230 MB, free: 7.578 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.0009503/0.0009503, allocations: 100.4 kB / 280.9 MB, free: 5.332 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.04873/0.04873, allocations: 8.102 MB / 339.8 MB, free: 7.02 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.619e-05/2.626e-05, allocations: 3.875 kB / 398.6 MB, free: 49.48 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1022, allocations: 52.52 MB / 451.1 MB, free: 5.426 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1088/0.2111, allocations: 81.11 MB / 0.5197 GB, free: 4.207 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002486/0.2114, allocations: 67.97 kB / 0.5198 GB, free: 4.141 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3176/0.5289, allocations: 38.38 MB / 0.5573 GB, free: 59.53 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.529, allocations: 0 / 0.5573 GB, free: 59.53 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.778e-05/0.529, allocations: 24 kB / 0.5573 GB, free: 59.51 MB / 362.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.007428/0.5365, allocations: 2.199 MB / 0.5594 GB, free: 57.26 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.889e-05/0.5365, allocations: 11.98 kB / 0.5594 GB, free: 57.25 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005004/0.537, allocations: 170.2 kB / 0.5596 GB, free: 57.08 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001309/0.5384, allocations: 0.874 MB / 0.5605 GB, free: 56.16 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001391/0.5385, allocations: 259.7 kB / 0.5607 GB, free: 55.86 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000178/0.5387, allocations: 60 kB / 0.5608 GB, free: 55.8 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002162/0.5409, allocations: 1.636 MB / 0.5624 GB, free: 54.16 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002284/0.5432, allocations: 1.631 MB / 0.564 GB, free: 52.48 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.118e-05/0.5432, allocations: 0 / 0.564 GB, free: 52.48 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000143/0.5433, allocations: 8 kB / 0.564 GB, free: 52.48 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.562e-05/0.5434, allocations: 28 kB / 0.564 GB, free: 52.45 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01026/0.5536, allocations: 7.294 MB / 0.5711 GB, free: 44.7 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002702/0.5564, allocations: 3.765 MB / 0.5748 GB, free: 40.55 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001226/0.5576, allocations: 1.106 MB / 0.5759 GB, free: 39.44 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003124/0.558, allocations: 118.4 kB / 0.576 GB, free: 39.3 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001792/0.5598, allocations: 1.229 MB / 0.5772 GB, free: 38.06 MB / 362.7 MB Notification: Performance of pre-optimization done (n=166): time 4.789e-06/0.5598, allocations: 0 / 0.5772 GB, free: 38.06 MB / 362.7 MB Notification: Performance of matching and sorting (n=166): time 0.005167/0.565, allocations: 2.869 MB / 0.58 GB, free: 35.18 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.823e-05/0.5651, allocations: 128 kB / 0.5801 GB, free: 35.03 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009419/0.566, allocations: 0.6289 MB / 0.5807 GB, free: 34.4 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000179/0.5662, allocations: 37.69 kB / 0.5808 GB, free: 34.36 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002562/0.5665, allocations: 437 kB / 0.5812 GB, free: 33.92 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004209/0.5669, allocations: 0.5196 MB / 0.5817 GB, free: 33.39 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001055/0.567, allocations: 3.938 kB / 0.5817 GB, free: 33.39 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.334e-05/0.5671, allocations: 365.9 kB / 0.582 GB, free: 33.03 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001087/0.5682, allocations: 0.9218 MB / 0.5829 GB, free: 32.11 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001159/0.5694, allocations: 1.043 MB / 0.584 GB, free: 31.05 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002024/0.5714, allocations: 1.041 MB / 0.585 GB, free: 30.01 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.032e-06/0.5714, allocations: 4.031 kB / 0.585 GB, free: 30.01 MB / 362.7 MB Notification: Performance of matching and sorting (n=198) (initialization): time 0.006559/0.578, allocations: 3.345 MB / 0.5882 GB, free: 26.65 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.09e-05/0.578, allocations: 8 kB / 0.5883 GB, free: 26.64 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.648e-06/0.5781, allocations: 0 / 0.5883 GB, free: 26.64 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01048/0.5885, allocations: 3.07 MB / 0.5913 GB, free: 23.57 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007629/0.5893, allocations: 175.7 kB / 0.5914 GB, free: 23.39 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005285/0.5946, allocations: 3.514 MB / 0.5948 GB, free: 19.86 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001559/0.5962, allocations: 114.8 kB / 0.595 GB, free: 19.75 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002286/0.5965, allocations: 55.97 kB / 0.595 GB, free: 19.69 MB / 362.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.0005838/0.5971, allocations: 161.5 kB / 0.5952 GB, free: 19.53 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005122/0.6022, allocations: 2.881 MB / 0.598 GB, free: 16.63 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004486/0.6027, allocations: 126.6 kB / 0.5981 GB, free: 16.51 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005339/0.608, allocations: 3.2 MB / 0.6012 GB, free: 13.29 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.358e-05/0.6081, allocations: 20 kB / 0.6012 GB, free: 13.27 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.665e-06/0.6081, allocations: 0 / 0.6012 GB, free: 13.27 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.548e-05/0.6081, allocations: 7.969 kB / 0.6013 GB, free: 13.26 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009381/0.6175, allocations: 5.973 MB / 0.6071 GB, free: 7.242 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.576e-06/0.6175, allocations: 8 kB / 0.6071 GB, free: 7.234 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005224/0.6181, allocations: 143.8 kB / 0.6072 GB, free: 7.094 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0122/0.6303, allocations: 3.105 MB / 0.6103 GB, free: 3.984 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002966/0.6306, allocations: 23.91 kB / 0.6103 GB, free: 3.961 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00533/0.636, allocations: 3.564 MB / 0.6138 GB, free: 380 kB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/0.636, allocations: 4 kB / 0.6138 GB, free: 376 kB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007464/0.6435, allocations: 3.334 MB / 0.617 GB, free: 13.01 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005664/0.6441, allocations: 227.3 kB / 0.6172 GB, free: 12.77 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003857/0.6445, allocations: 4 kB / 0.6172 GB, free: 12.76 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001726/0.6462, allocations: 107.9 kB / 0.6173 GB, free: 12.66 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003349/0.6466, allocations: 113.8 kB / 0.6175 GB, free: 12.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002352/0.6469, allocations: 63.97 kB / 0.6175 GB, free: 12.48 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008023/0.6477, allocations: 491.2 kB / 0.618 GB, free: 12 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.6477, allocations: 4 kB / 0.618 GB, free: 12 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001366/0.6491, allocations: 371.4 kB / 0.6183 GB, free: 11.64 MB / 378.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.load4.degradedMode,feeder1.load2.degradedMode,feeder1.load4.degradedMode,feeder1.load1.degradedMode,feeder2.load2.degradedMode,feeder2.load3.degradedMode,feeder2.load1.degradedMode,feeder1.load3.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.007919/0.657, allocations: 3.913 MB / 0.6222 GB, free: 7.703 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.006143/0.6632, allocations: 2.581 MB / 0.6247 GB, free: 5.117 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.263e-05/0.6633, allocations: 9.938 kB / 0.6247 GB, free: 5.109 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004552/0.6678, allocations: 1.517 MB / 0.6262 GB, free: 3.594 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001301/0.6691, allocations: 98.69 kB / 0.6263 GB, free: 3.504 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005701/0.6749, allocations: 1.912 MB / 0.6281 GB, free: 1.547 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006729/0.6756, allocations: 1.104 MB / 0.6292 GB, free: 420 kB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0007148/0.6763, allocations: 153 kB / 0.6294 GB, free: 264 kB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006353/0.6769, allocations: 451.2 kB / 0.6298 GB, free: 15.82 MB / 394.7 MB Notification: Performance of SimCode: time 8.91e-07/0.677, allocations: 0 / 0.6298 GB, free: 15.82 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07117/0.7481, allocations: 37.07 MB / 0.666 GB, free: 10.82 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002959/0.7485, allocations: 157.7 kB / 0.6661 GB, free: 10.63 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.867/3.616, allocations: 0 / 0.6661 GB, free: 10.63 MB / 426.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)