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.001263/0.001263, allocations: 108.4 kB / 16.45 MB, free: 6.645 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.001182/0.001182, allocations: 192.1 kB / 17.39 MB, free: 5.781 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.337/1.337, allocations: 222.9 MB / 241.1 MB, free: 15.02 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.0528/0.0528, allocations: 8.103 MB / 299.3 MB, free: 6.602 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001729/0.001729, allocations: 67.89 kB / 414 MB, free: 22.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08853/0.09027, allocations: 51.52 MB / 465.5 MB, free: 2.742 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.ExampleWithFMUs.MVLVNetworkWithBuses): time 0.004718/0.09502, allocations: 3.729 MB / 469.2 MB, free: 15 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002606/0.09765, allocations: 1.812 MB / 471.1 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001747/0.09784, allocations: 12 kB / 471.1 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000478/0.09832, allocations: 214.7 kB / 471.3 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006596/0.09901, allocations: 337.8 kB / 471.6 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002276/0.1013, allocations: 1.288 MB / 472.9 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000847/0.1021, allocations: 0.7076 MB / 473.6 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003646/0.1025, allocations: 252.8 kB / 473.8 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002916/0.1028, allocations: 294.9 kB / 474.1 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004644/0.1033, allocations: 378.4 kB / 474.5 MB, free: 9.711 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.002e-05/0.1034, allocations: 63.94 kB / 474.6 MB, free: 9.648 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005307/0.1039, allocations: 291.8 kB / 474.9 MB, free: 9.363 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001308/0.1041, allocations: 147.4 kB / 475 MB, free: 9.219 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003179/0.1044, allocations: 346.3 kB / 475.3 MB, free: 8.879 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009858/0.1054, allocations: 0.8719 MB / 476.2 MB, free: 8.004 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.1054, allocations: 0 / 476.2 MB, free: 8.004 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1054, allocations: 0 / 476.2 MB, free: 8.004 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.826e-06/0.1054, allocations: 0 / 476.2 MB, free: 8.004 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.006917/0.1123, allocations: 1.937 MB / 478.1 MB, free: 6.008 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/0.1124, allocations: 11.89 kB / 478.2 MB, free: 5.996 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001251/0.1125, allocations: 98.7 kB / 478.3 MB, free: 5.891 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001488/0.1127, allocations: 76.47 kB / 478.3 MB, free: 5.816 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005716/0.1133, allocations: 442.2 kB / 478.8 MB, free: 5.344 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.872e-05/0.1133, allocations: 45.38 kB / 478.8 MB, free: 5.301 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.267e-05/0.1134, allocations: 60.38 kB / 478.9 MB, free: 5.242 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001176/0.1146, allocations: 0.7571 MB / 479.6 MB, free: 4.473 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.78e-05/0.1146, allocations: 11.92 kB / 479.6 MB, free: 4.461 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.448e-05/0.1147, allocations: 24 kB / 479.7 MB, free: 4.438 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.176e-05/0.1147, allocations: 12 kB / 479.7 MB, free: 4.426 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001063/0.1158, allocations: 0.6833 MB / 480.3 MB, free: 3.738 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003955/0.1197, allocations: 2.95 MB / 483.3 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001557/0.1213, allocations: 1.31 MB / 484.6 MB, free: 15.09 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000642/0.122, allocations: 470.7 kB / 485.1 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.042e-05/0.1221, allocations: 20.62 kB / 485.1 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.696e-05/0.1221, allocations: 39.22 kB / 485.1 MB, free: 14.56 MB / 366.1 MB Notification: Performance of pre-optimization done (n=73): time 2.084e-06/0.1221, allocations: 0 / 485.1 MB, free: 14.56 MB / 366.1 MB Notification: Performance of matching and sorting (n=73): time 0.01332/0.1354, allocations: 3.452 MB / 488.6 MB, free: 11.07 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.602e-05/0.1356, allocations: 119.5 kB / 488.7 MB, free: 10.93 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004862/0.1361, allocations: 385.5 kB / 489.1 MB, free: 10.55 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.746e-05/0.1361, allocations: 41.7 kB / 489.1 MB, free: 10.5 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001761/0.1363, allocations: 229.5 kB / 489.3 MB, free: 10.27 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000219/0.1366, allocations: 257.7 kB / 489.6 MB, free: 10.02 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002708/0.1368, allocations: 154.6 kB / 489.7 MB, free: 9.863 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000166/0.137, allocations: 370.7 kB / 490.1 MB, free: 9.492 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006723/0.1377, allocations: 441.9 kB / 490.5 MB, free: 9.059 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007389/0.1384, allocations: 0.5131 MB / 491 MB, free: 8.539 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001479/0.1399, allocations: 0.986 MB / 492 MB, free: 7.551 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.1399, allocations: 0 / 492 MB, free: 7.551 MB / 366.1 MB Notification: Performance of matching and sorting (n=104) (initialization): time 0.005165/0.1451, allocations: 1.977 MB / 494 MB, free: 5.566 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.84e-05/0.1451, allocations: 4 kB / 494 MB, free: 5.562 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.1451, allocations: 0 / 494 MB, free: 5.562 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005584/0.1507, allocations: 1.531 MB / 495.5 MB, free: 4.027 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004943/0.1512, allocations: 127.8 kB / 495.7 MB, free: 3.902 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01127/0.1625, allocations: 5.97 MB / 0.4899 GB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006322/0.1632, allocations: 83.47 kB / 0.49 GB, free: 13.72 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.93e-05/0.1633, allocations: 27.98 kB / 0.49 GB, free: 13.69 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.0003092/0.1636, allocations: 185.8 kB / 0.4902 GB, free: 13.5 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001234/0.1637, allocations: 59.61 kB / 0.4902 GB, free: 13.44 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005331/0.169, allocations: 1.92 MB / 0.4921 GB, free: 11.51 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.233e-05/0.1691, allocations: 15.98 kB / 0.4921 GB, free: 11.5 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.1691, allocations: 0 / 0.4921 GB, free: 11.5 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.426e-06/0.1691, allocations: 11.86 kB / 0.4921 GB, free: 11.48 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006056/0.1751, allocations: 2.757 MB / 0.4948 GB, free: 8.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.097e-06/0.1752, allocations: 0 / 0.4948 GB, free: 8.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003208/0.1755, allocations: 95.89 kB / 0.4949 GB, free: 8.566 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005205/0.1807, allocations: 1.285 MB / 0.4962 GB, free: 7.277 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.368e-05/0.1808, allocations: 19.98 kB / 0.4962 GB, free: 7.258 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01113/0.1919, allocations: 5.882 MB / 0.5019 GB, free: 1.23 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.192, allocations: 4 kB / 0.5019 GB, free: 1.227 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1895/0.3814, allocations: 1.903 MB / 0.5038 GB, free: 44.99 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001816/0.3817, allocations: 143.4 kB / 0.5039 GB, free: 44.89 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001299/0.3818, allocations: 12.48 kB / 0.5039 GB, free: 44.89 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005458/0.3823, allocations: 47.09 kB / 0.504 GB, free: 44.89 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002802/0.3826, allocations: 63.91 kB / 0.504 GB, free: 44.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.788e-05/0.3827, allocations: 25.86 kB / 0.5041 GB, free: 44.89 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003471/0.3831, allocations: 263.2 kB / 0.5043 GB, free: 44.82 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3831, allocations: 1.438 kB / 0.5043 GB, free: 44.82 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008987/0.384, allocations: 294.5 kB / 0.5046 GB, free: 44.82 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.005077/0.3891, allocations: 2.47 MB / 0.507 GB, free: 44.08 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003725/0.3928, allocations: 1.645 MB / 0.5086 GB, free: 43.88 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.791e-06/0.3928, allocations: 5.453 kB / 0.5086 GB, free: 43.88 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002808/0.3956, allocations: 1.096 MB / 0.5097 GB, free: 43.5 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005547/0.3962, allocations: 67.23 kB / 0.5098 GB, free: 43.46 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0147/0.4109, allocations: 7.662 MB / 0.5172 GB, free: 39.76 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003889/0.4113, allocations: 0.8926 MB / 0.5181 GB, free: 39.06 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002896/0.4116, allocations: 85 kB / 0.5182 GB, free: 39.05 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002435/0.4119, allocations: 213.8 kB / 0.5184 GB, free: 38.89 MB / 382.1 MB Notification: Performance of SimCode: time 7.52e-07/0.4119, allocations: 0 / 0.5184 GB, free: 38.89 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04557/0.4575, allocations: 23.27 MB / 0.5411 GB, free: 22.13 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.07/12.53, allocations: 3.938 kB / 0.5411 GB, free: 22.13 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)