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.001593/0.001593, allocations: 106.1 kB / 16.45 MB, free: 6.453 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.001702/0.001702, allocations: 192.1 kB / 17.39 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.436/1.436, 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.05123/0.05123, allocations: 8.105 MB / 299.3 MB, free: 6.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001797/0.001797, allocations: 59.89 kB / 414 MB, free: 22.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09959/0.1014, allocations: 51.52 MB / 465.5 MB, free: 2.539 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithVariableLoads): time 0.007923/0.1094, allocations: 6.661 MB / 472.2 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00479/0.1142, allocations: 2.528 MB / 474.7 MB, free: 9.309 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006395/0.1149, allocations: 23.94 kB / 474.7 MB, free: 9.285 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007976/0.1157, allocations: 357.6 kB / 475.1 MB, free: 8.934 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001935/0.1177, allocations: 0.7648 MB / 475.8 MB, free: 8.168 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003075/0.1208, allocations: 1.591 MB / 477.4 MB, free: 6.582 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002377/0.1231, allocations: 1.701 MB / 479.1 MB, free: 4.875 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008165/0.124, allocations: 0.5735 MB / 479.7 MB, free: 4.277 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009224/0.1249, allocations: 0.693 MB / 480.4 MB, free: 3.582 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001039/0.1259, allocations: 0.8327 MB / 481.2 MB, free: 2.746 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002421/0.1262, allocations: 176 kB / 481.4 MB, free: 2.574 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008932/0.1271, allocations: 447.7 kB / 481.8 MB, free: 2.137 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003406/0.1275, allocations: 374.8 kB / 482.2 MB, free: 1.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008039/0.1283, allocations: 0.7894 MB / 483 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002622/0.1309, allocations: 2.091 MB / 485.1 MB, free: 14.88 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.1309, allocations: 0 / 485.1 MB, free: 14.88 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.686e-06/0.1309, allocations: 0 / 485.1 MB, free: 14.88 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.352e-05/0.1309, allocations: 3.938 kB / 485.1 MB, free: 14.88 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.01564/0.1466, allocations: 3.718 MB / 488.8 MB, free: 11.09 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.475e-05/0.1467, allocations: 11.89 kB / 488.8 MB, free: 11.08 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002775/0.147, allocations: 172.7 kB / 489 MB, free: 10.9 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004663/0.1474, allocations: 164 kB / 489.1 MB, free: 10.74 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001452/0.1489, allocations: 0.8398 MB / 490 MB, free: 9.859 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002594/0.1492, allocations: 316.7 kB / 490.3 MB, free: 9.5 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002244/0.1494, allocations: 120.4 kB / 490.4 MB, free: 9.383 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003057/0.1525, allocations: 1.804 MB / 492.2 MB, free: 7.535 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.246e-05/0.1525, allocations: 0 / 492.2 MB, free: 7.535 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001528/0.1527, allocations: 55.98 kB / 492.3 MB, free: 7.48 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.07e-05/0.1527, allocations: 28 kB / 492.3 MB, free: 7.453 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002835/0.1555, allocations: 1.707 MB / 494 MB, free: 5.738 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01002/0.1656, allocations: 6.955 MB / 0.4892 GB, free: 14.32 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004043/0.1697, allocations: 3.874 MB / 0.493 GB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001731/0.1714, allocations: 1.188 MB / 0.4942 GB, free: 8.863 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000183/0.1716, allocations: 33.27 kB / 0.4942 GB, free: 8.832 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002299/0.1739, allocations: 1.322 MB / 0.4955 GB, free: 7.496 MB / 382.1 MB Notification: Performance of pre-optimization done (n=167): time 3.997e-06/0.1739, allocations: 4 kB / 0.4955 GB, free: 7.492 MB / 382.1 MB Notification: Performance of matching and sorting (n=167): time 0.2256/0.3995, allocations: 8.977 MB / 0.5043 GB, free: 44.72 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.256e-05/0.3996, allocations: 121.6 kB / 0.5044 GB, free: 44.59 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001171/0.4008, allocations: 0.7196 MB / 0.5051 GB, free: 44.47 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002992/0.4011, allocations: 73.03 kB / 0.5051 GB, free: 44.44 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003179/0.4014, allocations: 430 kB / 0.5056 GB, free: 44.35 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004658/0.4019, allocations: 0.5613 MB / 0.5061 GB, free: 44.07 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006403/0.4025, allocations: 341.6 kB / 0.5064 GB, free: 43.91 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.279e-05/0.4026, allocations: 347.6 kB / 0.5068 GB, free: 43.59 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001654/0.4043, allocations: 1.112 MB / 0.5078 GB, free: 43.05 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001806/0.4061, allocations: 1.272 MB / 0.5091 GB, free: 42.41 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003383/0.4095, allocations: 2.406 MB / 0.5114 GB, free: 41.1 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.841e-06/0.4095, allocations: 0 / 0.5114 GB, free: 41.1 MB / 382.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.007536/0.417, allocations: 3.728 MB / 0.5151 GB, free: 39.34 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.797e-05/0.4171, allocations: 7.344 kB / 0.5151 GB, free: 39.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.168e-05/0.4171, allocations: 1.25 kB / 0.5151 GB, free: 39.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01463/0.4318, allocations: 5.324 MB / 0.5203 GB, free: 38.74 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009991/0.4328, allocations: 251.9 kB / 0.5205 GB, free: 38.71 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006011/0.4388, allocations: 3.437 MB / 0.5239 GB, free: 36.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001395/0.4402, allocations: 186.8 kB / 0.5241 GB, free: 36.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001357/0.4404, allocations: 63.17 kB / 0.5241 GB, free: 36.67 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.0005437/0.4409, allocations: 342.9 kB / 0.5244 GB, free: 36.4 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002031/0.4411, allocations: 133.1 kB / 0.5246 GB, free: 36.33 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004498/0.4456, allocations: 3.356 MB / 0.5279 GB, free: 34.14 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.054e-05/0.4457, allocations: 16 kB / 0.5279 GB, free: 34.12 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.4457, allocations: 4 kB / 0.5279 GB, free: 34.12 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.96e-05/0.4457, allocations: 9.328 kB / 0.5279 GB, free: 34.12 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005778/0.4515, allocations: 5.704 MB / 0.5335 GB, free: 29.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.601e-06/0.4515, allocations: 0 / 0.5335 GB, free: 29.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004396/0.4519, allocations: 155 kB / 0.5336 GB, free: 29.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01174/0.4637, allocations: 3.787 MB / 0.5373 GB, free: 25.48 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001965/0.4639, allocations: 36 kB / 0.5373 GB, free: 25.45 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005814/0.4697, allocations: 3.512 MB / 0.5408 GB, free: 21.92 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.4698, allocations: 4 kB / 0.5408 GB, free: 21.91 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004027/0.4738, allocations: 3.238 MB / 0.5439 GB, free: 18.66 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00023/0.474, allocations: 220 kB / 0.5441 GB, free: 18.45 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001898/0.4742, allocations: 37.55 kB / 0.5442 GB, free: 18.41 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001241/0.4755, allocations: 115.1 kB / 0.5443 GB, free: 18.3 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002614/0.4757, allocations: 125.8 kB / 0.5444 GB, free: 18.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001258/0.4759, allocations: 59.98 kB / 0.5445 GB, free: 18.12 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005554/0.4764, allocations: 495 kB / 0.5449 GB, free: 17.64 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4764, allocations: 0 / 0.5449 GB, free: 17.64 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009121/0.4774, allocations: 451.2 kB / 0.5454 GB, free: 17.2 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.004136/0.4815, allocations: 3.873 MB / 0.5491 GB, free: 13.3 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006506/0.488, allocations: 3.193 MB / 0.5523 GB, free: 10.12 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.973e-06/0.4881, allocations: 5.688 kB / 0.5523 GB, free: 10.12 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004762/0.4928, allocations: 1.874 MB / 0.5541 GB, free: 8.25 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001004/0.4938, allocations: 161.1 kB / 0.5543 GB, free: 8.094 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0234/0.5173, allocations: 15 MB / 0.5689 GB, free: 8.953 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007557/0.518, allocations: 1.089 MB / 0.57 GB, free: 7.832 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000577/0.5186, allocations: 161 kB / 0.5701 GB, free: 7.672 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006217/0.5193, allocations: 451.3 kB / 0.5706 GB, free: 7.23 MB / 398.1 MB Notification: Performance of SimCode: time 9.72e-07/0.5193, allocations: 0 / 0.5706 GB, free: 7.23 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07942/0.5987, allocations: 41.15 MB / 0.6107 GB, free: 14.38 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.47/14.07, allocations: 18.73 kB / 0.6108 GB, free: 14.37 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 & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithVariableLoads_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSysPro_PowerSysPro_Examples_StructuredNetwork_DoubleNetworkWithVariableLoads.fmu > PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithVariableLoads.pipe 2>&1)