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.001053/0.001053, allocations: 104.5 kB / 16.45 MB, free: 6.445 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.001145/0.001145, allocations: 186.4 kB / 17.39 MB, free: 5.688 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.242/1.242, allocations: 222.9 MB / 241.1 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04618/0.04618, allocations: 8.089 MB / 299.3 MB, free: 6.637 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001115/0.001115, allocations: 60.12 kB / 414 MB, free: 22.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08046/0.08158, allocations: 51.52 MB / 465.5 MB, free: 2.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.ExampleWithFMUs.MVPartOfMVLVNetwork): time 0.003158/0.08477, allocations: 2.089 MB / 467.6 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001993/0.08679, allocations: 1.528 MB / 469.1 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001021/0.08692, allocations: 4 kB / 469.1 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003564/0.0873, allocations: 143.2 kB / 469.3 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003558/0.08767, allocations: 158.9 kB / 469.4 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001758/0.08943, allocations: 1.077 MB / 470.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000384/0.08983, allocations: 314.5 kB / 470.8 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002064/0.09004, allocations: 124.3 kB / 470.9 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001199/0.09017, allocations: 135.5 kB / 471.1 MB, free: 13.08 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001764/0.09035, allocations: 155.3 kB / 471.2 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.172e-05/0.0904, allocations: 24 kB / 471.2 MB, free: 12.9 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004172/0.09082, allocations: 247.7 kB / 471.5 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.169e-05/0.09089, allocations: 63.83 kB / 471.5 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001432/0.09103, allocations: 155.2 kB / 471.7 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005766/0.09162, allocations: 494.3 kB / 472.2 MB, free: 11.96 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.09163, allocations: 0 / 472.2 MB, free: 11.96 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.885e-06/0.09164, allocations: 0 / 472.2 MB, free: 11.96 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.711e-06/0.09165, allocations: 3.938 kB / 472.2 MB, free: 11.96 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.003636/0.09529, allocations: 1.142 MB / 473.3 MB, free: 10.76 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.805e-05/0.09534, allocations: 11.97 kB / 473.3 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.514e-05/0.09544, allocations: 59.28 kB / 473.4 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.511e-05/0.09552, allocations: 40.7 kB / 473.4 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002811/0.09581, allocations: 291.8 kB / 473.7 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.729e-05/0.09583, allocations: 20.94 kB / 473.7 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.566e-05/0.09588, allocations: 24.38 kB / 473.8 MB, free: 10.28 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005574/0.09645, allocations: 389 kB / 474.1 MB, free: 9.887 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.133e-05/0.09647, allocations: 3.938 kB / 474.1 MB, free: 9.883 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.165e-05/0.0965, allocations: 12 kB / 474.2 MB, free: 9.871 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.642e-06/0.09652, allocations: 4 kB / 474.2 MB, free: 9.867 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004619/0.09698, allocations: 318.1 kB / 474.5 MB, free: 9.551 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001875/0.09887, allocations: 1.447 MB / 475.9 MB, free: 7.953 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009427/0.09988, allocations: 405.4 kB / 476.3 MB, free: 7.551 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002455/0.1001, allocations: 181.3 kB / 476.5 MB, free: 7.371 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.392e-05/0.1002, allocations: 11.98 kB / 476.5 MB, free: 7.359 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.355e-05/0.1002, allocations: 34.56 kB / 476.5 MB, free: 7.316 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.423e-06/0.1002, allocations: 7.938 kB / 476.5 MB, free: 7.309 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.003777/0.104, allocations: 1.254 MB / 477.8 MB, free: 6.004 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.817e-05/0.1041, allocations: 106.8 kB / 477.9 MB, free: 5.875 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001993/0.1043, allocations: 224.1 kB / 478.1 MB, free: 5.645 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.381e-05/0.1044, allocations: 33.7 kB / 478.2 MB, free: 5.605 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.039e-05/0.1045, allocations: 160.7 kB / 478.3 MB, free: 5.445 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.907e-05/0.1045, allocations: 107 kB / 478.4 MB, free: 5.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001392/0.1047, allocations: 82.11 kB / 478.5 MB, free: 5.254 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001248/0.1048, allocations: 346.7 kB / 478.8 MB, free: 4.906 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002943/0.1051, allocations: 204.8 kB / 479 MB, free: 4.707 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003263/0.1055, allocations: 248.2 kB / 479.3 MB, free: 4.449 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006228/0.1061, allocations: 469.1 kB / 479.7 MB, free: 3.988 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.1061, allocations: 4 kB / 479.7 MB, free: 3.984 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.002006/0.1081, allocations: 0.8408 MB / 480.6 MB, free: 3.129 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.254e-05/0.1082, allocations: 4 kB / 480.6 MB, free: 3.125 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/0.1082, allocations: 7.984 kB / 480.6 MB, free: 3.117 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001957/0.1101, allocations: 441.2 kB / 481 MB, free: 2.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002873/0.1104, allocations: 71.91 kB / 481.1 MB, free: 2.609 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00501/0.1154, allocations: 4.138 MB / 485.2 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003039/0.1158, allocations: 43.7 kB / 485.3 MB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.558e-05/0.1158, allocations: 15.98 kB / 485.3 MB, free: 14.12 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.0001782/0.116, allocations: 153.8 kB / 485.4 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.443e-05/0.1161, allocations: 27.81 kB / 485.5 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002027/0.1181, allocations: 0.7784 MB / 486.2 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/0.1181, allocations: 7.984 kB / 486.3 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.1181, allocations: 4 kB / 486.3 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.1181, allocations: 4 kB / 486.3 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004133/0.1186, allocations: 441 kB / 486.7 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.048e-06/0.1186, allocations: 0 / 486.7 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001683/0.1188, allocations: 51.84 kB / 486.7 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001856/0.1206, allocations: 441.2 kB / 487.2 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.775e-05/0.1207, allocations: 4 kB / 487.2 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004743/0.1254, allocations: 4.126 MB / 491.3 MB, free: 7.75 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.1254, allocations: 400 / 491.3 MB, free: 7.75 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001899/0.1273, allocations: 0.8129 MB / 492.1 MB, free: 6.914 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.818e-05/0.1274, allocations: 104.9 kB / 492.2 MB, free: 6.793 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.582e-05/0.1275, allocations: 4 kB / 492.2 MB, free: 6.789 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002599/0.1277, allocations: 19.98 kB / 492.2 MB, free: 6.77 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.105e-05/0.1278, allocations: 31.91 kB / 492.3 MB, free: 6.738 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.81e-05/0.1278, allocations: 11.98 kB / 492.3 MB, free: 6.727 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001251/0.128, allocations: 156.5 kB / 492.4 MB, free: 6.578 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.128, allocations: 0 / 492.4 MB, free: 6.578 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004963/0.1285, allocations: 135.9 kB / 492.6 MB, free: 6.445 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.002576/0.1311, allocations: 1.639 MB / 494.2 MB, free: 4.77 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001721/0.1328, allocations: 0.8043 MB / 495 MB, free: 3.941 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.1328, allocations: 0 / 495 MB, free: 3.941 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001232/0.1341, allocations: 0.5597 MB / 495.6 MB, free: 3.355 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002896/0.1344, allocations: 28.55 kB / 495.6 MB, free: 3.328 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006403/0.1408, allocations: 3.862 MB / 499.5 MB, free: 15.37 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003617/0.1412, allocations: 0.7688 MB / 0.4885 GB, free: 14.57 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001367/0.1413, allocations: 37.92 kB / 0.4885 GB, free: 14.54 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001317/0.1414, allocations: 99.33 kB / 0.4886 GB, free: 14.44 MB / 382.1 MB Notification: Performance of SimCode: time 9.72e-07/0.1414, allocations: 0 / 0.4886 GB, free: 14.44 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03413/0.1756, allocations: 9.508 MB / 0.4979 GB, free: 5.066 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.981/9.156, allocations: 11.88 kB / 0.4979 GB, free: 5.055 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)