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.001116/0.001116, allocations: 103.6 kB / 16.45 MB, free: 6.434 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.001142/0.001142, allocations: 192.8 kB / 17.39 MB, free: 5.664 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.248/1.248, allocations: 222.9 MB / 241.1 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04584/0.04584, allocations: 8.103 MB / 299.3 MB, free: 6.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00116/0.00116, allocations: 59.91 kB / 414 MB, free: 22.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09036/0.09153, allocations: 51.51 MB / 465.5 MB, free: 2.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithVariableLoads): time 0.006759/0.09833, allocations: 6.668 MB / 472.2 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004069/0.1024, allocations: 2.54 MB / 474.7 MB, free: 9.414 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009421/0.1034, allocations: 24 kB / 474.7 MB, free: 9.391 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001036/0.1045, allocations: 353.5 kB / 475.1 MB, free: 9.043 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002357/0.1068, allocations: 0.7648 MB / 475.8 MB, free: 8.277 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00313/0.11, allocations: 1.591 MB / 477.4 MB, free: 6.691 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002511/0.1125, allocations: 1.697 MB / 479.1 MB, free: 4.988 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009878/0.1135, allocations: 0.5813 MB / 479.7 MB, free: 4.383 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001153/0.1147, allocations: 0.6891 MB / 480.4 MB, free: 3.691 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001312/0.116, allocations: 0.8405 MB / 481.2 MB, free: 2.848 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004804/0.1165, allocations: 176 kB / 481.4 MB, free: 2.676 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001176/0.1177, allocations: 443.8 kB / 481.8 MB, free: 2.242 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005511/0.1182, allocations: 370.8 kB / 482.2 MB, free: 1.879 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001282/0.1195, allocations: 0.7855 MB / 483 MB, free: 1.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002878/0.1224, allocations: 2.095 MB / 485.1 MB, free: 14.98 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.1224, allocations: 7.938 kB / 485.1 MB, free: 14.98 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.1224, allocations: 0 / 485.1 MB, free: 14.98 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.427e-05/0.1225, allocations: 0 / 485.1 MB, free: 14.98 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.01525/0.1378, allocations: 3.715 MB / 488.8 MB, free: 11.2 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.808e-05/0.1378, allocations: 11.89 kB / 488.8 MB, free: 11.19 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00043/0.1383, allocations: 168.7 kB / 489 MB, free: 11.01 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005175/0.1388, allocations: 172 kB / 489.2 MB, free: 10.84 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001422/0.1402, allocations: 0.8397 MB / 490 MB, free: 9.965 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002043/0.1405, allocations: 316.7 kB / 490.3 MB, free: 9.605 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002615/0.1407, allocations: 120.4 kB / 490.4 MB, free: 9.488 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003038/0.1438, allocations: 1.808 MB / 492.2 MB, free: 7.637 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.561e-05/0.1438, allocations: 0 / 492.2 MB, free: 7.637 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001624/0.144, allocations: 48 kB / 492.3 MB, free: 7.59 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.255e-05/0.144, allocations: 24 kB / 492.3 MB, free: 7.566 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002654/0.1467, allocations: 1.718 MB / 494 MB, free: 5.84 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009216/0.1559, allocations: 6.939 MB / 0.4892 GB, free: 14.43 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003718/0.1597, allocations: 3.882 MB / 0.493 GB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001616/0.1613, allocations: 1.188 MB / 0.4942 GB, free: 8.973 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001782/0.1615, allocations: 37.2 kB / 0.4942 GB, free: 8.938 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002189/0.1637, allocations: 1.314 MB / 0.4955 GB, free: 7.609 MB / 382.1 MB Notification: Performance of pre-optimization done (n=167): time 3.887e-06/0.1637, allocations: 4 kB / 0.4955 GB, free: 7.605 MB / 382.1 MB Notification: Performance of matching and sorting (n=167): time 0.2062/0.3699, allocations: 8.976 MB / 0.5043 GB, free: 44.81 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.19e-05/0.37, allocations: 125.9 kB / 0.5044 GB, free: 44.68 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001019/0.371, allocations: 0.7209 MB / 0.5051 GB, free: 44.56 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002533/0.3713, allocations: 72.69 kB / 0.5051 GB, free: 44.53 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002631/0.3716, allocations: 428.1 kB / 0.5056 GB, free: 44.44 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004051/0.372, allocations: 0.5706 MB / 0.5061 GB, free: 44.14 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005994/0.3726, allocations: 337.3 kB / 0.5064 GB, free: 43.98 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.488e-05/0.3727, allocations: 348.2 kB / 0.5068 GB, free: 43.66 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001631/0.3743, allocations: 1.108 MB / 0.5078 GB, free: 43.12 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00175/0.3761, allocations: 1.275 MB / 0.5091 GB, free: 42.49 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003264/0.3793, allocations: 2.402 MB / 0.5114 GB, free: 41.17 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.116e-06/0.3794, allocations: 3 kB / 0.5114 GB, free: 41.17 MB / 382.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.006743/0.3861, allocations: 3.727 MB / 0.5151 GB, free: 39.41 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.77e-05/0.3862, allocations: 5.859 kB / 0.5151 GB, free: 39.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.196e-05/0.3862, allocations: 1 kB / 0.5151 GB, free: 39.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01408/0.4003, allocations: 5.331 MB / 0.5203 GB, free: 38.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001122/0.4015, allocations: 247.7 kB / 0.5205 GB, free: 38.8 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006049/0.4075, allocations: 3.434 MB / 0.5239 GB, free: 36.85 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001385/0.4089, allocations: 188.2 kB / 0.5241 GB, free: 36.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001622/0.4091, allocations: 68.98 kB / 0.5241 GB, free: 36.75 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.0005792/0.4097, allocations: 340.7 kB / 0.5245 GB, free: 36.48 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002319/0.4099, allocations: 127.7 kB / 0.5246 GB, free: 36.42 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004418/0.4143, allocations: 3.361 MB / 0.5279 GB, free: 34.27 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.087e-05/0.4144, allocations: 20 kB / 0.5279 GB, free: 34.25 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.745e-06/0.4144, allocations: 0 / 0.5279 GB, free: 34.25 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.886e-05/0.4144, allocations: 12.11 kB / 0.5279 GB, free: 34.25 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005992/0.4204, allocations: 5.695 MB / 0.5335 GB, free: 29.37 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.514e-06/0.4205, allocations: 4 kB / 0.5335 GB, free: 29.36 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004396/0.4209, allocations: 153 kB / 0.5336 GB, free: 29.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01109/0.432, allocations: 3.795 MB / 0.5373 GB, free: 25.62 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003766/0.4324, allocations: 36 kB / 0.5373 GB, free: 25.58 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005818/0.4382, allocations: 3.506 MB / 0.5408 GB, free: 22.05 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.4383, allocations: 0 / 0.5408 GB, free: 22.05 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004041/0.4423, allocations: 3.238 MB / 0.5439 GB, free: 18.8 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003248/0.4427, allocations: 227.6 kB / 0.5441 GB, free: 18.58 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001753/0.4428, allocations: 32 kB / 0.5442 GB, free: 18.55 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00118/0.444, allocations: 119.1 kB / 0.5443 GB, free: 18.43 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002356/0.4443, allocations: 117.8 kB / 0.5444 GB, free: 18.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001256/0.4444, allocations: 63.98 kB / 0.5445 GB, free: 18.26 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005471/0.445, allocations: 487 kB / 0.5449 GB, free: 17.78 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.445, allocations: 0 / 0.5449 GB, free: 17.78 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009282/0.4459, allocations: 455.8 kB / 0.5454 GB, free: 17.34 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.004185/0.4501, allocations: 3.882 MB / 0.5492 GB, free: 13.44 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006289/0.4564, allocations: 3.186 MB / 0.5523 GB, free: 10.26 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.663e-06/0.4564, allocations: 8.594 kB / 0.5523 GB, free: 10.25 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004505/0.4609, allocations: 1.871 MB / 0.5541 GB, free: 8.387 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001102/0.4621, allocations: 167.6 kB / 0.5543 GB, free: 8.23 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02239/0.4845, allocations: 15 MB / 0.5689 GB, free: 9.082 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006294/0.4851, allocations: 1.085 MB / 0.57 GB, free: 7.965 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005599/0.4857, allocations: 160.9 kB / 0.5701 GB, free: 7.805 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005735/0.4863, allocations: 455.3 kB / 0.5706 GB, free: 7.359 MB / 398.1 MB Notification: Performance of SimCode: time 7.11e-07/0.4863, allocations: 0 / 0.5706 GB, free: 7.359 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06726/0.5536, allocations: 41.15 MB / 0.6107 GB, free: 14.51 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.47/13.03, allocations: 15.11 kB / 0.6108 GB, free: 14.5 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)