Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.OneSourceThreeLinesThreeLoads.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.OneSourceThreeLinesThreeLoads,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSourceThreeLinesThreeLoads",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.OneSourceThreeLinesThreeLoads,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSourceThreeLinesThreeLoads",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.001137/0.001137, allocations: 102.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.001308/0.001309, allocations: 191.3 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.417/1.417, allocations: 222.9 MB / 240.9 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04936/0.04936, allocations: 8.092 MB / 299.2 MB, free: 6.73 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002259/0.002259, allocations: 63.91 kB / 361.8 MB, free: 8.039 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2822/0.2845, allocations: 51.51 MB / 413.3 MB, free: 25.59 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceThreeLinesThreeLoads): time 0.003347/0.2879, allocations: 2.244 MB / 415.6 MB, free: 23.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001914/0.2899, allocations: 1.664 MB / 417.3 MB, free: 21.66 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002373/0.2901, allocations: 4 kB / 417.3 MB, free: 21.66 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004278/0.2906, allocations: 151.1 kB / 417.4 MB, free: 21.51 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005261/0.2911, allocations: 198.6 kB / 417.6 MB, free: 21.31 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001424/0.2926, allocations: 0.9606 MB / 418.6 MB, free: 20.35 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003699/0.2929, allocations: 414 kB / 419 MB, free: 19.95 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001928/0.2931, allocations: 141.4 kB / 419.1 MB, free: 19.81 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001111/0.2933, allocations: 167.4 kB / 419.3 MB, free: 19.64 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002106/0.2935, allocations: 227 kB / 419.5 MB, free: 19.42 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.73e-05/0.2935, allocations: 36 kB / 419.5 MB, free: 19.39 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003211/0.2939, allocations: 207.8 kB / 419.7 MB, free: 19.18 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.247e-05/0.2939, allocations: 91.59 kB / 419.8 MB, free: 19.09 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001275/0.2941, allocations: 199 kB / 420 MB, free: 18.9 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004252/0.2945, allocations: 0.5413 MB / 420.6 MB, free: 18.36 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.2945, allocations: 0 / 420.6 MB, free: 18.36 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.2945, allocations: 0 / 420.6 MB, free: 18.36 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.602e-06/0.2945, allocations: 0 / 420.6 MB, free: 18.36 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.003341/0.2979, allocations: 1.15 MB / 421.7 MB, free: 17.15 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.215e-05/0.2979, allocations: 11.89 kB / 421.7 MB, free: 17.14 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.865e-05/0.298, allocations: 66.73 kB / 421.8 MB, free: 17.07 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.952e-05/0.2981, allocations: 40.47 kB / 421.8 MB, free: 17.03 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003207/0.2984, allocations: 327.5 kB / 422.1 MB, free: 16.67 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.537e-05/0.2985, allocations: 24.94 kB / 422.2 MB, free: 16.64 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.347e-05/0.2985, allocations: 32.36 kB / 422.2 MB, free: 16.61 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005119/0.299, allocations: 413.3 kB / 422.6 MB, free: 16.2 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.299, allocations: 3.938 kB / 422.6 MB, free: 16.2 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.643e-05/0.2991, allocations: 16 kB / 422.6 MB, free: 16.18 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.2991, allocations: 8 kB / 422.6 MB, free: 16.18 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004559/0.2996, allocations: 410.1 kB / 423 MB, free: 15.78 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001681/0.3013, allocations: 1.549 MB / 424.6 MB, free: 14.1 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009403/0.3022, allocations: 0.549 MB / 425.1 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002977/0.3025, allocations: 285.5 kB / 425.4 MB, free: 13.26 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.6e-05/0.3026, allocations: 12.36 kB / 425.4 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.919e-05/0.3026, allocations: 34.94 kB / 425.4 MB, free: 13.2 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 1.673e-06/0.3026, allocations: 4 kB / 425.5 MB, free: 13.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=46): time 0.004171/0.3068, allocations: 1.647 MB / 427.1 MB, free: 11.48 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.708e-05/0.3068, allocations: 59.41 kB / 427.2 MB, free: 11.41 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002756/0.3071, allocations: 274.6 kB / 427.4 MB, free: 11.13 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.787e-05/0.3072, allocations: 37.7 kB / 427.5 MB, free: 11.09 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.543e-05/0.3073, allocations: 157 kB / 427.6 MB, free: 10.93 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.635e-05/0.3074, allocations: 161.6 kB / 427.8 MB, free: 10.77 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001355/0.3075, allocations: 94.23 kB / 427.9 MB, free: 10.67 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.471e-05/0.3076, allocations: 350.7 kB / 428.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003048/0.3079, allocations: 265 kB / 428.5 MB, free: 10.06 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003/0.3082, allocations: 273 kB / 428.7 MB, free: 9.793 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006552/0.3089, allocations: 0.5858 MB / 429.3 MB, free: 9.203 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.3089, allocations: 3.938 kB / 429.3 MB, free: 9.199 MB / 302.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001982/0.3109, allocations: 1.02 MB / 430.3 MB, free: 8.164 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.3109, allocations: 4 kB / 430.3 MB, free: 8.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.3109, allocations: 0 / 430.3 MB, free: 8.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001679/0.3126, allocations: 438.1 kB / 430.8 MB, free: 7.723 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002768/0.3129, allocations: 79.83 kB / 430.9 MB, free: 7.645 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00517/0.318, allocations: 6.1 MB / 437 MB, free: 1.137 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003545/0.3184, allocations: 39.53 kB / 437 MB, free: 1.098 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.368e-05/0.3185, allocations: 24.05 kB / 437 MB, free: 1.074 MB / 302.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 (46): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(2,4), (2,4), (2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001524/0.3186, allocations: 161.7 kB / 437.2 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.454e-05/0.3187, allocations: 43.55 kB / 437.2 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002142/0.3209, allocations: 0.9939 MB / 438.2 MB, free: 15.84 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.3209, allocations: 4 kB / 438.2 MB, free: 15.84 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.534e-06/0.3209, allocations: 0 / 438.2 MB, free: 15.84 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.698e-06/0.3209, allocations: 3.984 kB / 438.2 MB, free: 15.84 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005361/0.3215, allocations: 0.5598 MB / 438.8 MB, free: 15.23 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.3215, allocations: 4 kB / 438.8 MB, free: 15.22 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002048/0.3217, allocations: 63.91 kB / 438.8 MB, free: 15.16 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001825/0.3235, allocations: 426.1 kB / 439.3 MB, free: 14.73 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.49e-05/0.3236, allocations: 16 kB / 439.3 MB, free: 14.72 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006738/0.3303, allocations: 6.037 MB / 445.3 MB, free: 8.254 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.3303, allocations: 0 / 445.3 MB, free: 8.254 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00233/0.3327, allocations: 1.013 MB / 446.3 MB, free: 7.215 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001198/0.3328, allocations: 120.5 kB / 446.4 MB, free: 7.078 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.889e-05/0.3329, allocations: 15.94 kB / 446.5 MB, free: 7.062 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000363/0.3332, allocations: 27.97 kB / 446.5 MB, free: 7.035 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001099/0.3334, allocations: 40.39 kB / 446.5 MB, free: 6.996 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.474e-05/0.3334, allocations: 15.98 kB / 446.5 MB, free: 6.98 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002386/0.3337, allocations: 202 kB / 446.7 MB, free: 6.785 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.726e-06/0.3337, allocations: 0 / 446.7 MB, free: 6.785 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006433/0.3343, allocations: 167.8 kB / 446.9 MB, free: 6.621 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 (37): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(2,4), (2,4), (2,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002586/0.3369, allocations: 1.586 MB / 448.5 MB, free: 5.004 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002172/0.3391, allocations: 1.115 MB / 449.6 MB, free: 3.848 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/0.3391, allocations: 3.938 kB / 449.6 MB, free: 3.844 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001329/0.3405, allocations: 0.7563 MB / 450.4 MB, free: 3.047 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004395/0.3409, allocations: 48.88 kB / 450.4 MB, free: 3 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007804/0.3487, allocations: 4.728 MB / 455.1 MB, free: 14.18 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003603/0.3491, allocations: 0.8013 MB / 455.9 MB, free: 13.35 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001817/0.3493, allocations: 50.91 kB / 456 MB, free: 13.3 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001583/0.3495, allocations: 119.4 kB / 456.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3495, allocations: 0 / 456.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04147/0.3909, allocations: 14.22 MB / 470.3 MB, free: 15.11 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.96/11.35, allocations: 0 / 470.3 MB, free: 15.11 MB / 350.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.OneSourceThreeLinesThreeLoads.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.OneSourceThreeLinesThreeLoads.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.OneSourceThreeLinesThreeLoads.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.OneSourceThreeLinesThreeLoads.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.OneSourceThreeLinesThreeLoads_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_OneSourceThreeLinesThreeLoads.fmu > PowerSysPro_PowerSysPro.Examples.OneSourceThreeLinesThreeLoads.pipe 2>&1)