Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.ExampleWithFMUs.MVLVNetwork.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.MVLVNetwork,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_ExampleWithFMUs_MVLVNetwork",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.ExampleWithFMUs.MVLVNetwork,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_ExampleWithFMUs_MVLVNetwork",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.00125/0.00125, allocations: 101.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.001705/0.001705, allocations: 191.2 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.05131/0.05131, allocations: 8.091 MB / 299.2 MB, free: 6.723 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001357/0.001357, allocations: 59.91 kB / 361.8 MB, free: 8.031 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2317/0.2331, allocations: 51.52 MB / 413.4 MB, free: 25.57 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.ExampleWithFMUs.MVLVNetwork): time 0.003182/0.2364, allocations: 3.326 MB / 416.7 MB, free: 22.23 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00195/0.2383, allocations: 1.861 MB / 418.5 MB, free: 20.36 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001577/0.2385, allocations: 12 kB / 418.6 MB, free: 20.35 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003995/0.2389, allocations: 210.7 kB / 418.8 MB, free: 20.14 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000526/0.2395, allocations: 321.9 kB / 419.1 MB, free: 19.82 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001716/0.2412, allocations: 1.279 MB / 420.4 MB, free: 18.55 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000477/0.2417, allocations: 0.6453 MB / 421 MB, free: 17.9 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002382/0.2419, allocations: 219 kB / 421.2 MB, free: 17.68 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001572/0.2421, allocations: 266.9 kB / 421.5 MB, free: 17.42 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002892/0.2424, allocations: 354.5 kB / 421.8 MB, free: 17.07 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.808e-05/0.2425, allocations: 48 kB / 421.9 MB, free: 17.02 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003875/0.2429, allocations: 295.8 kB / 422.2 MB, free: 16.73 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.438e-05/0.2429, allocations: 131.5 kB / 422.3 MB, free: 16.61 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001931/0.2431, allocations: 318.4 kB / 422.6 MB, free: 16.29 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005725/0.2437, allocations: 0.8099 MB / 423.4 MB, free: 15.48 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.2437, allocations: 0 / 423.4 MB, free: 15.48 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2437, allocations: 0 / 423.4 MB, free: 15.48 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.142e-05/0.2438, allocations: 0 / 423.4 MB, free: 15.48 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.006678/0.2504, allocations: 1.88 MB / 425.3 MB, free: 13.54 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.941e-05/0.2505, allocations: 15.89 kB / 425.3 MB, free: 13.53 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.758e-05/0.2506, allocations: 86.7 kB / 425.4 MB, free: 13.43 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001421/0.2508, allocations: 72.19 kB / 425.5 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004757/0.2512, allocations: 433.9 kB / 425.9 MB, free: 12.9 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.593e-05/0.2513, allocations: 37.38 kB / 425.9 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.721e-05/0.2514, allocations: 56.38 kB / 426 MB, free: 12.81 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009314/0.2523, allocations: 0.7104 MB / 426.7 MB, free: 12.09 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.541e-05/0.2523, allocations: 3.938 kB / 426.7 MB, free: 12.08 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.057e-05/0.2524, allocations: 19.94 kB / 426.7 MB, free: 12.06 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.183e-05/0.2524, allocations: 16 kB / 426.7 MB, free: 12.05 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008091/0.2532, allocations: 0.656 MB / 427.4 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003018/0.2563, allocations: 2.868 MB / 430.2 MB, free: 8.242 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001141/0.2574, allocations: 1.086 MB / 431.3 MB, free: 7.094 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000506/0.2579, allocations: 498.6 kB / 431.8 MB, free: 6.605 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.237e-05/0.258, allocations: 12.64 kB / 431.8 MB, free: 6.594 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.409e-05/0.2581, allocations: 43.22 kB / 431.9 MB, free: 6.539 MB / 302.1 MB Notification: Performance of pre-optimization done (n=73): time 2.775e-06/0.2581, allocations: 4 kB / 431.9 MB, free: 6.535 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.01089/0.269, allocations: 3.218 MB / 435.1 MB, free: 3.289 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.42e-05/0.2691, allocations: 107.5 kB / 435.2 MB, free: 3.16 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003979/0.2695, allocations: 385.5 kB / 435.6 MB, free: 2.773 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.141e-05/0.2695, allocations: 49.7 kB / 435.6 MB, free: 2.719 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000108/0.2697, allocations: 201.3 kB / 435.8 MB, free: 2.52 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001365/0.2698, allocations: 256.2 kB / 436.1 MB, free: 2.266 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000219/0.27, allocations: 154.6 kB / 436.2 MB, free: 2.109 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.32e-05/0.2701, allocations: 362.8 kB / 436.6 MB, free: 1.746 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005342/0.2706, allocations: 461.8 kB / 437 MB, free: 1.297 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005949/0.2712, allocations: 0.5248 MB / 437.6 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001264/0.2725, allocations: 1.025 MB / 438.6 MB, free: 15.74 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.2725, allocations: 0 / 438.6 MB, free: 15.74 MB / 318.1 MB Notification: Performance of matching and sorting (n=104) (initialization): time 0.005311/0.2778, allocations: 2.011 MB / 440.6 MB, free: 13.71 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.878e-05/0.2779, allocations: 8 kB / 440.6 MB, free: 13.71 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.357e-06/0.2779, allocations: 3.984 kB / 440.6 MB, free: 13.7 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005664/0.2836, allocations: 1.531 MB / 442.1 MB, free: 12.17 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005036/0.2841, allocations: 131.8 kB / 442.3 MB, free: 12.04 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0115/0.2956, allocations: 6.292 MB / 448.6 MB, free: 5.609 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007351/0.2964, allocations: 75.34 kB / 448.6 MB, free: 5.535 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.391e-05/0.2965, allocations: 31.94 kB / 448.7 MB, free: 5.504 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.0002928/0.2968, allocations: 193.7 kB / 448.8 MB, free: 5.305 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000165/0.2969, allocations: 59.34 kB / 448.9 MB, free: 5.246 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005269/0.3022, allocations: 1.986 MB / 450.9 MB, free: 3.242 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.668e-06/0.3022, allocations: 8 kB / 450.9 MB, free: 3.234 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/0.3022, allocations: 0 / 450.9 MB, free: 3.234 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.272e-05/0.3023, allocations: 7.984 kB / 450.9 MB, free: 3.227 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006018/0.3083, allocations: 2.828 MB / 453.7 MB, free: 340 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.9e-06/0.3083, allocations: 0 / 453.7 MB, free: 340 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003237/0.3086, allocations: 91.89 kB / 453.8 MB, free: 248 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00546/0.3141, allocations: 1.301 MB / 455.1 MB, free: 14.94 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.419e-05/0.3142, allocations: 16 kB / 455.1 MB, free: 14.92 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01137/0.3256, allocations: 6.221 MB / 461.4 MB, free: 8.555 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.3256, allocations: 0 / 461.4 MB, free: 8.555 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005283/0.3309, allocations: 1.944 MB / 463.3 MB, free: 6.594 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001703/0.3311, allocations: 148.1 kB / 463.5 MB, free: 6.43 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001111/0.3312, allocations: 12 kB / 463.5 MB, free: 6.418 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006135/0.3318, allocations: 47.91 kB / 463.5 MB, free: 6.371 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000218/0.3321, allocations: 68.78 kB / 463.6 MB, free: 6.305 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.51e-05/0.3321, allocations: 24 kB / 463.6 MB, free: 6.281 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003456/0.3325, allocations: 267.2 kB / 463.9 MB, free: 6.02 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.7e-07/0.3325, allocations: 0 / 463.9 MB, free: 6.02 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000935/0.3334, allocations: 283.8 kB / 464.1 MB, free: 5.742 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 (56): * Single equations (assignments): 55 * 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.005552/0.339, allocations: 2.524 MB / 466.7 MB, free: 3.188 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.004317/0.3433, allocations: 1.707 MB / 468.4 MB, free: 1.469 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.3434, allocations: 4 kB / 468.4 MB, free: 1.465 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002942/0.3463, allocations: 1.099 MB / 469.5 MB, free: 360 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005968/0.3469, allocations: 72.92 kB / 469.5 MB, free: 292 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01576/0.3627, allocations: 7.85 MB / 477.4 MB, free: 8.348 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005193/0.3633, allocations: 0.8816 MB / 478.3 MB, free: 7.441 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003098/0.3636, allocations: 80.34 kB / 478.4 MB, free: 7.359 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000279/0.3639, allocations: 199.4 kB / 478.5 MB, free: 7.164 MB / 350.1 MB Notification: Performance of SimCode: time 2.826e-06/0.3639, allocations: 0 / 478.5 MB, free: 7.164 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04922/0.4131, allocations: 23.55 MB / 0.4903 GB, free: 15.75 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.07/11.48, allocations: 7.188 kB / 0.4903 GB, free: 15.75 MB / 382.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.ExampleWithFMUs.MVLVNetwork.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.ExampleWithFMUs.MVLVNetwork.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.ExampleWithFMUs.MVLVNetwork.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.ExampleWithFMUs.MVLVNetwork.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.ExampleWithFMUs.MVLVNetwork_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_MVLVNetwork.fmu > PowerSysPro_PowerSysPro.Examples.ExampleWithFMUs.MVLVNetwork.pipe 2>&1)