Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_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.ThreeArea.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_ThirdOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_ThirdOrder_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.007267/0.007267, allocations: 101.2 kB / 15.73 MB, free: 6.059 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.655/1.655, allocations: 222.9 MB / 239.4 MB, free: 4.539 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.002092/0.002091, allocations: 188.5 kB / 289.7 MB, free: 2.254 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.5599/0.5599, allocations: 78.54 MB / 418.4 MB, free: 3.152 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002257/0.002257, allocations: 75.88 kB / 0.5532 GB, free: 1.383 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4647/0.467, allocations: 68.16 MB / 0.6198 GB, free: 9.363 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII): time 0.01242/0.4794, allocations: 13.59 MB / 0.633 GB, free: 12.47 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.01021/0.4897, allocations: 3.449 MB / 0.6364 GB, free: 9.016 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002812/0.4926, allocations: 35.88 kB / 0.6364 GB, free: 8.98 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001763/0.4943, allocations: 0.5615 MB / 0.637 GB, free: 8.41 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004856/0.4992, allocations: 1.421 MB / 0.6384 GB, free: 6.988 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00381/0.5031, allocations: 1.504 MB / 0.6399 GB, free: 5.504 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.006566/0.5096, allocations: 3.718 MB / 0.6435 GB, free: 1.77 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001531/0.5112, allocations: 0.8985 MB / 0.6444 GB, free: 0.8203 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003025/0.5142, allocations: 1.529 MB / 0.6459 GB, free: 15.29 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002729/0.517, allocations: 1.956 MB / 0.6478 GB, free: 13.32 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005311/0.5175, allocations: 284 kB / 0.648 GB, free: 13.04 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001073/0.5186, allocations: 435.9 kB / 0.6484 GB, free: 12.62 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007827/0.5194, allocations: 0.7545 MB / 0.6492 GB, free: 11.86 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001809/0.5212, allocations: 1.631 MB / 0.6508 GB, free: 10.22 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005684/0.5269, allocations: 3.99 MB / 0.6547 GB, free: 6.215 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.662e-06/0.5269, allocations: 0 / 0.6547 GB, free: 6.215 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.5269, allocations: 0 / 0.6547 GB, free: 6.215 MB / 462.1 MB Notification: Performance of Transformations before backend: time 8.623e-05/0.527, allocations: 4 kB / 0.6547 GB, free: 6.211 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 522 * Number of variables: 522 Notification: Performance of Generate backend data structure: time 0.02466/0.5517, allocations: 6.689 MB / 0.6612 GB, free: 15.42 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.21e-05/0.5518, allocations: 12.03 kB / 0.6612 GB, free: 15.41 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004634/0.5522, allocations: 303.2 kB / 0.6615 GB, free: 15.11 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0149/0.5671, allocations: 2.292 MB / 0.6638 GB, free: 12.81 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004381/0.5715, allocations: 1.896 MB / 0.6656 GB, free: 10.85 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008768/0.5724, allocations: 0.725 MB / 0.6663 GB, free: 10.01 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005472/0.573, allocations: 220 kB / 0.6665 GB, free: 9.793 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006946/0.58, allocations: 3.031 MB / 0.6695 GB, free: 6.684 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.455e-05/0.58, allocations: 3.938 kB / 0.6695 GB, free: 6.68 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002615/0.5803, allocations: 83.94 kB / 0.6696 GB, free: 6.598 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.921e-05/0.5804, allocations: 52 kB / 0.6696 GB, free: 6.547 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006266/0.5866, allocations: 2.784 MB / 0.6723 GB, free: 3.746 MB / 478.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.01978/0.6064, allocations: 9.807 MB / 0.6819 GB, free: 9.516 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01145/0.6179, allocations: 4.184 MB / 0.686 GB, free: 5.207 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004272/0.6222, allocations: 1.956 MB / 0.6879 GB, free: 3.246 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002812/0.6225, allocations: 45.95 kB / 0.688 GB, free: 3.199 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005038/0.6275, allocations: 2.228 MB / 0.6901 GB, free: 0.9492 MB / 494.1 MB Notification: Performance of pre-optimization done (n=247): time 7.213e-06/0.6276, allocations: 0 / 0.6901 GB, free: 0.9492 MB / 494.1 MB Notification: Performance of matching and sorting (n=247): time 0.1342/0.7617, allocations: 29.48 MB / 0.7189 GB, free: 3.344 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001759/0.762, allocations: 184.2 kB / 0.7191 GB, free: 3.129 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005278/0.7673, allocations: 2.281 MB / 0.7213 GB, free: 0.8281 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0008208/0.7681, allocations: 69.7 kB / 0.7214 GB, free: 0.7539 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.00131/0.7695, allocations: 1.193 MB / 0.7226 GB, free: 15.55 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001954/0.7714, allocations: 0.9063 MB / 0.7234 GB, free: 14.64 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002815/0.7743, allocations: 0.5618 MB / 0.724 GB, free: 14.07 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001545/0.7744, allocations: 305.1 kB / 0.7243 GB, free: 13.77 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005299/0.7797, allocations: 1.943 MB / 0.7262 GB, free: 11.82 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005582/0.7854, allocations: 2.314 MB / 0.7284 GB, free: 9.414 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.05954/0.8449, allocations: 14 MB / 0.7421 GB, free: 11.18 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.893e-05/0.845, allocations: 7.938 kB / 0.7421 GB, free: 11.18 MB / 0.545 GB Notification: Performance of matching and sorting (n=413) (initialization): time 0.04687/0.8919, allocations: 12.3 MB / 0.7541 GB, free: 14.81 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.000167/0.8921, allocations: 117.1 kB / 0.7542 GB, free: 14.67 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.599e-05/0.8922, allocations: 12 kB / 0.7542 GB, free: 14.66 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02024/0.9124, allocations: 5.324 MB / 0.7594 GB, free: 9.332 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003248/0.9158, allocations: 0.5578 MB / 0.76 GB, free: 8.773 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.483/1.399, allocations: 23.51 MB / 0.783 GB, free: 121.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005588/1.404, allocations: 496.7 kB / 0.7834 GB, free: 121.2 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005581/1.405, allocations: 117.5 kB / 0.7835 GB, free: 121.1 MB / 0.5606 GB Warning: Assuming fixed start value for the following 6 variables: order3_2.delta:VARIABLE(flow=false start = order3_2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order3_2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3_2.e1q:VARIABLE(start = order3_2.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real order2.delta:VARIABLE(flow=false start = order2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3_1.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,$whenCondition4,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (325): * Single equations (assignments): 320 * Array equations: 0 * Algorithm blocks: 4 * 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 {(63,26)} Notification: Performance of prepare postOptimizeDAE: time 0.001537/1.407, allocations: 0.5272 MB / 0.7841 GB, free: 120.8 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007082/1.407, allocations: 317.1 kB / 0.7844 GB, free: 120.7 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03903/1.446, allocations: 11.91 MB / 0.796 GB, free: 118.3 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.984e-05/1.446, allocations: 23.62 kB / 0.796 GB, free: 118.3 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.893e-05/1.446, allocations: 19.62 kB / 0.796 GB, free: 118.3 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.329e-05/1.447, allocations: 11.62 kB / 0.796 GB, free: 118.3 MB / 0.5606 GB 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.04409/1.491, allocations: 15.48 MB / 0.8112 GB, free: 107.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.396e-05/1.491, allocations: 4 kB / 0.8112 GB, free: 107.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001611/1.492, allocations: 251.6 kB / 0.8114 GB, free: 107.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01703/1.509, allocations: 5.276 MB / 0.8165 GB, free: 101.9 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007486/1.51, allocations: 51.98 kB / 0.8166 GB, free: 101.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05911/1.569, allocations: 24.97 MB / 0.841 GB, free: 76.49 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.328e-06/1.569, allocations: 7.938 kB / 0.841 GB, free: 76.48 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04602/1.615, allocations: 14.28 MB / 0.8549 GB, free: 62.1 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00122/1.617, allocations: 429.4 kB / 0.8553 GB, free: 61.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001466/1.618, allocations: 44 kB / 0.8554 GB, free: 61.65 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004141/1.622, allocations: 299.6 kB / 0.8557 GB, free: 61.36 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003102/1.625, allocations: 0.5802 MB / 0.8562 GB, free: 60.78 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007636/1.626, allocations: 63.98 kB / 0.8563 GB, free: 60.71 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003431/1.63, allocations: 1.511 MB / 0.8578 GB, free: 59.2 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.01e-07/1.63, allocations: 0 / 0.8578 GB, free: 59.2 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.006631/1.636, allocations: 1.175 MB / 0.8589 GB, free: 58.06 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 16 (order3_2.delta,order3_2.w,order3_2.e1q,order2.delta,order2.w,order3_1.delta,order3_1.w,order3_1.e1q,Exc1.ExcitationSystem.x_scaled[1],Exc1.derivativeBlock.x,Exc1.firstOrder2.y,Exc1.simpleLagLim.state,Exc2.ExcitationSystem.x_scaled[1],Exc2.derivativeBlock.x,Exc2.firstOrder2.y,Exc2.simpleLagLim.state) * Number of discrete variables: 4 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (156): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(66,22,7.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,6), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.04649/1.683, allocations: 14.91 MB / 0.8735 GB, free: 43.04 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.02043/1.703, allocations: 6.723 MB / 0.88 GB, free: 36.24 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.051e-05/1.703, allocations: 0 / 0.88 GB, free: 36.24 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01448/1.718, allocations: 4.422 MB / 0.8844 GB, free: 31.76 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004711/1.723, allocations: 269.8 kB / 0.8846 GB, free: 31.5 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1232/1.846, allocations: 41.4 MB / 0.925 GB, free: 5.684 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003062/1.849, allocations: 1.806 MB / 0.9268 GB, free: 3.848 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.002184/1.851, allocations: 254.5 kB / 0.9271 GB, free: 3.598 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002798/1.854, allocations: 1.233 MB / 0.9283 GB, free: 2.363 MB / 0.5762 GB Notification: Performance of SimCode: time 2.144e-06/1.854, allocations: 0 / 0.9283 GB, free: 2.363 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1968/2.051, allocations: 89.63 MB / 1.016 GB, free: 8.902 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.72/21.78, allocations: 6.219 kB / 1.016 GB, free: 8.902 MB / 0.67 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.sim & python3 -m fmpy simulate --output-file OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_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_ThreeArea_ThirdOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe 2>&1)