Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.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/Modelica 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/OpenIPSL 3.0.1/package.mo", uses=false) Using package OpenIPSL with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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 Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 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(OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_SixthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_SixthOrder_AVRII",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.004881/0.004881, allocations: 98.19 kB / 15.73 MB, free: 6.012 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.258/1.258, allocations: 222.9 MB / 239.4 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001766/0.001766, allocations: 184.5 kB / 289.7 MB, free: 2.242 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.429/0.429, allocations: 78.54 MB / 418.4 MB, free: 3.125 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001514/0.001515, allocations: 75.88 kB / 0.5532 GB, free: 1.398 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2846/0.2862, allocations: 68.16 MB / 0.6197 GB, free: 9.25 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII): time 0.005088/0.2913, allocations: 6.714 MB / 0.6263 GB, free: 3.398 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.002784/0.2941, allocations: 2.017 MB / 0.6282 GB, free: 1.375 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003773/0.2945, allocations: 12 kB / 0.6283 GB, free: 1.363 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000528/0.295, allocations: 237.9 kB / 0.6285 GB, free: 1.129 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001416/0.2965, allocations: 0.8753 MB / 0.6293 GB, free: 260 kB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001088/0.2975, allocations: 0.6432 MB / 0.63 GB, free: 15.62 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001368/0.2989, allocations: 1.675 MB / 0.6316 GB, free: 13.94 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004028/0.2993, allocations: 330.5 kB / 0.6319 GB, free: 13.6 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006586/0.3, allocations: 0.6924 MB / 0.6326 GB, free: 12.91 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008163/0.3008, allocations: 0.8751 MB / 0.6334 GB, free: 12.03 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001604/0.301, allocations: 132 kB / 0.6336 GB, free: 11.9 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003945/0.3014, allocations: 267.9 kB / 0.6338 GB, free: 11.64 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002585/0.3017, allocations: 350.5 kB / 0.6342 GB, free: 11.29 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000496/0.3022, allocations: 0.6991 MB / 0.6348 GB, free: 10.59 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001468/0.3037, allocations: 1.743 MB / 0.6365 GB, free: 8.844 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.3037, allocations: 0 / 0.6365 GB, free: 8.844 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.3037, allocations: 4 kB / 0.6366 GB, free: 8.84 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.647e-05/0.3037, allocations: 0 / 0.6366 GB, free: 8.84 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.008738/0.3124, allocations: 2.819 MB / 0.6393 GB, free: 5.949 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.3125, allocations: 12.03 kB / 0.6393 GB, free: 5.938 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001454/0.3126, allocations: 122.7 kB / 0.6394 GB, free: 5.809 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00488/0.3175, allocations: 0.7874 MB / 0.6402 GB, free: 5.02 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001369/0.3189, allocations: 0.9306 MB / 0.6411 GB, free: 4.035 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002651/0.3192, allocations: 264.1 kB / 0.6414 GB, free: 3.738 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001679/0.3194, allocations: 87.95 kB / 0.6414 GB, free: 3.652 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002082/0.3214, allocations: 1.118 MB / 0.6425 GB, free: 2.523 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.851e-05/0.3215, allocations: 0 / 0.6425 GB, free: 2.523 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.58e-05/0.3216, allocations: 28 kB / 0.6426 GB, free: 2.496 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.263e-05/0.3216, allocations: 20 kB / 0.6426 GB, free: 2.477 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001978/0.3236, allocations: 1.003 MB / 0.6436 GB, free: 1.473 MB / 446.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006251/0.3299, allocations: 3.903 MB / 0.6474 GB, free: 13.39 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007547/0.3374, allocations: 2.406 MB / 0.6497 GB, free: 10.89 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001335/0.3388, allocations: 0.6956 MB / 0.6504 GB, free: 10.19 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.836e-05/0.3389, allocations: 20.97 kB / 0.6504 GB, free: 10.17 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001559/0.3404, allocations: 0.845 MB / 0.6513 GB, free: 9.301 MB / 462.1 MB Notification: Performance of pre-optimization done (n=98): time 2.805e-06/0.3404, allocations: 0 / 0.6513 GB, free: 9.301 MB / 462.1 MB Notification: Performance of matching and sorting (n=98): time 0.0275/0.3679, allocations: 7.093 MB / 0.6582 GB, free: 2.148 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.958e-05/0.368, allocations: 119.8 kB / 0.6583 GB, free: 2.008 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001549/0.3696, allocations: 1.139 MB / 0.6594 GB, free: 0.8555 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001366/0.3697, allocations: 45.7 kB / 0.6594 GB, free: 0.8047 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003267/0.3701, allocations: 0.5015 MB / 0.6599 GB, free: 304 kB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003519/0.3704, allocations: 385 kB / 0.6603 GB, free: 15.91 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004774/0.3709, allocations: 295.5 kB / 0.6606 GB, free: 15.62 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 7.579e-05/0.371, allocations: 301.1 kB / 0.6609 GB, free: 15.32 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001583/0.3726, allocations: 0.8004 MB / 0.6617 GB, free: 14.52 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001677/0.3743, allocations: 0.9655 MB / 0.6626 GB, free: 13.52 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02458/0.3989, allocations: 5.922 MB / 0.6684 GB, free: 7.512 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.007e-06/0.3989, allocations: 4 kB / 0.6684 GB, free: 7.508 MB / 478.1 MB Notification: Performance of matching and sorting (n=204) (initialization): time 0.01374/0.4127, allocations: 4.517 MB / 0.6728 GB, free: 2.961 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.669e-05/0.4128, allocations: 55.41 kB / 0.6728 GB, free: 2.895 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.649e-05/0.4128, allocations: 4 kB / 0.6729 GB, free: 2.891 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006391/0.4192, allocations: 1.67 MB / 0.6745 GB, free: 1.219 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001504/0.4207, allocations: 295.5 kB / 0.6748 GB, free: 0.9297 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0198/0.4405, allocations: 8.636 MB / 0.6832 GB, free: 8.137 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001973/0.4425, allocations: 207.2 kB / 0.6834 GB, free: 7.934 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001364/0.4427, allocations: 59.97 kB / 0.6835 GB, free: 7.875 MB / 494.1 MB Warning: Assuming fixed start value for the following 4 variables: order6.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order2.delta:VARIABLE(flow=false start = order2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order6.delta:VARIABLE(flow=false start = order6.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (171): * Single equations (assignments): 168 * Array equations: 0 * Algorithm blocks: 2 * 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): 1 system {(20,14,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005983/0.4433, allocations: 308.1 kB / 0.6837 GB, free: 7.555 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000229/0.4435, allocations: 131.2 kB / 0.6839 GB, free: 7.426 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01239/0.4559, allocations: 3.92 MB / 0.6877 GB, free: 3.473 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.23e-05/0.456, allocations: 12 kB / 0.6877 GB, free: 3.461 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.678e-06/0.456, allocations: 4 kB / 0.6877 GB, free: 3.457 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.687e-05/0.456, allocations: 7.984 kB / 0.6877 GB, free: 3.449 MB / 494.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01453/0.4705, allocations: 5.558 MB / 0.6932 GB, free: 13.78 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.603e-06/0.4706, allocations: 0 / 0.6932 GB, free: 13.78 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006764/0.4712, allocations: 103.9 kB / 0.6933 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005491/0.4767, allocations: 1.591 MB / 0.6948 GB, free: 12.08 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001178/0.4769, allocations: 27.98 kB / 0.6948 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01964/0.4965, allocations: 9.637 MB / 0.7042 GB, free: 2.133 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.4966, allocations: 0 / 0.7042 GB, free: 2.133 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01421/0.5108, allocations: 4.814 MB / 0.7089 GB, free: 13.29 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000448/0.5113, allocations: 235.9 kB / 0.7092 GB, free: 13.04 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000187/0.5115, allocations: 27.94 kB / 0.7092 GB, free: 13.01 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001229/0.5127, allocations: 111.9 kB / 0.7093 GB, free: 12.9 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005305/0.5132, allocations: 196.7 kB / 0.7095 GB, free: 12.7 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.359e-05/0.5133, allocations: 24 kB / 0.7095 GB, free: 12.68 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001034/0.5144, allocations: 0.7713 MB / 0.7103 GB, free: 11.9 MB / 0.5137 GB Notification: Performance of sort global known variables: time 3.11e-07/0.5144, allocations: 0 / 0.7103 GB, free: 11.9 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.00126/0.5156, allocations: 491.6 kB / 0.7107 GB, free: 11.42 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 12 (order2.delta,order2.w,order6.delta,order6.w,order6.e1q,order6.e1d,order6.e2q,order6.e2d,aVRTypeII.ExcitationSystem.x_scaled[1],aVRTypeII.derivativeBlock.x,aVRTypeII.firstOrder2.y,aVRTypeII.simpleLagLim.state) * Number of discrete variables: 2 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (66): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(20,12,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01418/0.5298, allocations: 5.411 MB / 0.716 GB, free: 5.965 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.006554/0.5364, allocations: 2.628 MB / 0.7186 GB, free: 3.293 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.5365, allocations: 0 / 0.7186 GB, free: 3.293 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004213/0.5407, allocations: 1.631 MB / 0.7202 GB, free: 1.617 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009799/0.5417, allocations: 115.8 kB / 0.7203 GB, free: 1.508 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0388/0.5805, allocations: 16.81 MB / 0.7367 GB, free: 492 kB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005995/0.5811, allocations: 1.136 MB / 0.7378 GB, free: 15.32 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0005199/0.5817, allocations: 120.3 kB / 0.7379 GB, free: 15.2 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006029/0.5823, allocations: 491.3 kB / 0.7384 GB, free: 14.72 MB / 0.545 GB Notification: Performance of SimCode: time 8.31e-07/0.5823, allocations: 0 / 0.7384 GB, free: 14.72 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.285/0.8673, allocations: 35.58 MB / 0.7731 GB, free: 140.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.86/13.73, allocations: 6.969 kB / 0.7731 GB, free: 140.7 MB / 0.5606 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.sim & python3 -m fmpy simulate --output-file OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII_res.csv --start-time 0 --stop-time 20 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.008 OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_SixthOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.pipe 2>&1)