Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.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.GeneratorTest2,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest2,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest2",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.001111/0.001111, allocations: 113 kB / 17.07 MB, free: 6.008 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.00111/0.00111, allocations: 191 kB / 18 MB, free: 5.09 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.31/1.31, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1785/0.1785, allocations: 38.04 MB / 329.9 MB, free: 8.715 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 63.91 kB / 457.6 MB, free: 7.367 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2927/0.294, allocations: 58.06 MB / 0.5036 GB, free: 7.418 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.006302/0.3004, allocations: 4.918 MB / 0.5084 GB, free: 3.984 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003428/0.3038, allocations: 2.48 MB / 0.5108 GB, free: 2.234 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004594/0.3043, allocations: 13.38 kB / 0.5108 GB, free: 2.23 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001207/0.3056, allocations: 437.7 kB / 0.5113 GB, free: 1.969 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001274/0.3069, allocations: 0.5108 MB / 0.5118 GB, free: 1.691 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008089/0.3077, allocations: 285.9 kB / 0.512 GB, free: 1.547 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009191/0.3086, allocations: 0.7472 MB / 0.5128 GB, free: 1.215 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004727/0.3091, allocations: 329.5 kB / 0.5131 GB, free: 1.082 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004893/0.3096, allocations: 332.5 kB / 0.5134 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004176/0.31, allocations: 329.1 kB / 0.5137 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.089e-05/0.3101, allocations: 36.34 kB / 0.5137 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001086/0.3112, allocations: 0.6294 MB / 0.5144 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002148/0.3114, allocations: 198.4 kB / 0.5145 GB, free: 476 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002534/0.3117, allocations: 245.4 kB / 0.5148 GB, free: 332 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001175/0.3129, allocations: 0.7673 MB / 0.5155 GB, free: 44 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.391e-06/0.3129, allocations: 1.094 kB / 0.5155 GB, free: 44 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3129, allocations: 0 / 0.5155 GB, free: 44 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.093e-05/0.3129, allocations: 0 / 0.5155 GB, free: 44 kB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.001268/0.3142, allocations: 0.7864 MB / 0.5163 GB, free: 15.42 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/0.3142, allocations: 14.27 kB / 0.5163 GB, free: 15.41 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001072/0.3144, allocations: 89.25 kB / 0.5164 GB, free: 15.34 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001785/0.3161, allocations: 207.2 kB / 0.5166 GB, free: 15.3 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006547/0.3168, allocations: 369.4 kB / 0.5169 GB, free: 15.01 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.093e-05/0.3169, allocations: 30.78 kB / 0.517 GB, free: 15 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.473e-05/0.317, allocations: 45.67 kB / 0.517 GB, free: 14.98 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001215/0.3182, allocations: 0.6289 MB / 0.5176 GB, free: 14.7 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.539e-05/0.3182, allocations: 2.562 kB / 0.5176 GB, free: 14.7 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.431e-05/0.3183, allocations: 16.28 kB / 0.5176 GB, free: 14.69 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.658e-05/0.3184, allocations: 35.33 kB / 0.5177 GB, free: 14.68 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009836/0.3193, allocations: 0.6072 MB / 0.5183 GB, free: 14.5 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003415/0.3228, allocations: 2.261 MB / 0.5205 GB, free: 13.05 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006577/0.3235, allocations: 493.1 kB / 0.521 GB, free: 12.77 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003335/0.3238, allocations: 236.1 kB / 0.5212 GB, free: 12.68 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.561e-05/0.3238, allocations: 4.781 kB / 0.5212 GB, free: 12.68 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.255e-05/0.3239, allocations: 41.86 kB / 0.5212 GB, free: 12.63 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 2.114e-06/0.3239, allocations: 0 / 0.5212 GB, free: 12.63 MB / 398.1 MB Notification: Performance of matching and sorting (n=43): time 0.004002/0.3279, allocations: 1.716 MB / 0.5229 GB, free: 11.74 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.022e-05/0.328, allocations: 87.31 kB / 0.523 GB, free: 11.64 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003703/0.3284, allocations: 282.9 kB / 0.5233 GB, free: 11.48 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.99e-05/0.3284, allocations: 31.89 kB / 0.5233 GB, free: 11.45 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001754/0.3286, allocations: 233 kB / 0.5235 GB, free: 11.25 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001648/0.3288, allocations: 162.8 kB / 0.5237 GB, free: 11.12 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001391/0.3289, allocations: 85.44 kB / 0.5237 GB, free: 11.08 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.3291, allocations: 351.8 kB / 0.5241 GB, free: 10.75 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003181/0.3294, allocations: 174.8 kB / 0.5242 GB, free: 10.69 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003613/0.3298, allocations: 297.2 kB / 0.5245 GB, free: 10.49 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006731/0.3305, allocations: 0.5029 MB / 0.525 GB, free: 10.19 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.3305, allocations: 1.188 kB / 0.525 GB, free: 10.19 MB / 398.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001311/0.3318, allocations: 0.681 MB / 0.5257 GB, free: 9.914 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.551e-05/0.3318, allocations: 7.094 kB / 0.5257 GB, free: 9.914 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.127e-05/0.3318, allocations: 3.688 kB / 0.5257 GB, free: 9.914 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006507/0.3325, allocations: 175.6 kB / 0.5259 GB, free: 9.871 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003822/0.3329, allocations: 94.41 kB / 0.526 GB, free: 9.863 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003578/0.3365, allocations: 2.798 MB / 0.5287 GB, free: 7.836 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003538/0.3369, allocations: 18.02 kB / 0.5287 GB, free: 7.832 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.338e-05/0.3369, allocations: 20.66 kB / 0.5287 GB, free: 7.828 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 (47): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(4,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0002865/0.3372, allocations: 195.7 kB / 0.5289 GB, free: 7.672 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.948e-05/0.3373, allocations: 45.2 kB / 0.529 GB, free: 7.645 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001186/0.3385, allocations: 0.6385 MB / 0.5296 GB, free: 7.379 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.3385, allocations: 6.844 kB / 0.5296 GB, free: 7.379 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.3385, allocations: 4.641 kB / 0.5296 GB, free: 7.375 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.476e-06/0.3385, allocations: 2.359 kB / 0.5296 GB, free: 7.375 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002235/0.3408, allocations: 1.344 MB / 0.5309 GB, free: 6.648 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.828e-06/0.3408, allocations: 0 / 0.5309 GB, free: 6.648 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003531/0.3412, allocations: 77.62 kB / 0.531 GB, free: 6.645 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004759/0.3416, allocations: 145.6 kB / 0.5311 GB, free: 6.605 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.316e-05/0.3417, allocations: 13.59 kB / 0.5311 GB, free: 6.598 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00293/0.3446, allocations: 2.572 MB / 0.5336 GB, free: 4.578 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.3447, allocations: 1.031 kB / 0.5336 GB, free: 4.578 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001435/0.3461, allocations: 0.9552 MB / 0.5346 GB, free: 4.004 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001204/0.3462, allocations: 115.3 kB / 0.5347 GB, free: 3.883 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.788e-05/0.3463, allocations: 15.5 kB / 0.5347 GB, free: 3.871 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002257/0.3465, allocations: 13.67 kB / 0.5347 GB, free: 3.863 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.212e-05/0.3466, allocations: 39.7 kB / 0.5347 GB, free: 3.84 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.055e-05/0.3466, allocations: 13.12 kB / 0.5348 GB, free: 3.836 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002051/0.3469, allocations: 200.2 kB / 0.535 GB, free: 3.703 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.3469, allocations: 0 / 0.535 GB, free: 3.703 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000678/0.3475, allocations: 138.8 kB / 0.5351 GB, free: 3.688 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia.w,constantTorque.phi,inertia1.w,constantTorque1.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 (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(3,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001643/0.3492, allocations: 1.5 MB / 0.5365 GB, free: 2.574 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001262/0.3505, allocations: 0.6691 MB / 0.5372 GB, free: 2.199 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.3505, allocations: 0 / 0.5372 GB, free: 2.199 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007248/0.3512, allocations: 434.4 kB / 0.5376 GB, free: 1.93 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000524/0.3518, allocations: 63.48 kB / 0.5377 GB, free: 1.895 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005896/0.3577, allocations: 4.475 MB / 0.542 GB, free: 14.74 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004196/0.3581, allocations: 0.8683 MB / 0.5429 GB, free: 13.96 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002106/0.3583, allocations: 68.48 kB / 0.543 GB, free: 13.93 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002062/0.3585, allocations: 153.4 kB / 0.5431 GB, free: 13.8 MB / 414.1 MB Notification: Performance of SimCode: time 1.884e-06/0.3585, allocations: 0 / 0.5431 GB, free: 13.8 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03057/0.3891, allocations: 9.886 MB / 0.5528 GB, free: 5.191 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.81/12.2, allocations: 4.062 kB / 0.5528 GB, free: 5.188 MB / 414.1 MB (rm -f PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2_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_GeneratorTest2.fmu > PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe 2>&1)