Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Test.PMeterTest.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/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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(PowerSystems.Examples.Generic.Test.PMeterTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_PMeterTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.PMeterTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_PMeterTest",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.001288/0.001288, allocations: 112.9 kB / 17.07 MB, free: 5.988 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.001296/0.001296, allocations: 193.4 kB / 18 MB, free: 5.074 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.439/1.439, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1892/0.1892, allocations: 38.03 MB / 329.9 MB, free: 8.695 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00262/0.00262, allocations: 63.91 kB / 457.6 MB, free: 7.344 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3654/0.3681, allocations: 58.06 MB / 0.5036 GB, free: 7.531 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.PMeterTest): time 0.005063/0.3732, allocations: 3.425 MB / 0.507 GB, free: 5.156 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002094/0.3753, allocations: 1.519 MB / 0.5084 GB, free: 4.09 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002611/0.3756, allocations: 8.438 kB / 0.5084 GB, free: 4.086 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001/0.3766, allocations: 256.7 kB / 0.5087 GB, free: 3.93 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001091/0.3777, allocations: 283.4 kB / 0.509 GB, free: 3.781 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006102/0.3784, allocations: 123.1 kB / 0.5091 GB, free: 3.723 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008473/0.3792, allocations: 336.7 kB / 0.5094 GB, free: 3.582 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004709/0.3797, allocations: 138.7 kB / 0.5095 GB, free: 3.531 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004897/0.3802, allocations: 150.3 kB / 0.5097 GB, free: 3.461 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004056/0.3806, allocations: 150.3 kB / 0.5098 GB, free: 3.398 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.945e-05/0.3807, allocations: 13.97 kB / 0.5098 GB, free: 3.398 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000693/0.3814, allocations: 337.1 kB / 0.5102 GB, free: 3.266 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001608/0.3816, allocations: 101.2 kB / 0.5103 GB, free: 3.23 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001501/0.3817, allocations: 104.2 kB / 0.5104 GB, free: 3.172 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007703/0.3825, allocations: 353.4 kB / 0.5107 GB, free: 3.051 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.3825, allocations: 0.9688 kB / 0.5107 GB, free: 3.051 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3825, allocations: 0 / 0.5107 GB, free: 3.051 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.412e-05/0.3826, allocations: 0 / 0.5107 GB, free: 3.051 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001054/0.3836, allocations: 0.5217 MB / 0.5112 GB, free: 2.578 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.308e-05/0.3837, allocations: 13.19 kB / 0.5112 GB, free: 2.574 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.318e-05/0.3838, allocations: 55.56 kB / 0.5113 GB, free: 2.523 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001203/0.385, allocations: 115.6 kB / 0.5114 GB, free: 2.496 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003921/0.3854, allocations: 259.4 kB / 0.5116 GB, free: 2.266 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.176e-05/0.3854, allocations: 11.86 kB / 0.5116 GB, free: 2.262 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.951e-05/0.3855, allocations: 23.81 kB / 0.5117 GB, free: 2.25 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005439/0.386, allocations: 329.3 kB / 0.512 GB, free: 2.07 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.574e-05/0.3861, allocations: 4.219 kB / 0.512 GB, free: 2.07 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.605e-05/0.3861, allocations: 6.25 kB / 0.512 GB, free: 2.066 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.67e-05/0.3861, allocations: 14.97 kB / 0.512 GB, free: 2.066 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005098/0.3866, allocations: 309.7 kB / 0.5123 GB, free: 1.969 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001661/0.3883, allocations: 1.285 MB / 0.5135 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002791/0.3886, allocations: 200.1 kB / 0.5137 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.713e-05/0.3887, allocations: 41 kB / 0.5138 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.935e-05/0.3887, allocations: 1.125 kB / 0.5138 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.387e-05/0.3887, allocations: 44.7 kB / 0.5138 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.512e-06/0.3888, allocations: 0 / 0.5138 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003211/0.3891, allocations: 135.4 kB / 0.5139 GB, free: 0.668 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.543e-05/0.3891, allocations: 78.2 kB / 0.514 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001909/0.3893, allocations: 215.2 kB / 0.5142 GB, free: 448 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.137e-06/0.3893, allocations: 29.64 kB / 0.5143 GB, free: 412 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.003e-05/0.3894, allocations: 175.4 kB / 0.5144 GB, free: 252 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.538e-05/0.3895, allocations: 40.48 kB / 0.5145 GB, free: 220 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.124e-05/0.3895, allocations: 42.95 kB / 0.5145 GB, free: 188 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001211/0.3896, allocations: 328.5 kB / 0.5148 GB, free: 15.86 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.825e-05/0.3897, allocations: 35.31 kB / 0.5148 GB, free: 15.86 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001792/0.3899, allocations: 145.6 kB / 0.515 GB, free: 15.71 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002733/0.3902, allocations: 200.5 kB / 0.5152 GB, free: 15.53 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.028e-06/0.3902, allocations: 1.25 kB / 0.5152 GB, free: 15.53 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003763/0.3906, allocations: 205.4 kB / 0.5154 GB, free: 15.43 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.989e-05/0.3906, allocations: 9.219 kB / 0.5154 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/0.3906, allocations: 4.453 kB / 0.5154 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.126e-05/0.3907, allocations: 5.562 kB / 0.5154 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001869/0.3909, allocations: 49.55 kB / 0.5154 GB, free: 15.42 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.188e-05/0.3909, allocations: 5.203 kB / 0.5154 GB, free: 15.42 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001886/0.3911, allocations: 20.69 kB / 0.5155 GB, free: 15.41 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.448e-05/0.3911, allocations: 17.08 kB / 0.5155 GB, free: 15.4 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000176/0.3913, allocations: 159.4 kB / 0.5156 GB, free: 15.26 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.568e-05/0.3913, allocations: 15.72 kB / 0.5157 GB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002596/0.3916, allocations: 125.9 kB / 0.5158 GB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.387e-06/0.3916, allocations: 1.062 kB / 0.5158 GB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.882e-06/0.3916, allocations: 1.125 kB / 0.5158 GB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.648e-06/0.3916, allocations: 1.719 kB / 0.5158 GB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000813/0.3925, allocations: 0.5728 MB / 0.5163 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.017e-06/0.3925, allocations: 2.75 kB / 0.5163 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.819e-05/0.3926, allocations: 19.61 kB / 0.5164 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.444e-06/0.3926, allocations: 10.5 kB / 0.5164 GB, free: 14.7 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.455e-05/0.3926, allocations: 3.719 kB / 0.5164 GB, free: 14.7 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.388e-06/0.3926, allocations: 4.844 kB / 0.5164 GB, free: 14.7 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.3926, allocations: 2.875 kB / 0.5164 GB, free: 14.7 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002827/0.3929, allocations: 286 kB / 0.5166 GB, free: 14.44 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.225e-05/0.393, allocations: 107.6 kB / 0.5168 GB, free: 14.33 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.253e-05/0.393, allocations: 9.375 kB / 0.5168 GB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001115/0.3932, allocations: 4.016 kB / 0.5168 GB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.116e-05/0.3932, allocations: 19.62 kB / 0.5168 GB, free: 14.31 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.11e-05/0.3932, allocations: 5.812 kB / 0.5168 GB, free: 14.31 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001405/0.3934, allocations: 155.3 kB / 0.5169 GB, free: 14.21 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3934, allocations: 192 / 0.5169 GB, free: 14.21 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000364/0.3937, allocations: 52.2 kB / 0.517 GB, free: 14.2 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006215/0.3944, allocations: 0.827 MB / 0.5178 GB, free: 13.4 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002807/0.3947, allocations: 119.5 kB / 0.5179 GB, free: 13.36 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3947, allocations: 0.5 kB / 0.5179 GB, free: 13.36 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 9.523e-05/0.3948, allocations: 52.52 kB / 0.518 GB, free: 13.34 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004401/0.3952, allocations: 32.88 kB / 0.518 GB, free: 13.33 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002985/0.3982, allocations: 2.322 MB / 0.5203 GB, free: 11.41 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004517/0.3987, allocations: 0.7512 MB / 0.521 GB, free: 10.7 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001219/0.3988, allocations: 37.98 kB / 0.521 GB, free: 10.7 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001202/0.3989, allocations: 58.16 kB / 0.5211 GB, free: 10.66 MB / 398.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3989, allocations: 0 / 0.5211 GB, free: 10.66 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.025/0.424, allocations: 3.336 MB / 0.5243 GB, free: 10.12 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.313/8.737, allocations: 4.609 kB / 0.5243 GB, free: 10.12 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.Generic.Test.PMeterTest.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Test.PMeterTest.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Test.PMeterTest.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Test.PMeterTest.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.Generic.Test.PMeterTest_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_PowerSystems_Examples_Generic_Test_PMeterTest.fmu > PowerSystems_PowerSystems.Examples.Generic.Test.PMeterTest.pipe 2>&1)