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.001289/0.001289, allocations: 107.8 kB / 17.06 MB, free: 6.02 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.001272/0.001272, allocations: 189.4 kB / 18 MB, free: 5.102 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.409/1.409, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1969/0.1969, allocations: 38.04 MB / 329.9 MB, free: 8.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002423/0.002423, allocations: 67.91 kB / 457.6 MB, free: 7.336 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3187/0.3211, allocations: 58.06 MB / 0.5036 GB, free: 7.508 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.004343/0.3255, allocations: 3.31 MB / 0.5068 GB, free: 5.211 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001603/0.3272, allocations: 1.221 MB / 0.508 GB, free: 4.348 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001514/0.3273, allocations: 9.75 kB / 0.508 GB, free: 4.344 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006043/0.3279, allocations: 154.9 kB / 0.5082 GB, free: 4.25 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004097/0.3284, allocations: 175.8 kB / 0.5084 GB, free: 4.152 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003028/0.3287, allocations: 136.8 kB / 0.5085 GB, free: 4.082 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003264/0.329, allocations: 289.2 kB / 0.5088 GB, free: 3.949 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00026/0.3293, allocations: 122.3 kB / 0.5089 GB, free: 3.898 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001801/0.3295, allocations: 121.9 kB / 0.509 GB, free: 3.84 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001657/0.3296, allocations: 106.8 kB / 0.5091 GB, free: 3.793 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.821e-05/0.3297, allocations: 13.91 kB / 0.5091 GB, free: 3.793 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004146/0.3301, allocations: 229.1 kB / 0.5093 GB, free: 3.703 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.685e-05/0.3302, allocations: 59.91 kB / 0.5094 GB, free: 3.676 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.885e-05/0.3303, allocations: 103.2 kB / 0.5095 GB, free: 3.613 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004957/0.3308, allocations: 287.7 kB / 0.5098 GB, free: 3.512 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.3308, allocations: 0 / 0.5098 GB, free: 3.512 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.3308, allocations: 0 / 0.5098 GB, free: 3.512 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.287e-05/0.3308, allocations: 0 / 0.5098 GB, free: 3.512 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.0006179/0.3315, allocations: 0.516 MB / 0.5103 GB, free: 3.035 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/0.3315, allocations: 9.031 kB / 0.5103 GB, free: 3.035 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.776e-05/0.3316, allocations: 50.09 kB / 0.5103 GB, free: 2.988 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000713/0.3323, allocations: 80.83 kB / 0.5104 GB, free: 2.969 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002821/0.3326, allocations: 264.3 kB / 0.5107 GB, free: 2.73 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.946e-05/0.3326, allocations: 12.14 kB / 0.5107 GB, free: 2.727 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.586e-05/0.3327, allocations: 15.28 kB / 0.5107 GB, free: 2.723 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004154/0.3331, allocations: 279 kB / 0.5109 GB, free: 2.559 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.801e-05/0.3331, allocations: 1.344 kB / 0.5109 GB, free: 2.559 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.498e-05/0.3331, allocations: 7.844 kB / 0.511 GB, free: 2.555 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.389e-05/0.3332, allocations: 12.64 kB / 0.511 GB, free: 2.555 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000354/0.3335, allocations: 227.9 kB / 0.5112 GB, free: 2.477 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001406/0.335, allocations: 1.199 MB / 0.5124 GB, free: 1.504 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000233/0.3352, allocations: 147.7 kB / 0.5125 GB, free: 1.41 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.197e-05/0.3353, allocations: 45.92 kB / 0.5125 GB, free: 1.383 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.224e-05/0.3353, allocations: 6.078 kB / 0.5125 GB, free: 1.379 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.915e-05/0.3353, allocations: 33.62 kB / 0.5126 GB, free: 1.34 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.643e-06/0.3354, allocations: 0 / 0.5126 GB, free: 1.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003488/0.3357, allocations: 178 kB / 0.5127 GB, free: 1.246 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.429e-05/0.3357, allocations: 80.17 kB / 0.5128 GB, free: 1.152 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000241/0.336, allocations: 204.6 kB / 0.513 GB, free: 1.02 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.33e-05/0.336, allocations: 31.52 kB / 0.513 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.105e-05/0.3361, allocations: 151.2 kB / 0.5132 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.118e-05/0.3361, allocations: 45.2 kB / 0.5132 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.326e-05/0.3362, allocations: 43.28 kB / 0.5133 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.146e-05/0.3363, allocations: 333 kB / 0.5136 GB, free: 472 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.059e-05/0.3364, allocations: 45.61 kB / 0.5136 GB, free: 456 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.871e-05/0.3365, allocations: 125.1 kB / 0.5138 GB, free: 336 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001794/0.3366, allocations: 182.2 kB / 0.5139 GB, free: 184 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.3367, allocations: 0 / 0.5139 GB, free: 184 kB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002765/0.3369, allocations: 209.4 kB / 0.5141 GB, free: 80 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/0.337, allocations: 9.5 kB / 0.5141 GB, free: 76 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.337, allocations: 3.094 kB / 0.5141 GB, free: 76 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.975e-05/0.337, allocations: 8.828 kB / 0.5141 GB, free: 72 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002426/0.3372, allocations: 53.31 kB / 0.5142 GB, free: 64 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001163/0.3384, allocations: 1.418 MB / 0.5156 GB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001479/0.3386, allocations: 26.59 kB / 0.5156 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.136e-05/0.3386, allocations: 8.219 kB / 0.5156 GB, free: 14.59 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.0001724/0.3388, allocations: 147.7 kB / 0.5158 GB, free: 14.45 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.574e-05/0.3388, allocations: 20.19 kB / 0.5158 GB, free: 14.44 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002618/0.3391, allocations: 135.3 kB / 0.5159 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.3391, allocations: 2 kB / 0.5159 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.3391, allocations: 1.891 kB / 0.5159 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.3391, allocations: 0.5156 kB / 0.5159 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008041/0.34, allocations: 0.4925 MB / 0.5164 GB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.816e-06/0.34, allocations: 0 / 0.5164 GB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001813/0.3402, allocations: 37.91 kB / 0.5164 GB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.569e-06/0.3402, allocations: 1.734 kB / 0.5164 GB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.51e-05/0.3402, allocations: 1.984 kB / 0.5164 GB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001077/0.3413, allocations: 1.424 MB / 0.5178 GB, free: 12.49 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.3413, allocations: 3.938 kB / 0.5178 GB, free: 12.49 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003839/0.3417, allocations: 308.7 kB / 0.5181 GB, free: 12.27 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.658e-05/0.3418, allocations: 97.75 kB / 0.5182 GB, free: 12.16 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.031e-05/0.3418, allocations: 6.578 kB / 0.5182 GB, free: 12.16 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.525e-05/0.3419, allocations: 1.125 kB / 0.5182 GB, free: 12.16 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.561e-05/0.3419, allocations: 12.92 kB / 0.5182 GB, free: 12.15 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.365e-05/0.342, allocations: 3.766 kB / 0.5182 GB, free: 12.15 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001682/0.3421, allocations: 149.4 kB / 0.5184 GB, free: 12.06 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3421, allocations: 0 / 0.5184 GB, free: 12.06 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003651/0.3425, allocations: 45.91 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.0006915/0.3432, allocations: 0.8426 MB / 0.5192 GB, free: 11.29 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003564/0.3436, allocations: 137.1 kB / 0.5194 GB, free: 11.25 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.973e-06/0.3436, allocations: 1.125 kB / 0.5194 GB, free: 11.25 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001666/0.3438, allocations: 54.5 kB / 0.5194 GB, free: 11.23 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004151/0.3442, allocations: 37.77 kB / 0.5195 GB, free: 11.22 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003227/0.3474, allocations: 2.352 MB / 0.5218 GB, free: 9.375 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004305/0.3479, allocations: 0.7429 MB / 0.5225 GB, free: 8.672 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001266/0.348, allocations: 31.52 kB / 0.5225 GB, free: 8.668 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.969e-05/0.3482, allocations: 62.42 kB / 0.5226 GB, free: 8.621 MB / 398.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3482, allocations: 0 / 0.5226 GB, free: 8.621 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03247/0.3806, allocations: 3.8 MB / 0.5263 GB, free: 8.027 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.97/12.35, allocations: 1.375 kB / 0.5263 GB, free: 8.027 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)