Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.ExampleWithFMUs.MVLVNetworkWithBuses.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.ExampleWithFMUs.MVLVNetworkWithBuses,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_ExampleWithFMUs_MVLVNetworkWithBuses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.ExampleWithFMUs.MVLVNetworkWithBuses,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_ExampleWithFMUs_MVLVNetworkWithBuses",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.001066/0.001066, allocations: 107.7 kB / 16.45 MB, free: 6.492 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.001059/0.001059, allocations: 189.5 kB / 17.38 MB, free: 5.711 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.239/1.239, allocations: 222.9 MB / 241.1 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04713/0.04713, allocations: 8.092 MB / 299.3 MB, free: 6.641 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001114/0.001114, allocations: 71.89 kB / 414 MB, free: 22.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08761/0.08874, allocations: 51.5 MB / 465.5 MB, free: 2.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.ExampleWithFMUs.MVLVNetworkWithBuses): time 0.004364/0.09314, allocations: 3.731 MB / 469.2 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00262/0.09579, allocations: 1.816 MB / 471 MB, free: 13.08 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004261/0.09624, allocations: 15.94 kB / 471.1 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005256/0.09679, allocations: 214.6 kB / 471.3 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007571/0.09756, allocations: 333.8 kB / 471.6 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002123/0.09969, allocations: 1.303 MB / 472.9 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007433/0.1004, allocations: 0.6998 MB / 473.6 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003598/0.1008, allocations: 257.5 kB / 473.9 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003758/0.1012, allocations: 298.9 kB / 474.1 MB, free: 9.973 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00041/0.1016, allocations: 374.4 kB / 474.5 MB, free: 9.605 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.81e-05/0.1017, allocations: 56 kB / 474.6 MB, free: 9.551 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004658/0.1022, allocations: 303.7 kB / 474.9 MB, free: 9.254 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001184/0.1023, allocations: 139.5 kB / 475 MB, free: 9.117 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002968/0.1026, allocations: 346.2 kB / 475.3 MB, free: 8.777 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008685/0.1035, allocations: 0.8716 MB / 476.2 MB, free: 7.902 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.533e-06/0.1035, allocations: 8 kB / 476.2 MB, free: 7.895 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.1035, allocations: 0 / 476.2 MB, free: 7.895 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.447e-06/0.1035, allocations: 0 / 476.2 MB, free: 7.895 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.006807/0.1103, allocations: 1.929 MB / 478.1 MB, free: 5.906 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.86e-05/0.1104, allocations: 15.89 kB / 478.2 MB, free: 5.891 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001191/0.1105, allocations: 90.7 kB / 478.2 MB, free: 5.793 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001554/0.1107, allocations: 80.47 kB / 478.3 MB, free: 5.715 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005652/0.1112, allocations: 446.2 kB / 478.8 MB, free: 5.238 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.166e-05/0.1113, allocations: 37.38 kB / 478.8 MB, free: 5.203 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.913e-05/0.1114, allocations: 60.38 kB / 478.9 MB, free: 5.145 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001158/0.1125, allocations: 0.765 MB / 479.6 MB, free: 4.367 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.486e-05/0.1126, allocations: 3.938 kB / 479.6 MB, free: 4.363 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.111e-05/0.1126, allocations: 20 kB / 479.6 MB, free: 4.344 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.062e-05/0.1126, allocations: 12 kB / 479.7 MB, free: 4.332 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009953/0.1136, allocations: 0.6833 MB / 480.3 MB, free: 3.645 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003733/0.1174, allocations: 2.954 MB / 483.3 MB, free: 428 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001439/0.1188, allocations: 1.306 MB / 484.6 MB, free: 14.99 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006035/0.1195, allocations: 466.7 kB / 485.1 MB, free: 14.54 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.97e-05/0.1196, allocations: 20.62 kB / 485.1 MB, free: 14.52 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.092e-05/0.1196, allocations: 47.22 kB / 485.1 MB, free: 14.46 MB / 366.1 MB Notification: Performance of pre-optimization done (n=73): time 1.673e-06/0.1196, allocations: 4 kB / 485.1 MB, free: 14.46 MB / 366.1 MB Notification: Performance of matching and sorting (n=73): time 0.01311/0.1327, allocations: 3.444 MB / 488.6 MB, free: 10.98 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.753e-05/0.1328, allocations: 119.4 kB / 488.7 MB, free: 10.84 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004613/0.1333, allocations: 385.5 kB / 489.1 MB, free: 10.46 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.801e-05/0.1334, allocations: 41.7 kB / 489.1 MB, free: 10.41 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001756/0.1336, allocations: 229.5 kB / 489.3 MB, free: 10.18 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002143/0.1338, allocations: 261.7 kB / 489.6 MB, free: 9.922 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002663/0.1341, allocations: 154.6 kB / 489.7 MB, free: 9.766 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.1342, allocations: 366.7 kB / 490.1 MB, free: 9.398 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006465/0.1348, allocations: 449.8 kB / 490.5 MB, free: 8.957 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007113/0.1356, allocations: 0.5053 MB / 491 MB, free: 8.445 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00143/0.137, allocations: 0.986 MB / 492 MB, free: 7.457 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.137, allocations: 0 / 492 MB, free: 7.457 MB / 366.1 MB Notification: Performance of matching and sorting (n=104) (initialization): time 0.005195/0.1422, allocations: 1.988 MB / 494 MB, free: 5.461 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.136e-05/0.1423, allocations: 8 kB / 494 MB, free: 5.453 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.525e-06/0.1423, allocations: 0 / 494 MB, free: 5.453 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00552/0.1478, allocations: 1.519 MB / 495.5 MB, free: 3.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005047/0.1483, allocations: 123.8 kB / 495.7 MB, free: 3.809 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01064/0.159, allocations: 5.978 MB / 0.4899 GB, free: 13.7 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006311/0.1596, allocations: 79.55 kB / 0.49 GB, free: 13.62 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.551e-05/0.1597, allocations: 31.98 kB / 0.49 GB, free: 13.59 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (75): * Single equations (assignments): 74 * 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 {(16,14)} Notification: Performance of prepare postOptimizeDAE: time 0.000314/0.16, allocations: 197.7 kB / 0.4902 GB, free: 13.39 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001487/0.1602, allocations: 55.61 kB / 0.4902 GB, free: 13.33 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005161/0.1654, allocations: 1.92 MB / 0.4921 GB, free: 11.4 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.816e-06/0.1654, allocations: 8 kB / 0.4921 GB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.1654, allocations: 0 / 0.4921 GB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.123e-05/0.1654, allocations: 3.984 kB / 0.4921 GB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005998/0.1714, allocations: 2.764 MB / 0.4948 GB, free: 8.559 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.1714, allocations: 0 / 0.4948 GB, free: 8.559 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00033/0.1718, allocations: 95.89 kB / 0.4949 GB, free: 8.465 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005306/0.1771, allocations: 1.285 MB / 0.4962 GB, free: 7.176 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.713e-05/0.1772, allocations: 16 kB / 0.4962 GB, free: 7.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01078/0.188, allocations: 5.886 MB / 0.5019 GB, free: 1.129 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.188, allocations: 0 / 0.5019 GB, free: 1.129 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2207/0.4087, allocations: 1.897 MB / 0.5038 GB, free: 45.09 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003215/0.4091, allocations: 148.7 kB / 0.5039 GB, free: 44.99 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000169/0.4093, allocations: 15.33 kB / 0.5039 GB, free: 44.99 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000662/0.41, allocations: 45.08 kB / 0.504 GB, free: 44.99 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000332/0.4103, allocations: 63.28 kB / 0.504 GB, free: 44.99 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.679e-05/0.4104, allocations: 24.95 kB / 0.5041 GB, free: 44.99 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004535/0.4109, allocations: 263.7 kB / 0.5043 GB, free: 44.91 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4109, allocations: 3.75 kB / 0.5043 GB, free: 44.91 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001322/0.4122, allocations: 293.4 kB / 0.5046 GB, free: 44.91 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 54 * 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 {(16,14)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005828/0.418, allocations: 2.475 MB / 0.507 GB, free: 44.18 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004223/0.4223, allocations: 1.656 MB / 0.5086 GB, free: 43.98 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.372e-06/0.4223, allocations: 4.953 kB / 0.5086 GB, free: 43.98 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002935/0.4252, allocations: 1.087 MB / 0.5097 GB, free: 43.61 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006223/0.4259, allocations: 71.45 kB / 0.5098 GB, free: 43.57 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01685/0.4427, allocations: 7.666 MB / 0.5173 GB, free: 39.87 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005982/0.4434, allocations: 0.8918 MB / 0.5181 GB, free: 39.17 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003294/0.4437, allocations: 78.16 kB / 0.5182 GB, free: 39.16 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003289/0.4441, allocations: 212.4 kB / 0.5184 GB, free: 39.01 MB / 382.1 MB Notification: Performance of SimCode: time 7.01e-07/0.4441, allocations: 0 / 0.5184 GB, free: 39.01 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04114/0.4852, allocations: 23.26 MB / 0.5411 GB, free: 22.18 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.22/11.7, allocations: 11.42 kB / 0.5411 GB, free: 22.17 MB / 382.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.ExampleWithFMUs.MVLVNetworkWithBuses.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.ExampleWithFMUs.MVLVNetworkWithBuses.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.ExampleWithFMUs.MVLVNetworkWithBuses.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.ExampleWithFMUs.MVLVNetworkWithBuses.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.ExampleWithFMUs.MVLVNetworkWithBuses_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_ExampleWithFMUs_MVLVNetworkWithBuses.fmu > PowerSysPro_PowerSysPro.Examples.ExampleWithFMUs.MVLVNetworkWithBuses.pipe 2>&1)