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.001276/0.001283, allocations: 103.5 kB / 16.31 MB, free: 5.879 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.001267/0.001267, allocations: 186.5 kB / 17.24 MB, free: 5.539 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.333/1.333, allocations: 222.9 MB / 240.9 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.0518/0.0518, allocations: 8.097 MB / 299.2 MB, free: 6.703 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002154/0.002154, allocations: 64.14 kB / 361.8 MB, free: 8.004 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2278/0.23, allocations: 51.52 MB / 413.4 MB, free: 25.55 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.ExampleWithFMUs.MVPartOfMVLVNetwork): time 0.002667/0.2327, allocations: 2.082 MB / 415.4 MB, free: 23.47 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001592/0.2343, allocations: 1.531 MB / 417 MB, free: 21.92 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001614/0.2345, allocations: 4 kB / 417 MB, free: 21.92 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003819/0.2349, allocations: 147.2 kB / 417.1 MB, free: 21.77 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004272/0.2353, allocations: 151 kB / 417.3 MB, free: 21.62 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001427/0.2368, allocations: 1.066 MB / 418.3 MB, free: 20.55 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002975/0.2371, allocations: 310.5 kB / 418.6 MB, free: 20.25 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001656/0.2373, allocations: 130.3 kB / 418.8 MB, free: 20.12 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.058e-05/0.2374, allocations: 119.6 kB / 418.9 MB, free: 20 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001245/0.2375, allocations: 155.3 kB / 419 MB, free: 19.85 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.472e-05/0.2375, allocations: 24 kB / 419.1 MB, free: 19.83 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003461/0.2379, allocations: 247.8 kB / 419.3 MB, free: 19.59 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.92e-05/0.2379, allocations: 63.7 kB / 419.4 MB, free: 19.52 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.904e-05/0.238, allocations: 159.2 kB / 419.5 MB, free: 19.37 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003902/0.2384, allocations: 490.5 kB / 420 MB, free: 18.89 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.2384, allocations: 0 / 420 MB, free: 18.89 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.2384, allocations: 0 / 420 MB, free: 18.89 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.52e-06/0.2385, allocations: 0 / 420 MB, free: 18.89 MB / 302.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.00365/0.2421, allocations: 1.135 MB / 421.1 MB, free: 17.7 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.547e-05/0.2422, allocations: 8.031 kB / 421.1 MB, free: 17.69 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.811e-05/0.2423, allocations: 55.3 kB / 421.2 MB, free: 17.63 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.436e-05/0.2423, allocations: 36.56 kB / 421.2 MB, free: 17.59 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002248/0.2426, allocations: 295.6 kB / 421.5 MB, free: 17.27 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.84e-05/0.2426, allocations: 20.94 kB / 421.5 MB, free: 17.24 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.871e-05/0.2426, allocations: 24.38 kB / 421.6 MB, free: 17.22 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004715/0.2431, allocations: 381.1 kB / 421.9 MB, free: 16.84 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.172e-05/0.2431, allocations: 7.938 kB / 421.9 MB, free: 16.83 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.215e-05/0.2432, allocations: 12 kB / 422 MB, free: 16.82 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-06/0.2432, allocations: 4 kB / 422 MB, free: 16.81 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003919/0.2436, allocations: 314.1 kB / 422.3 MB, free: 16.5 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001675/0.2453, allocations: 1.458 MB / 423.7 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009497/0.2462, allocations: 412.2 kB / 424.1 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002099/0.2464, allocations: 180.8 kB / 424.3 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.443e-05/0.2465, allocations: 15.92 kB / 424.3 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.251e-05/0.2465, allocations: 34.56 kB / 424.4 MB, free: 14.24 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.724e-06/0.2465, allocations: 0 / 424.4 MB, free: 14.24 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.003932/0.2505, allocations: 1.259 MB / 425.6 MB, free: 12.93 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.891e-05/0.2505, allocations: 106.8 kB / 425.7 MB, free: 12.8 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001653/0.2507, allocations: 224 kB / 425.9 MB, free: 12.57 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.351e-05/0.2508, allocations: 37.64 kB / 426 MB, free: 12.53 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.634e-05/0.2508, allocations: 160.4 kB / 426.1 MB, free: 12.37 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.147e-05/0.2509, allocations: 98.5 kB / 426.2 MB, free: 12.27 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001233/0.251, allocations: 82.11 kB / 426.3 MB, free: 12.19 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.726e-05/0.2511, allocations: 346.8 kB / 426.6 MB, free: 11.84 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002628/0.2513, allocations: 208.8 kB / 426.8 MB, free: 11.64 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002742/0.2516, allocations: 248.2 kB / 427.1 MB, free: 11.38 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005344/0.2522, allocations: 461.1 kB / 427.5 MB, free: 10.92 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.2522, allocations: 0 / 427.5 MB, free: 10.92 MB / 302.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.00197/0.2542, allocations: 0.8485 MB / 428.4 MB, free: 10.06 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.2542, allocations: 11.98 kB / 428.4 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.2542, allocations: 0 / 428.4 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002033/0.2562, allocations: 449.2 kB / 428.8 MB, free: 9.605 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002668/0.2565, allocations: 71.91 kB / 428.9 MB, free: 9.535 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004178/0.2607, allocations: 4.129 MB / 433 MB, free: 5.121 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003067/0.261, allocations: 47.67 kB / 433.1 MB, free: 5.074 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.118e-05/0.2611, allocations: 12 kB / 433.1 MB, free: 5.062 MB / 302.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.0001344/0.2612, allocations: 149.7 kB / 433.2 MB, free: 4.906 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.145e-05/0.2613, allocations: 27.72 kB / 433.3 MB, free: 4.879 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001957/0.2632, allocations: 0.79 MB / 434.1 MB, free: 4.078 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.2632, allocations: 4 kB / 434.1 MB, free: 4.074 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.2633, allocations: 4 kB / 434.1 MB, free: 4.07 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.2633, allocations: 3.938 kB / 434.1 MB, free: 4.066 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003081/0.2636, allocations: 429.1 kB / 434.5 MB, free: 3.598 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.2636, allocations: 4 kB / 434.5 MB, free: 3.594 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000153/0.2637, allocations: 47.97 kB / 434.5 MB, free: 3.547 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001924/0.2657, allocations: 449.1 kB / 435 MB, free: 3.102 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.752e-05/0.2657, allocations: 4 kB / 435 MB, free: 3.098 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004353/0.2701, allocations: 4.126 MB / 439.1 MB, free: 14.69 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.2701, allocations: 0 / 439.1 MB, free: 14.69 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002151/0.2723, allocations: 0.8205 MB / 439.9 MB, free: 13.85 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.202e-05/0.2723, allocations: 104.7 kB / 440 MB, free: 13.73 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.888e-05/0.2724, allocations: 11.98 kB / 440 MB, free: 13.71 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002734/0.2727, allocations: 19.94 kB / 440.1 MB, free: 13.7 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.434e-05/0.2728, allocations: 31.95 kB / 440.1 MB, free: 13.66 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.606e-05/0.2728, allocations: 8 kB / 440.1 MB, free: 13.66 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001288/0.2729, allocations: 160.4 kB / 440.3 MB, free: 13.5 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2729, allocations: 0 / 440.3 MB, free: 13.5 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005123/0.2735, allocations: 131.9 kB / 440.4 MB, free: 13.37 MB / 318.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.002773/0.2762, allocations: 1.627 MB / 442 MB, free: 11.71 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001993/0.2783, allocations: 0.8276 MB / 442.8 MB, free: 10.85 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.2783, allocations: 0 / 442.8 MB, free: 10.85 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001329/0.2796, allocations: 0.5636 MB / 443.4 MB, free: 10.26 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003133/0.2799, allocations: 20.66 kB / 443.4 MB, free: 10.24 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006829/0.2868, allocations: 3.841 MB / 447.3 MB, free: 6.309 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004514/0.2873, allocations: 0.7688 MB / 448 MB, free: 5.512 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001535/0.2874, allocations: 41.91 kB / 448.1 MB, free: 5.473 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001437/0.2876, allocations: 91.39 kB / 448.2 MB, free: 5.383 MB / 318.1 MB Notification: Performance of SimCode: time 1.252e-06/0.2876, allocations: 7.938 kB / 448.2 MB, free: 5.375 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03127/0.3189, allocations: 9.377 MB / 457.6 MB, free: 12.11 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.111/9.43, allocations: 11.16 kB / 457.6 MB, free: 12.1 MB / 334.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)