Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.ExampleWithFMUs.MVPartOfMVLVNetwork.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.MVPartOfMVLVNetwork,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_ExampleWithFMUs_MVPartOfMVLVNetwork",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.ExampleWithFMUs.MVPartOfMVLVNetwork,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_ExampleWithFMUs_MVPartOfMVLVNetwork",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.001641/0.001641, allocations: 102.6 kB / 16.45 MB, free: 6.449 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.001715/0.001715, allocations: 189.4 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.342/1.342, 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.05072/0.05072, allocations: 8.099 MB / 299.3 MB, free: 6.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001742/0.001742, allocations: 71.88 kB / 414 MB, free: 22.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09004/0.09179, allocations: 51.5 MB / 465.5 MB, free: 2.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.ExampleWithFMUs.MVPartOfMVLVNetwork): time 0.003232/0.09507, allocations: 2.105 MB / 467.6 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002055/0.09714, allocations: 1.528 MB / 469.1 MB, free: 15.01 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001003/0.09725, allocations: 4 kB / 469.1 MB, free: 15.01 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003751/0.09765, allocations: 135.2 kB / 469.3 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003864/0.09805, allocations: 159 kB / 469.4 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001885/0.09994, allocations: 1.085 MB / 470.5 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004602/0.1004, allocations: 310.5 kB / 470.8 MB, free: 13.33 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002236/0.1006, allocations: 128.3 kB / 470.9 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001333/0.1008, allocations: 131.5 kB / 471.1 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001916/0.101, allocations: 159.2 kB / 471.2 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.927e-05/0.101, allocations: 24 kB / 471.2 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004665/0.1015, allocations: 255.7 kB / 471.5 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.748e-05/0.1016, allocations: 55.83 kB / 471.6 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001555/0.1017, allocations: 151.2 kB / 471.7 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006347/0.1024, allocations: 494.3 kB / 472.2 MB, free: 11.95 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.1024, allocations: 0 / 472.2 MB, free: 11.95 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.729e-06/0.1024, allocations: 4 kB / 472.2 MB, free: 11.95 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.394e-06/0.1024, allocations: 4 kB / 472.2 MB, free: 11.95 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.003918/0.1064, allocations: 1.138 MB / 473.3 MB, free: 10.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.429e-05/0.1064, allocations: 12.03 kB / 473.3 MB, free: 10.74 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001076/0.1065, allocations: 59.28 kB / 473.4 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.112e-05/0.1066, allocations: 36.7 kB / 473.4 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003302/0.1069, allocations: 295.7 kB / 473.7 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.642e-05/0.107, allocations: 20.94 kB / 473.7 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.678e-05/0.107, allocations: 28.38 kB / 473.8 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006416/0.1077, allocations: 381 kB / 474.1 MB, free: 9.883 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.711e-05/0.1077, allocations: 7.922 kB / 474.1 MB, free: 9.875 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.498e-05/0.1077, allocations: 15.94 kB / 474.2 MB, free: 9.859 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.736e-06/0.1078, allocations: 4 kB / 474.2 MB, free: 9.855 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005003/0.1083, allocations: 314.1 kB / 474.5 MB, free: 9.543 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002092/0.1104, allocations: 1.455 MB / 475.9 MB, free: 7.938 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001026/0.1114, allocations: 394.7 kB / 476.3 MB, free: 7.543 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002731/0.1117, allocations: 181.3 kB / 476.5 MB, free: 7.363 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.74e-05/0.1118, allocations: 12 kB / 476.5 MB, free: 7.352 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.452e-05/0.1118, allocations: 42.5 kB / 476.5 MB, free: 7.301 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.363e-06/0.1118, allocations: 0 / 476.5 MB, free: 7.301 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.00423/0.116, allocations: 1.262 MB / 477.8 MB, free: 5.988 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.491e-05/0.1161, allocations: 106.8 kB / 477.9 MB, free: 5.859 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000238/0.1164, allocations: 220.1 kB / 478.1 MB, free: 5.633 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.008e-05/0.1164, allocations: 33.7 kB / 478.2 MB, free: 5.594 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001256/0.1166, allocations: 164.6 kB / 478.3 MB, free: 5.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.04e-05/0.1167, allocations: 107 kB / 478.4 MB, free: 5.324 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001594/0.1168, allocations: 82.11 kB / 478.5 MB, free: 5.238 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.117, allocations: 342.8 kB / 478.8 MB, free: 4.895 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003352/0.1173, allocations: 200.8 kB / 479 MB, free: 4.699 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000378/0.1177, allocations: 252.2 kB / 479.3 MB, free: 4.438 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007444/0.1185, allocations: 469 kB / 479.7 MB, free: 3.977 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.1185, allocations: 0 / 479.7 MB, free: 3.977 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.002214/0.1207, allocations: 0.8409 MB / 480.6 MB, free: 3.121 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/0.1207, allocations: 4 kB / 480.6 MB, free: 3.117 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.292e-05/0.1207, allocations: 8 kB / 480.6 MB, free: 3.109 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002165/0.1229, allocations: 445.2 kB / 481 MB, free: 2.668 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000281/0.1232, allocations: 71.89 kB / 481.1 MB, free: 2.598 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005492/0.1287, allocations: 4.126 MB / 485.2 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003296/0.1291, allocations: 47.86 kB / 485.3 MB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.384e-05/0.1291, allocations: 23.97 kB / 485.3 MB, free: 14.11 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (40): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (3,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001957/0.1293, allocations: 145.7 kB / 485.4 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.032e-05/0.1294, allocations: 27.81 kB / 485.5 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002244/0.1317, allocations: 0.7861 MB / 486.3 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.11e-06/0.1317, allocations: 4 kB / 486.3 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.1317, allocations: 0 / 486.3 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-06/0.1317, allocations: 3.984 kB / 486.3 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004806/0.1322, allocations: 441 kB / 486.7 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.1322, allocations: 0 / 486.7 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001617/0.1324, allocations: 43.92 kB / 486.7 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002045/0.1344, allocations: 445.2 kB / 487.2 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.046e-05/0.1344, allocations: 15.92 kB / 487.2 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005421/0.1399, allocations: 4.134 MB / 491.3 MB, free: 7.73 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.1399, allocations: 0 / 491.3 MB, free: 7.73 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002087/0.142, allocations: 0.805 MB / 492.1 MB, free: 6.902 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.563e-05/0.1421, allocations: 108.9 kB / 492.2 MB, free: 6.777 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.201e-05/0.1421, allocations: 4 kB / 492.2 MB, free: 6.773 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002601/0.1424, allocations: 23.98 kB / 492.3 MB, free: 6.75 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.783e-05/0.1425, allocations: 23.97 kB / 492.3 MB, free: 6.727 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.554e-05/0.1425, allocations: 4 kB / 492.3 MB, free: 6.723 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001516/0.1427, allocations: 164.5 kB / 492.4 MB, free: 6.566 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1427, allocations: 0 / 492.4 MB, free: 6.566 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000528/0.1432, allocations: 135.9 kB / 492.6 MB, free: 6.434 MB / 366.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 (26): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (3,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00289/0.1461, allocations: 1.631 MB / 494.2 MB, free: 4.766 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001912/0.148, allocations: 0.8121 MB / 495 MB, free: 3.93 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.1481, allocations: 0 / 495 MB, free: 3.93 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001332/0.1494, allocations: 0.5637 MB / 495.6 MB, free: 3.34 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002891/0.1497, allocations: 16.67 kB / 495.6 MB, free: 3.324 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006887/0.1566, allocations: 3.876 MB / 499.5 MB, free: 15.36 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003792/0.157, allocations: 0.7688 MB / 0.4885 GB, free: 14.56 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001287/0.1571, allocations: 37.91 kB / 0.4886 GB, free: 14.52 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001439/0.1573, allocations: 91.41 kB / 0.4886 GB, free: 14.43 MB / 382.1 MB Notification: Performance of SimCode: time 2.314e-06/0.1573, allocations: 3.938 kB / 0.4886 GB, free: 14.43 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03773/0.195, allocations: 9.509 MB / 0.4979 GB, free: 5.051 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.694/9.889, allocations: 12.52 kB / 0.4979 GB, free: 5.043 MB / 382.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.ExampleWithFMUs.MVPartOfMVLVNetwork.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.ExampleWithFMUs.MVPartOfMVLVNetwork.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.ExampleWithFMUs.MVPartOfMVLVNetwork.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.ExampleWithFMUs.MVPartOfMVLVNetwork.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.ExampleWithFMUs.MVPartOfMVLVNetwork_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_MVPartOfMVLVNetwork.fmu > PowerSysPro_PowerSysPro.Examples.ExampleWithFMUs.MVPartOfMVLVNetwork.pipe 2>&1)