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.001056/0.001056, allocations: 106.8 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.001041/0.001041, allocations: 190.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.351/1.351, 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.05457/0.05457, allocations: 8.094 MB / 299.2 MB, free: 6.723 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001723/0.001723, allocations: 59.91 kB / 361.8 MB, free: 8.035 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2109/0.2127, allocations: 51.52 MB / 413.4 MB, free: 25.57 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.ExampleWithFMUs.MVLVNetworkWithBuses): time 0.003405/0.2161, allocations: 3.71 MB / 417.1 MB, free: 21.86 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001961/0.2181, allocations: 1.826 MB / 418.9 MB, free: 20.02 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001789/0.2183, allocations: 12 kB / 418.9 MB, free: 20.01 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004087/0.2187, allocations: 210.7 kB / 419.1 MB, free: 19.8 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005377/0.2193, allocations: 337.8 kB / 419.4 MB, free: 19.47 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001728/0.221, allocations: 1.283 MB / 420.7 MB, free: 18.18 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000479/0.2215, allocations: 0.6959 MB / 421.4 MB, free: 17.48 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002657/0.2218, allocations: 265.3 kB / 421.7 MB, free: 17.22 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001717/0.222, allocations: 294.9 kB / 422 MB, free: 16.93 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002988/0.2223, allocations: 370.4 kB / 422.3 MB, free: 16.57 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.257e-05/0.2223, allocations: 60 kB / 422.4 MB, free: 16.51 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003884/0.2227, allocations: 299.7 kB / 422.7 MB, free: 16.21 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.642e-05/0.2228, allocations: 139.4 kB / 422.8 MB, free: 16.08 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001973/0.223, allocations: 342.3 kB / 423.2 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005758/0.2236, allocations: 0.8645 MB / 424 MB, free: 14.88 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.2236, allocations: 4 kB / 424 MB, free: 14.87 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.2236, allocations: 0 / 424 MB, free: 14.87 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.785e-06/0.2236, allocations: 0 / 424 MB, free: 14.87 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: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.006649/0.2303, allocations: 1.914 MB / 425.9 MB, free: 12.89 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.2303, allocations: 15.89 kB / 426 MB, free: 12.88 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.162e-05/0.2304, allocations: 90.7 kB / 426 MB, free: 12.78 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001326/0.2306, allocations: 76.19 kB / 426.1 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004422/0.231, allocations: 441.9 kB / 426.5 MB, free: 12.24 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.698e-05/0.2311, allocations: 49.31 kB / 426.6 MB, free: 12.19 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.618e-05/0.2311, allocations: 52.38 kB / 426.6 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009286/0.2321, allocations: 0.7611 MB / 427.4 MB, free: 11.36 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.334e-05/0.2321, allocations: 3.938 kB / 427.4 MB, free: 11.36 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.863e-05/0.2322, allocations: 20 kB / 427.4 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.686e-06/0.2322, allocations: 12 kB / 427.4 MB, free: 11.33 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008174/0.233, allocations: 0.6872 MB / 428.1 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003015/0.236, allocations: 2.969 MB / 431.1 MB, free: 7.395 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001103/0.2371, allocations: 1.294 MB / 432.4 MB, free: 5.984 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004858/0.2376, allocations: 478.7 kB / 432.9 MB, free: 5.516 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.791e-05/0.2377, allocations: 20.62 kB / 432.9 MB, free: 5.492 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.873e-05/0.2378, allocations: 43.22 kB / 432.9 MB, free: 5.441 MB / 302.1 MB Notification: Performance of pre-optimization done (n=73): time 2.093e-06/0.2378, allocations: 0 / 432.9 MB, free: 5.441 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.01279/0.2506, allocations: 3.452 MB / 436.4 MB, free: 1.961 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.725e-05/0.2506, allocations: 111.5 kB / 436.5 MB, free: 1.824 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003827/0.251, allocations: 385.4 kB / 436.9 MB, free: 1.438 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.665e-05/0.2511, allocations: 49.7 kB / 436.9 MB, free: 1.383 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001052/0.2512, allocations: 225.1 kB / 437.1 MB, free: 1.16 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001509/0.2514, allocations: 252.3 kB / 437.4 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002337/0.2516, allocations: 158.6 kB / 437.5 MB, free: 0.75 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.868e-05/0.2517, allocations: 358.7 kB / 437.9 MB, free: 400 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005922/0.2523, allocations: 445.9 kB / 438.3 MB, free: 15.95 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007347/0.2531, allocations: 0.5131 MB / 438.8 MB, free: 15.43 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00142/0.2545, allocations: 0.9861 MB / 439.8 MB, free: 14.45 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.9e-06/0.2545, allocations: 7.984 kB / 439.8 MB, free: 14.44 MB / 318.1 MB Notification: Performance of matching and sorting (n=104) (initialization): time 0.005375/0.2599, allocations: 1.972 MB / 441.8 MB, free: 12.45 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.864e-05/0.26, allocations: 8 kB / 441.8 MB, free: 12.45 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.26, allocations: 0 / 441.8 MB, free: 12.45 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005792/0.2658, allocations: 1.523 MB / 443.3 MB, free: 10.92 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005333/0.2663, allocations: 131.8 kB / 443.5 MB, free: 10.79 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01157/0.2779, allocations: 5.976 MB / 449.4 MB, free: 4.684 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007739/0.2787, allocations: 75.34 kB / 449.5 MB, free: 4.609 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.47e-05/0.2788, allocations: 31.98 kB / 449.5 MB, free: 4.578 MB / 318.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.0004044/0.2792, allocations: 189.8 kB / 449.7 MB, free: 4.383 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001491/0.2794, allocations: 59.28 kB / 449.8 MB, free: 4.324 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005393/0.2848, allocations: 1.916 MB / 451.7 MB, free: 2.395 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.908e-06/0.2848, allocations: 8 kB / 451.7 MB, free: 2.387 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.2848, allocations: 0 / 451.7 MB, free: 2.387 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.438e-06/0.2848, allocations: 11.92 kB / 451.7 MB, free: 2.375 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005982/0.2908, allocations: 2.766 MB / 454.5 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.2908, allocations: 0 / 454.5 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003109/0.2911, allocations: 91.89 kB / 454.6 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005443/0.2966, allocations: 1.289 MB / 455.9 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.525e-05/0.2967, allocations: 16 kB / 455.9 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01064/0.3073, allocations: 5.897 MB / 461.8 MB, free: 8.102 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.3073, allocations: 0 / 461.8 MB, free: 8.102 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0052/0.3126, allocations: 1.897 MB / 463.7 MB, free: 6.188 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001477/0.3127, allocations: 144.3 kB / 463.8 MB, free: 6.027 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001036/0.3128, allocations: 20 kB / 463.8 MB, free: 6.008 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005553/0.3134, allocations: 43.47 kB / 463.9 MB, free: 5.969 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002064/0.3136, allocations: 64.91 kB / 463.9 MB, free: 5.906 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.837e-05/0.3137, allocations: 24 kB / 464 MB, free: 5.883 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000312/0.314, allocations: 263.1 kB / 464.2 MB, free: 5.625 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.314, allocations: 0 / 464.2 MB, free: 5.625 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008322/0.3148, allocations: 291.8 kB / 464.5 MB, free: 5.34 MB / 334.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.005376/0.3202, allocations: 2.469 MB / 467 MB, free: 2.836 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.004442/0.3247, allocations: 1.684 MB / 468.7 MB, free: 1.137 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.611e-06/0.3247, allocations: 0 / 468.7 MB, free: 1.137 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002847/0.3276, allocations: 1.08 MB / 469.7 MB, free: 48 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007168/0.3283, allocations: 75.36 kB / 469.8 MB, free: 15.97 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01591/0.3442, allocations: 7.74 MB / 477.5 MB, free: 8.145 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005015/0.3448, allocations: 0.8963 MB / 478.4 MB, free: 7.219 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002959/0.3451, allocations: 76.34 kB / 478.5 MB, free: 7.145 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002922/0.3454, allocations: 215.4 kB / 478.7 MB, free: 6.934 MB / 350.1 MB Notification: Performance of SimCode: time 9.92e-07/0.3454, allocations: 4 kB / 478.7 MB, free: 6.93 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04942/0.3948, allocations: 22.99 MB / 0.49 GB, free: 120 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.12/11.51, allocations: 15.67 kB / 0.49 GB, free: 104 kB / 366.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)