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.001518/0.001518, allocations: 113.4 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.001698/0.001698, allocations: 195 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.459/1.459, 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.1773/0.1773, allocations: 38.03 MB / 329.9 MB, free: 8.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00135/0.00135, allocations: 59.91 kB / 457.6 MB, free: 7.348 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3015/0.3028, allocations: 58.06 MB / 0.5036 GB, free: 7.719 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.PMeterTest): time 0.004268/0.3071, allocations: 3.436 MB / 0.507 GB, free: 5.328 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001848/0.309, allocations: 1.522 MB / 0.5084 GB, free: 4.262 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001879/0.3092, allocations: 9.812 kB / 0.5085 GB, free: 4.258 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000793/0.31, allocations: 256 kB / 0.5087 GB, free: 4.102 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006637/0.3107, allocations: 281 kB / 0.509 GB, free: 3.957 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003441/0.311, allocations: 125.3 kB / 0.5091 GB, free: 3.895 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004065/0.3115, allocations: 337.4 kB / 0.5094 GB, free: 3.754 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002596/0.3117, allocations: 138.8 kB / 0.5095 GB, free: 3.703 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002276/0.312, allocations: 159 kB / 0.5097 GB, free: 3.629 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002053/0.3122, allocations: 144.1 kB / 0.5098 GB, free: 3.57 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.596e-05/0.3122, allocations: 21.16 kB / 0.5098 GB, free: 3.562 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005546/0.3128, allocations: 337.8 kB / 0.5102 GB, free: 3.43 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001101/0.3129, allocations: 99.45 kB / 0.5103 GB, free: 3.398 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001018/0.313, allocations: 101.4 kB / 0.5104 GB, free: 3.34 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004723/0.3135, allocations: 354.5 kB / 0.5107 GB, free: 3.219 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.3135, allocations: 1.062 kB / 0.5107 GB, free: 3.219 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3135, allocations: 0.6562 kB / 0.5107 GB, free: 3.219 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.49e-06/0.3135, allocations: 0 / 0.5107 GB, free: 3.219 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.0005422/0.3141, allocations: 0.5183 MB / 0.5112 GB, free: 2.746 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.625e-05/0.3141, allocations: 17.7 kB / 0.5112 GB, free: 2.738 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.656e-05/0.3142, allocations: 59.34 kB / 0.5113 GB, free: 2.684 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009177/0.3151, allocations: 107.5 kB / 0.5114 GB, free: 2.664 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003023/0.3154, allocations: 263.2 kB / 0.5116 GB, free: 2.43 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.439e-05/0.3154, allocations: 12.75 kB / 0.5116 GB, free: 2.426 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.914e-05/0.3155, allocations: 19.06 kB / 0.5117 GB, free: 2.418 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004582/0.3159, allocations: 325.2 kB / 0.512 GB, free: 2.242 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.291e-05/0.3159, allocations: 2.25 kB / 0.512 GB, free: 2.242 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.551e-05/0.316, allocations: 9.281 kB / 0.512 GB, free: 2.234 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.065e-05/0.316, allocations: 14.66 kB / 0.512 GB, free: 2.234 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004443/0.3165, allocations: 305.4 kB / 0.5123 GB, free: 2.141 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001448/0.3179, allocations: 1.295 MB / 0.5136 GB, free: 1.141 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002556/0.3182, allocations: 194.3 kB / 0.5137 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.279e-05/0.3183, allocations: 44.73 kB / 0.5138 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.726e-05/0.3183, allocations: 5.969 kB / 0.5138 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.517e-05/0.3183, allocations: 31.66 kB / 0.5138 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.353e-06/0.3183, allocations: 0 / 0.5138 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002749/0.3186, allocations: 142.5 kB / 0.514 GB, free: 0.832 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.372e-05/0.3186, allocations: 79.22 kB / 0.514 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001652/0.3188, allocations: 214.9 kB / 0.5142 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.428e-06/0.3188, allocations: 26.77 kB / 0.5143 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.5e-05/0.3189, allocations: 182.6 kB / 0.5144 GB, free: 416 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.407e-05/0.3189, allocations: 32.56 kB / 0.5145 GB, free: 392 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.534e-05/0.319, allocations: 48.36 kB / 0.5145 GB, free: 356 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.712e-05/0.319, allocations: 323.9 kB / 0.5148 GB, free: 32 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.703e-05/0.3191, allocations: 40.38 kB / 0.5149 GB, free: 20 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001457/0.3193, allocations: 142 kB / 0.515 GB, free: 15.88 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002162/0.3195, allocations: 200.6 kB / 0.5152 GB, free: 15.7 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.3195, allocations: 1.25 kB / 0.5152 GB, free: 15.7 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003125/0.3198, allocations: 205.1 kB / 0.5154 GB, free: 15.6 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/0.3198, allocations: 7.438 kB / 0.5154 GB, free: 15.6 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.3199, allocations: 3.344 kB / 0.5154 GB, free: 15.6 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.49e-05/0.3199, allocations: 4.688 kB / 0.5154 GB, free: 15.6 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001702/0.32, allocations: 50.23 kB / 0.5154 GB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.213e-05/0.3201, allocations: 9.031 kB / 0.5155 GB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001208/0.3202, allocations: 28.98 kB / 0.5155 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.479e-05/0.3202, allocations: 8.391 kB / 0.5155 GB, free: 15.57 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.0001245/0.3203, allocations: 156.4 kB / 0.5156 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.494e-05/0.3204, allocations: 19.81 kB / 0.5157 GB, free: 15.42 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002218/0.3206, allocations: 123.2 kB / 0.5158 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.3206, allocations: 2.312 kB / 0.5158 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.3206, allocations: 1.375 kB / 0.5158 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.3207, allocations: 0.7969 kB / 0.5158 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007205/0.3214, allocations: 0.5778 MB / 0.5163 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.3214, allocations: 3.625 kB / 0.5163 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.742e-05/0.3215, allocations: 18.03 kB / 0.5164 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.923e-06/0.3215, allocations: 7.062 kB / 0.5164 GB, free: 14.87 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.138e-05/0.3215, allocations: 4.031 kB / 0.5164 GB, free: 14.87 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.3215, allocations: 11.64 kB / 0.5164 GB, free: 14.86 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.3215, allocations: 6.688 kB / 0.5164 GB, free: 14.86 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002491/0.3218, allocations: 286.4 kB / 0.5167 GB, free: 14.6 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.452e-05/0.3219, allocations: 96.34 kB / 0.5168 GB, free: 14.5 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.351e-05/0.3219, allocations: 7.312 kB / 0.5168 GB, free: 14.49 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001198/0.322, allocations: 8.656 kB / 0.5168 GB, free: 14.49 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.091e-05/0.3221, allocations: 11.94 kB / 0.5168 GB, free: 14.48 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.11e-05/0.3221, allocations: 5.656 kB / 0.5168 GB, free: 14.48 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001413/0.3222, allocations: 159.5 kB / 0.5169 GB, free: 14.38 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3222, allocations: 0 / 0.5169 GB, free: 14.38 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003721/0.3226, allocations: 52.89 kB / 0.517 GB, free: 14.37 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.0005418/0.3232, allocations: 0.8273 MB / 0.5178 GB, free: 13.57 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002761/0.3234, allocations: 115.2 kB / 0.5179 GB, free: 13.53 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.3235, allocations: 2 kB / 0.5179 GB, free: 13.53 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 7.84e-05/0.3235, allocations: 51.03 kB / 0.518 GB, free: 13.51 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004148/0.324, allocations: 30.5 kB / 0.518 GB, free: 13.5 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002676/0.3267, allocations: 2.318 MB / 0.5203 GB, free: 11.59 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003425/0.327, allocations: 0.7558 MB / 0.521 GB, free: 10.88 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001185/0.3271, allocations: 41.95 kB / 0.521 GB, free: 10.87 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001071/0.3273, allocations: 59.19 kB / 0.5211 GB, free: 10.83 MB / 398.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3273, allocations: 0 / 0.5211 GB, free: 10.83 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02092/0.3482, allocations: 3.348 MB / 0.5244 GB, free: 10.29 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.612/7.961, allocations: 9.25 kB / 0.5244 GB, free: 10.28 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)