Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.MediumNetworks.Network.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.MediumNetworks.Network,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_MediumNetworks_Network",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.MediumNetworks.Network,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_MediumNetworks_Network",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.001477/0.001478, allocations: 104.9 kB / 16.45 MB, free: 6.457 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.001604/0.001605, allocations: 189.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.237/1.237, allocations: 222.9 MB / 241.1 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.0438/0.0438, allocations: 8.11 MB / 299.3 MB, free: 6.609 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 63.91 kB / 414 MB, free: 22.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08512/0.08642, allocations: 51.51 MB / 465.5 MB, free: 2.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.MediumNetworks.Network): time 0.00494/0.09141, allocations: 3.865 MB / 469.4 MB, free: 14.78 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00299/0.09443, allocations: 1.956 MB / 471.3 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005699/0.09502, allocations: 12 kB / 471.3 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006771/0.09574, allocations: 226.5 kB / 471.6 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001092/0.09684, allocations: 389.5 kB / 471.9 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00231/0.09917, allocations: 1.326 MB / 473.3 MB, free: 10.87 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009865/0.1002, allocations: 0.7892 MB / 474.1 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003371/0.1005, allocations: 257.5 kB / 474.3 MB, free: 9.816 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002857/0.1008, allocations: 338.6 kB / 474.6 MB, free: 9.484 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004371/0.1012, allocations: 422.2 kB / 475 MB, free: 9.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.868e-05/0.1013, allocations: 64 kB / 475.1 MB, free: 9.008 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000503/0.1019, allocations: 295.8 kB / 475.4 MB, free: 8.719 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001376/0.102, allocations: 163.3 kB / 475.6 MB, free: 8.559 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003037/0.1023, allocations: 378 kB / 475.9 MB, free: 8.188 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009163/0.1032, allocations: 0.9417 MB / 476.9 MB, free: 7.242 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.125e-06/0.1032, allocations: 4 kB / 476.9 MB, free: 7.238 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1033, allocations: 0 / 476.9 MB, free: 7.238 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.634e-06/0.1033, allocations: 0 / 476.9 MB, free: 7.238 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.007472/0.1107, allocations: 2.151 MB / 479 MB, free: 5.031 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.045e-05/0.1108, allocations: 11.89 kB / 479 MB, free: 5.02 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001206/0.1109, allocations: 98.64 kB / 479.1 MB, free: 4.914 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001497/0.1111, allocations: 88.42 kB / 479.2 MB, free: 4.828 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006104/0.1117, allocations: 482.1 kB / 479.7 MB, free: 4.316 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.399e-05/0.1117, allocations: 45.38 kB / 479.7 MB, free: 4.273 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.578e-05/0.1118, allocations: 60.38 kB / 479.8 MB, free: 4.215 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001203/0.113, allocations: 0.8415 MB / 480.6 MB, free: 3.363 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.499e-05/0.1131, allocations: 3.938 kB / 480.6 MB, free: 3.359 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.304e-05/0.1131, allocations: 20 kB / 480.7 MB, free: 3.34 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.106e-05/0.1132, allocations: 12 kB / 480.7 MB, free: 3.328 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001091/0.1143, allocations: 0.7848 MB / 481.5 MB, free: 2.539 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003949/0.1182, allocations: 3.327 MB / 484.8 MB, free: 14.9 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00154/0.1198, allocations: 1.352 MB / 486.1 MB, free: 13.47 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007301/0.1205, allocations: 0.5961 MB / 486.7 MB, free: 12.88 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001035/0.1206, allocations: 28.95 kB / 486.8 MB, free: 12.85 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.513e-05/0.1207, allocations: 43.56 kB / 486.8 MB, free: 12.79 MB / 366.1 MB Notification: Performance of pre-optimization done (n=89): time 2.044e-06/0.1207, allocations: 0 / 486.8 MB, free: 12.79 MB / 366.1 MB Notification: Performance of matching and sorting (n=89): time 0.01341/0.1341, allocations: 3.962 MB / 490.8 MB, free: 8.801 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.298e-05/0.1342, allocations: 119.8 kB / 490.9 MB, free: 8.66 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004744/0.1347, allocations: 441.8 kB / 491.3 MB, free: 8.223 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.404e-05/0.1348, allocations: 45.7 kB / 491.4 MB, free: 8.172 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001454/0.1349, allocations: 237.8 kB / 491.6 MB, free: 7.934 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002502/0.1352, allocations: 317.2 kB / 491.9 MB, free: 7.621 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002862/0.1355, allocations: 182.6 kB / 492.1 MB, free: 7.438 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001329/0.1356, allocations: 366.8 kB / 492.4 MB, free: 7.07 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007473/0.1364, allocations: 0.5408 MB / 493 MB, free: 6.527 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000805/0.1372, allocations: 0.6224 MB / 493.6 MB, free: 5.898 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001642/0.1388, allocations: 1.213 MB / 494.8 MB, free: 4.684 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.1388, allocations: 0 / 494.8 MB, free: 4.684 MB / 366.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.005719/0.1446, allocations: 2.382 MB / 497.2 MB, free: 2.293 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.119e-05/0.1446, allocations: 4 kB / 497.2 MB, free: 2.289 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.039e-05/0.1446, allocations: 8 kB / 497.2 MB, free: 2.281 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006105/0.1507, allocations: 1.761 MB / 499 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005837/0.1513, allocations: 143.8 kB / 499.1 MB, free: 384 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01255/0.1639, allocations: 7.372 MB / 0.4946 GB, free: 8.867 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006965/0.1646, allocations: 95.28 kB / 0.4947 GB, free: 8.773 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.758e-05/0.1647, allocations: 35.98 kB / 0.4947 GB, free: 8.738 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 (87): * Single equations (assignments): 86 * 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 {(18,20)} Notification: Performance of prepare postOptimizeDAE: time 0.0003321/0.165, allocations: 201.7 kB / 0.4949 GB, free: 8.531 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001325/0.1652, allocations: 71.52 kB / 0.495 GB, free: 8.461 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005573/0.1707, allocations: 2.324 MB / 0.4973 GB, free: 6.125 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.589e-05/0.1708, allocations: 11.94 kB / 0.4973 GB, free: 6.113 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.835e-06/0.1708, allocations: 0 / 0.4973 GB, free: 6.113 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.929e-06/0.1708, allocations: 7.969 kB / 0.4973 GB, free: 6.105 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006549/0.1774, allocations: 3.327 MB / 0.5005 GB, free: 2.711 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/0.1774, allocations: 0 / 0.5005 GB, free: 2.711 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003673/0.1777, allocations: 107.8 kB / 0.5006 GB, free: 2.605 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005757/0.1835, allocations: 1.495 MB / 0.5021 GB, free: 1.105 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.691e-05/0.1836, allocations: 27.92 kB / 0.5021 GB, free: 1.078 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2002/0.3838, allocations: 7.224 MB / 0.5092 GB, free: 42.93 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.3838, allocations: 0 / 0.5092 GB, free: 42.93 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005336/0.3892, allocations: 2.29 MB / 0.5114 GB, free: 42.04 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001154/0.3893, allocations: 154.9 kB / 0.5116 GB, free: 41.9 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.559e-05/0.3894, allocations: 16.58 kB / 0.5116 GB, free: 41.89 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005578/0.3899, allocations: 54.16 kB / 0.5116 GB, free: 41.88 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001932/0.3901, allocations: 79.19 kB / 0.5117 GB, free: 41.86 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.7e-05/0.3902, allocations: 29.94 kB / 0.5117 GB, free: 41.86 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003195/0.3905, allocations: 291.7 kB / 0.512 GB, free: 41.71 MB / 382.1 MB Notification: Performance of sort global known variables: time 6.42e-07/0.3905, allocations: 0 / 0.512 GB, free: 41.71 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008343/0.3914, allocations: 349.1 kB / 0.5123 GB, free: 41.67 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 (66): * Single equations (assignments): 65 * 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 {(18,20)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005561/0.397, allocations: 2.882 MB / 0.5152 GB, free: 40.17 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003932/0.4009, allocations: 1.959 MB / 0.5171 GB, free: 39.32 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.618e-06/0.4009, allocations: 1.156 kB / 0.5171 GB, free: 39.32 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002888/0.4038, allocations: 1.309 MB / 0.5183 GB, free: 38.77 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005511/0.4044, allocations: 88.42 kB / 0.5184 GB, free: 38.72 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01464/0.419, allocations: 9.025 MB / 0.5272 GB, free: 34.43 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002712/0.4193, allocations: 0.9225 MB / 0.5281 GB, free: 33.72 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002592/0.4196, allocations: 98.08 kB / 0.5282 GB, free: 33.7 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002252/0.4198, allocations: 238.5 kB / 0.5285 GB, free: 33.52 MB / 382.1 MB Notification: Performance of SimCode: time 6.11e-07/0.4198, allocations: 0 / 0.5285 GB, free: 33.52 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04317/0.463, allocations: 28.56 MB / 0.5564 GB, free: 6.367 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.49/11.96, allocations: 8.062 kB / 0.5564 GB, free: 6.359 MB / 382.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.MediumNetworks.Network.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.MediumNetworks.Network.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.MediumNetworks.Network.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.MediumNetworks.Network.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.MediumNetworks.Network_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_MediumNetworks_Network.fmu > PowerSysPro_PowerSysPro.Examples.MediumNetworks.Network.pipe 2>&1)