Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.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.GeneratorTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest",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.00164/0.00164, allocations: 112.8 kB / 17.06 MB, free: 5.969 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.001882/0.001882, allocations: 200 kB / 18.01 MB, free: 5.047 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.327/1.327, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1758/0.1758, allocations: 38.03 MB / 329.9 MB, free: 8.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00135/0.00135, allocations: 63.91 kB / 457.6 MB, free: 7.34 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3095/0.3109, allocations: 58.06 MB / 0.5036 GB, free: 7.52 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.004142/0.315, allocations: 3.304 MB / 0.5068 GB, free: 5.227 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001597/0.3167, allocations: 1.221 MB / 0.508 GB, free: 4.363 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001548/0.3168, allocations: 9.5 kB / 0.508 GB, free: 4.359 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006495/0.3175, allocations: 155.1 kB / 0.5082 GB, free: 4.266 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004014/0.3179, allocations: 179.6 kB / 0.5084 GB, free: 4.164 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003123/0.3182, allocations: 133.2 kB / 0.5085 GB, free: 4.098 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003379/0.3186, allocations: 286.5 kB / 0.5088 GB, free: 3.969 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002586/0.3188, allocations: 126.8 kB / 0.5089 GB, free: 3.914 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002007/0.3191, allocations: 120.4 kB / 0.509 GB, free: 3.863 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001678/0.3192, allocations: 113.6 kB / 0.5091 GB, free: 3.809 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.559e-05/0.3193, allocations: 14.06 kB / 0.5091 GB, free: 3.809 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003535/0.3196, allocations: 225.5 kB / 0.5093 GB, free: 3.723 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.85e-05/0.3197, allocations: 64 kB / 0.5094 GB, free: 3.691 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.646e-05/0.3198, allocations: 103.7 kB / 0.5095 GB, free: 3.629 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000435/0.3203, allocations: 286.9 kB / 0.5098 GB, free: 3.527 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.3203, allocations: 0 / 0.5098 GB, free: 3.527 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.966e-06/0.3203, allocations: 0 / 0.5098 GB, free: 3.527 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.773e-06/0.3203, allocations: 1.062 kB / 0.5098 GB, free: 3.527 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0006361/0.3209, allocations: 0.5174 MB / 0.5103 GB, free: 3.051 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.321, allocations: 13.89 kB / 0.5103 GB, free: 3.047 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.74e-05/0.3211, allocations: 53.44 kB / 0.5103 GB, free: 2.996 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007086/0.3218, allocations: 81.09 kB / 0.5104 GB, free: 2.977 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000291/0.3221, allocations: 263.5 kB / 0.5107 GB, free: 2.738 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.728e-05/0.3221, allocations: 15.97 kB / 0.5107 GB, free: 2.73 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.999e-05/0.3221, allocations: 15.62 kB / 0.5107 GB, free: 2.727 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004018/0.3226, allocations: 278.6 kB / 0.511 GB, free: 2.562 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.55e-05/0.3226, allocations: 1.766 kB / 0.511 GB, free: 2.562 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.152e-05/0.3226, allocations: 6.219 kB / 0.511 GB, free: 2.559 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.874e-05/0.3226, allocations: 12.36 kB / 0.511 GB, free: 2.559 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003512/0.323, allocations: 224.3 kB / 0.5112 GB, free: 2.484 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00135/0.3244, allocations: 1.21 MB / 0.5124 GB, free: 1.504 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002118/0.3246, allocations: 131.5 kB / 0.5125 GB, free: 1.426 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.379e-05/0.3247, allocations: 58.02 kB / 0.5126 GB, free: 1.387 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.858e-05/0.3247, allocations: 1.812 kB / 0.5126 GB, free: 1.387 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.28e-05/0.3247, allocations: 36.42 kB / 0.5126 GB, free: 1.344 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.393e-06/0.3247, allocations: 0 / 0.5126 GB, free: 1.344 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003412/0.3251, allocations: 166.1 kB / 0.5127 GB, free: 1.262 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.774e-05/0.3251, allocations: 84.12 kB / 0.5128 GB, free: 1.164 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001663/0.3253, allocations: 205.4 kB / 0.513 GB, free: 1.031 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.788e-06/0.3253, allocations: 26.92 kB / 0.513 GB, free: 1 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.292e-05/0.3254, allocations: 159 kB / 0.5132 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.213e-05/0.3254, allocations: 41.66 kB / 0.5132 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.974e-05/0.3255, allocations: 52.06 kB / 0.5133 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.076e-05/0.3255, allocations: 333.1 kB / 0.5136 GB, free: 476 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.638e-05/0.3256, allocations: 40.61 kB / 0.5136 GB, free: 464 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001009/0.3257, allocations: 121.7 kB / 0.5138 GB, free: 348 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001899/0.3259, allocations: 185.8 kB / 0.5139 GB, free: 192 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.3259, allocations: 1.031 kB / 0.5139 GB, free: 192 kB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002962/0.3262, allocations: 203.7 kB / 0.5141 GB, free: 92 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.484e-05/0.3263, allocations: 6.719 kB / 0.5141 GB, free: 92 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.694e-06/0.3263, allocations: 3.25 kB / 0.5141 GB, free: 92 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.751e-05/0.3263, allocations: 11.83 kB / 0.5142 GB, free: 84 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002386/0.3265, allocations: 54.06 kB / 0.5142 GB, free: 76 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009351/0.3275, allocations: 1.414 MB / 0.5156 GB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001211/0.3276, allocations: 25.97 kB / 0.5156 GB, free: 14.6 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.785e-05/0.3276, allocations: 8.109 kB / 0.5156 GB, free: 14.6 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001317/0.3278, allocations: 147.5 kB / 0.5158 GB, free: 14.46 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.564e-05/0.3278, allocations: 17.38 kB / 0.5158 GB, free: 14.46 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002467/0.3281, allocations: 139.1 kB / 0.5159 GB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.3281, allocations: 2.156 kB / 0.5159 GB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.974e-06/0.3281, allocations: 0.7812 kB / 0.5159 GB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.3281, allocations: 1.406 kB / 0.5159 GB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006774/0.3288, allocations: 0.495 MB / 0.5164 GB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.3288, allocations: 5.188 kB / 0.5164 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001815/0.329, allocations: 28.73 kB / 0.5164 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-05/0.329, allocations: 2.938 kB / 0.5164 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.051e-05/0.329, allocations: 7.156 kB / 0.5164 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008444/0.3299, allocations: 1.432 MB / 0.5178 GB, free: 12.5 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.3299, allocations: 0 / 0.5178 GB, free: 12.5 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003371/0.3303, allocations: 311.5 kB / 0.5181 GB, free: 12.27 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.296e-05/0.3303, allocations: 96.88 kB / 0.5182 GB, free: 12.17 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.06e-05/0.3304, allocations: 7.234 kB / 0.5182 GB, free: 12.16 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001001/0.3305, allocations: 2.141 kB / 0.5182 GB, free: 12.16 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.55e-05/0.3305, allocations: 7.047 kB / 0.5182 GB, free: 12.16 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.543e-05/0.3305, allocations: 10.33 kB / 0.5183 GB, free: 12.16 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001385/0.3307, allocations: 145.7 kB / 0.5184 GB, free: 12.07 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3307, allocations: 64 / 0.5184 GB, free: 12.07 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003597/0.331, allocations: 51.22 kB / 0.5184 GB, free: 12.05 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (inertia.w,constantTorque.phi) * 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 (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006836/0.3317, allocations: 0.8361 MB / 0.5193 GB, free: 11.3 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003658/0.3321, allocations: 133.6 kB / 0.5194 GB, free: 11.26 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3321, allocations: 0 / 0.5194 GB, free: 11.26 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001674/0.3323, allocations: 52.88 kB / 0.5194 GB, free: 11.25 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004306/0.3327, allocations: 36.89 kB / 0.5195 GB, free: 11.24 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003173/0.3359, allocations: 2.351 MB / 0.5218 GB, free: 9.391 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002921/0.3362, allocations: 0.7392 MB / 0.5225 GB, free: 8.691 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 9.987e-05/0.3363, allocations: 34.86 kB / 0.5225 GB, free: 8.684 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.606e-05/0.3364, allocations: 63.67 kB / 0.5226 GB, free: 8.637 MB / 398.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3364, allocations: 0 / 0.5226 GB, free: 8.637 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02181/0.3583, allocations: 3.802 MB / 0.5263 GB, free: 8.039 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.32/11.67, allocations: 4.25 kB / 0.5263 GB, free: 8.039 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest_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_GeneratorTest.fmu > PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe 2>&1)