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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/PowerSysPro 2.3.1-master/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001297/0.001298, allocations: 105.5 kB / 16.45 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001227/0.001227, allocations: 186.4 kB / 17.38 MB, free: 5.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.415/1.415, allocations: 222.9 MB / 241.1 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05456/0.05456, allocations: 8.096 MB / 299.3 MB, free: 6.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002961/0.002961, allocations: 63.89 kB / 414 MB, free: 22.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1359/0.1389, allocations: 51.53 MB / 465.5 MB, free: 2.637 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithVariableLoads): time 0.008179/0.1471, allocations: 6.661 MB / 472.2 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005354/0.1525, allocations: 2.528 MB / 474.7 MB, free: 9.406 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007705/0.1533, allocations: 20 kB / 474.7 MB, free: 9.387 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009446/0.1543, allocations: 349.5 kB / 475.1 MB, free: 9.043 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002194/0.1566, allocations: 0.7765 MB / 475.8 MB, free: 8.266 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00352/0.1601, allocations: 1.591 MB / 477.4 MB, free: 6.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002616/0.1627, allocations: 1.697 MB / 479.1 MB, free: 4.977 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008941/0.1636, allocations: 0.5774 MB / 479.7 MB, free: 4.375 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00106/0.1647, allocations: 0.6929 MB / 480.4 MB, free: 3.68 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001086/0.1658, allocations: 0.8327 MB / 481.2 MB, free: 2.844 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002628/0.166, allocations: 176 kB / 481.4 MB, free: 2.672 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001003/0.1671, allocations: 447.8 kB / 481.8 MB, free: 2.234 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003713/0.1674, allocations: 374.8 kB / 482.2 MB, free: 1.867 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008738/0.1683, allocations: 0.7855 MB / 483 MB, free: 1.078 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002736/0.1711, allocations: 2.091 MB / 485.1 MB, free: 14.98 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.1711, allocations: 3.938 kB / 485.1 MB, free: 14.98 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.592e-06/0.1711, allocations: 4 kB / 485.1 MB, free: 14.97 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.387e-05/0.1711, allocations: 0 / 485.1 MB, free: 14.97 MB / 366.1 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.01603/0.1872, allocations: 3.715 MB / 488.8 MB, free: 11.2 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.204e-05/0.1872, allocations: 11.89 kB / 488.8 MB, free: 11.18 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002764/0.1875, allocations: 176.7 kB / 489 MB, free: 11 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003919/0.1879, allocations: 164 kB / 489.1 MB, free: 10.84 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001367/0.1893, allocations: 0.8437 MB / 490 MB, free: 9.953 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002699/0.1896, allocations: 312.7 kB / 490.3 MB, free: 9.598 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002045/0.1898, allocations: 120.4 kB / 490.4 MB, free: 9.48 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003205/0.193, allocations: 1.811 MB / 492.2 MB, free: 7.625 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.296e-05/0.193, allocations: 0 / 492.2 MB, free: 7.625 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001628/0.1932, allocations: 48 kB / 492.3 MB, free: 7.578 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.401e-05/0.1932, allocations: 24 kB / 492.3 MB, free: 7.555 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002983/0.1962, allocations: 1.718 MB / 494 MB, free: 5.828 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0111/0.2073, allocations: 6.943 MB / 0.4892 GB, free: 14.42 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004394/0.2118, allocations: 3.87 MB / 0.493 GB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001859/0.2137, allocations: 1.195 MB / 0.4942 GB, free: 8.961 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001907/0.2139, allocations: 33.27 kB / 0.4942 GB, free: 8.93 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002373/0.2162, allocations: 1.322 MB / 0.4955 GB, free: 7.594 MB / 382.1 MB Notification: Performance of pre-optimization done (n=167): time 4.468e-06/0.2163, allocations: 0 / 0.4955 GB, free: 7.594 MB / 382.1 MB Notification: Performance of matching and sorting (n=167): time 0.2507/0.467, allocations: 8.979 MB / 0.5043 GB, free: 44.83 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.384e-05/0.4671, allocations: 122.4 kB / 0.5044 GB, free: 44.71 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001256/0.4684, allocations: 0.7195 MB / 0.5051 GB, free: 44.58 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003244/0.4687, allocations: 72.66 kB / 0.5051 GB, free: 44.55 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003324/0.4691, allocations: 432.4 kB / 0.5056 GB, free: 44.46 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004762/0.4695, allocations: 0.5654 MB / 0.5061 GB, free: 44.14 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006659/0.4702, allocations: 340.1 kB / 0.5064 GB, free: 43.98 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.679e-05/0.4703, allocations: 348.5 kB / 0.5068 GB, free: 43.65 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001791/0.4721, allocations: 1.108 MB / 0.5078 GB, free: 43.12 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00195/0.4741, allocations: 1.274 MB / 0.5091 GB, free: 42.48 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003835/0.4779, allocations: 2.404 MB / 0.5114 GB, free: 41.16 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.808e-06/0.4779, allocations: 1.312 kB / 0.5114 GB, free: 41.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.007995/0.4859, allocations: 3.727 MB / 0.5151 GB, free: 39.41 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.633e-05/0.486, allocations: 5.844 kB / 0.5151 GB, free: 39.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.387e-05/0.486, allocations: 4.25 kB / 0.5151 GB, free: 39.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01682/0.5028, allocations: 5.329 MB / 0.5203 GB, free: 38.79 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001119/0.504, allocations: 246.9 kB / 0.5205 GB, free: 38.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006508/0.5105, allocations: 3.44 MB / 0.5239 GB, free: 36.82 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001616/0.5122, allocations: 181.3 kB / 0.5241 GB, free: 36.74 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001486/0.5123, allocations: 62.72 kB / 0.5241 GB, free: 36.73 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 24 (feeder1.load4.degradedMode,$PRE.feeder1.load4.degradedMode,feeder1.load3.degradedMode,$PRE.feeder1.load3.degradedMode,feeder1.load2.degradedMode,$PRE.feeder1.load2.degradedMode,feeder1.load1.degradedMode,$PRE.feeder1.load1.degradedMode,feeder2.load4.degradedMode,$PRE.feeder2.load4.degradedMode,feeder2.load3.degradedMode,$PRE.feeder2.load3.degradedMode,feeder2.load2.degradedMode,$PRE.feeder2.load2.degradedMode,feeder2.load1.degradedMode,$PRE.feeder2.load1.degradedMode,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (163): * Single equations (assignments): 162 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(40,44)} Notification: Performance of prepare postOptimizeDAE: time 0.0006343/0.513, allocations: 347.8 kB / 0.5245 GB, free: 36.45 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002337/0.5132, allocations: 134.1 kB / 0.5246 GB, free: 36.39 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004846/0.5181, allocations: 3.354 MB / 0.5279 GB, free: 34.24 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.408e-05/0.5181, allocations: 20 kB / 0.5279 GB, free: 34.22 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.093e-05/0.5181, allocations: 0 / 0.5279 GB, free: 34.22 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.292e-05/0.5181, allocations: 12.44 kB / 0.5279 GB, free: 34.22 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006489/0.5246, allocations: 5.699 MB / 0.5335 GB, free: 29.33 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.397e-06/0.5247, allocations: 0 / 0.5335 GB, free: 29.33 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004962/0.5252, allocations: 153.7 kB / 0.5336 GB, free: 29.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01238/0.5376, allocations: 3.791 MB / 0.5373 GB, free: 25.59 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003338/0.538, allocations: 39.98 kB / 0.5373 GB, free: 25.55 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006286/0.5443, allocations: 3.505 MB / 0.5408 GB, free: 22.03 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.5443, allocations: 0 / 0.5408 GB, free: 22.03 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004276/0.5486, allocations: 3.238 MB / 0.5439 GB, free: 18.77 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002939/0.5489, allocations: 227.6 kB / 0.5441 GB, free: 18.55 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001934/0.5491, allocations: 36 kB / 0.5442 GB, free: 18.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001301/0.5504, allocations: 112.6 kB / 0.5443 GB, free: 18.41 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00028/0.5507, allocations: 121.8 kB / 0.5444 GB, free: 18.29 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001508/0.5508, allocations: 63.98 kB / 0.5445 GB, free: 18.23 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000613/0.5515, allocations: 491 kB / 0.5449 GB, free: 17.75 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5515, allocations: 0 / 0.5449 GB, free: 17.75 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009709/0.5524, allocations: 455.8 kB / 0.5454 GB, free: 17.31 MB / 382.1 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 (feeder1.load2.degradedMode,feeder1.load3.degradedMode,feeder1.load1.degradedMode,feeder2.load2.degradedMode,feeder2.load3.degradedMode,feeder2.load1.degradedMode,feeder2.load4.degradedMode,feeder1.load4.degradedMode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (97): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(42,50)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004427/0.5569, allocations: 3.883 MB / 0.5492 GB, free: 13.41 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006851/0.5638, allocations: 3.183 MB / 0.5523 GB, free: 10.23 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.598e-06/0.5638, allocations: 9.938 kB / 0.5523 GB, free: 10.22 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004971/0.5688, allocations: 1.857 MB / 0.5541 GB, free: 8.371 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001108/0.5699, allocations: 173.4 kB / 0.5542 GB, free: 8.207 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02482/0.5947, allocations: 15.01 MB / 0.5689 GB, free: 9.055 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007945/0.5956, allocations: 1.085 MB / 0.57 GB, free: 7.938 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006625/0.5962, allocations: 157 kB / 0.5701 GB, free: 7.781 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006472/0.5969, allocations: 455.3 kB / 0.5706 GB, free: 7.336 MB / 398.1 MB Notification: Performance of SimCode: time 1.613e-06/0.5969, allocations: 0 / 0.5706 GB, free: 7.336 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08954/0.6864, allocations: 41.14 MB / 0.6107 GB, free: 14.49 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.19/14.87, allocations: 14.86 kB / 0.6107 GB, free: 14.48 MB / 446.1 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/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)