Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_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.FifthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FifthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FifthOrder_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.006531/0.006531, allocations: 95.77 kB / 15.73 MB, free: 6.039 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.417/1.417, allocations: 222.9 MB / 239.4 MB, free: 4.543 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.001564/0.001564, allocations: 191.4 kB / 289.7 MB, free: 2.258 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4924/0.4924, allocations: 78.54 MB / 418.4 MB, free: 3.121 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001526/0.001526, allocations: 83.86 kB / 0.5532 GB, free: 1.445 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3905/0.392, allocations: 68.16 MB / 0.6197 GB, free: 9.422 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII): time 0.006252/0.3983, allocations: 6.649 MB / 0.6262 GB, free: 3.508 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004241/0.4026, allocations: 1.997 MB / 0.6282 GB, free: 1.504 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000958/0.4036, allocations: 12 kB / 0.6282 GB, free: 1.492 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007624/0.4044, allocations: 245.9 kB / 0.6284 GB, free: 1.25 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002018/0.4064, allocations: 0.8649 MB / 0.6293 GB, free: 396 kB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001295/0.4077, allocations: 0.6331 MB / 0.6299 GB, free: 15.76 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002088/0.4098, allocations: 1.643 MB / 0.6315 GB, free: 14.11 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005205/0.4104, allocations: 330.5 kB / 0.6318 GB, free: 13.77 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009185/0.4113, allocations: 0.6808 MB / 0.6325 GB, free: 13.09 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009683/0.4123, allocations: 0.8479 MB / 0.6333 GB, free: 12.24 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001845/0.4125, allocations: 128 kB / 0.6334 GB, free: 12.11 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005102/0.413, allocations: 263.9 kB / 0.6337 GB, free: 11.86 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000304/0.4133, allocations: 350.5 kB / 0.634 GB, free: 11.51 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006037/0.4139, allocations: 0.6913 MB / 0.6347 GB, free: 10.82 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002048/0.416, allocations: 1.716 MB / 0.6363 GB, free: 9.098 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.308e-06/0.416, allocations: 0 / 0.6363 GB, free: 9.098 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.056e-06/0.416, allocations: 0 / 0.6363 GB, free: 9.098 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.689e-05/0.416, allocations: 0 / 0.6363 GB, free: 9.098 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: 191 * Number of variables: 191 Notification: Performance of Generate backend data structure: time 0.01009/0.4261, allocations: 2.796 MB / 0.6391 GB, free: 6.23 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.688e-05/0.4262, allocations: 11.97 kB / 0.6391 GB, free: 6.219 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000182/0.4264, allocations: 130.7 kB / 0.6392 GB, free: 6.082 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005018/0.4314, allocations: 0.7874 MB / 0.64 GB, free: 5.293 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001846/0.4333, allocations: 0.9227 MB / 0.6409 GB, free: 4.316 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003004/0.4336, allocations: 256.2 kB / 0.6411 GB, free: 4.027 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001673/0.4338, allocations: 91.95 kB / 0.6412 GB, free: 3.938 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002169/0.436, allocations: 1.102 MB / 0.6423 GB, free: 2.824 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.099e-05/0.436, allocations: 0 / 0.6423 GB, free: 2.824 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.599e-05/0.4361, allocations: 35.98 kB / 0.6423 GB, free: 2.789 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.597e-05/0.4362, allocations: 16 kB / 0.6423 GB, free: 2.773 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002078/0.4382, allocations: 0.9916 MB / 0.6433 GB, free: 1.781 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.006922/0.4452, allocations: 3.868 MB / 0.6471 GB, free: 13.74 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007434/0.4526, allocations: 2.391 MB / 0.6494 GB, free: 11.25 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001507/0.4542, allocations: 0.6879 MB / 0.6501 GB, free: 10.56 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001218/0.4543, allocations: 16.92 kB / 0.6501 GB, free: 10.54 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00167/0.456, allocations: 0.8361 MB / 0.6509 GB, free: 9.688 MB / 462.1 MB Notification: Performance of pre-optimization done (n=97): time 2.915e-06/0.456, allocations: 0 / 0.6509 GB, free: 9.688 MB / 462.1 MB Notification: Performance of matching and sorting (n=97): time 0.02914/0.4851, allocations: 7.222 MB / 0.658 GB, free: 2.402 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.106e-05/0.4853, allocations: 115.8 kB / 0.6581 GB, free: 2.266 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001817/0.4871, allocations: 1.131 MB / 0.6592 GB, free: 1.121 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003052/0.4874, allocations: 45.7 kB / 0.6592 GB, free: 1.07 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000399/0.4878, allocations: 0.5054 MB / 0.6597 GB, free: 0.5586 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004515/0.4883, allocations: 380.8 kB / 0.6601 GB, free: 188 kB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005558/0.4889, allocations: 291.5 kB / 0.6604 GB, free: 15.89 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001023/0.489, allocations: 301.1 kB / 0.6607 GB, free: 15.59 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001681/0.4907, allocations: 0.7808 MB / 0.6614 GB, free: 14.81 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001774/0.4924, allocations: 0.9538 MB / 0.6623 GB, free: 13.82 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02479/0.5172, allocations: 5.794 MB / 0.668 GB, free: 7.941 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.219e-05/0.5173, allocations: 4 kB / 0.668 GB, free: 7.938 MB / 478.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.01434/0.5317, allocations: 4.454 MB / 0.6724 GB, free: 3.453 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.855e-05/0.5318, allocations: 63.39 kB / 0.6724 GB, free: 3.379 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.708e-05/0.5318, allocations: 4 kB / 0.6724 GB, free: 3.375 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006144/0.538, allocations: 1.631 MB / 0.674 GB, free: 1.742 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001585/0.5396, allocations: 291.6 kB / 0.6743 GB, free: 1.457 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02099/0.5606, allocations: 8.613 MB / 0.6827 GB, free: 8.695 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002127/0.5628, allocations: 215.1 kB / 0.6829 GB, free: 8.484 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001504/0.5629, allocations: 51.98 kB / 0.683 GB, free: 8.434 MB / 494.1 MB Warning: Assuming fixed start value for the following 5 variables: order5.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 order5.delta:VARIABLE(flow=false start = order5.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order5.e1q:VARIABLE(start = order5.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" 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 (167): * Single equations (assignments): 164 * 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.0007439/0.5637, allocations: 326 kB / 0.6833 GB, free: 8.102 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002725/0.564, allocations: 131.2 kB / 0.6834 GB, free: 7.973 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01292/0.5769, allocations: 3.896 MB / 0.6872 GB, free: 4.039 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.516e-05/0.577, allocations: 12 kB / 0.6872 GB, free: 4.027 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.771e-05/0.577, allocations: 8 kB / 0.6872 GB, free: 4.02 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.302e-05/0.577, allocations: 7.984 kB / 0.6872 GB, free: 4.012 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.01511/0.5921, allocations: 5.511 MB / 0.6926 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.781e-05/0.5922, allocations: 0 / 0.6926 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007251/0.5929, allocations: 103.8 kB / 0.6927 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005804/0.5987, allocations: 1.591 MB / 0.6943 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002315/0.599, allocations: 20 kB / 0.6943 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02083/0.6198, allocations: 9.659 MB / 0.7037 GB, free: 2.727 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.6199, allocations: 3.938 kB / 0.7037 GB, free: 2.723 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.015/0.6349, allocations: 4.782 MB / 0.7084 GB, free: 13.91 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007588/0.6357, allocations: 239.9 kB / 0.7086 GB, free: 13.65 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000215/0.6359, allocations: 23.94 kB / 0.7086 GB, free: 13.63 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001243/0.6372, allocations: 107.9 kB / 0.7087 GB, free: 13.52 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007309/0.6379, allocations: 192.7 kB / 0.7089 GB, free: 13.34 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.302e-05/0.638, allocations: 31.98 kB / 0.709 GB, free: 13.3 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001156/0.6392, allocations: 0.7592 MB / 0.7097 GB, free: 12.54 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.8e-07/0.6392, allocations: 0 / 0.7097 GB, free: 12.54 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001472/0.6407, allocations: 487.7 kB / 0.7102 GB, free: 12.06 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 11 (order2.delta,order2.w,order5.delta,order5.w,order5.e1q,order5.e2q,order5.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 (65): * Single equations (assignments): 62 * 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 {(18,14,25.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01513/0.6558, allocations: 5.367 MB / 0.7154 GB, free: 6.645 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007109/0.663, allocations: 2.605 MB / 0.718 GB, free: 3.996 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.663, allocations: 0 / 0.718 GB, free: 3.996 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004386/0.6674, allocations: 1.602 MB / 0.7195 GB, free: 2.352 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001185/0.6686, allocations: 113 kB / 0.7196 GB, free: 2.242 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04091/0.7096, allocations: 16.55 MB / 0.7358 GB, free: 1.465 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007504/0.7104, allocations: 1.135 MB / 0.7369 GB, free: 304 kB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0006346/0.711, allocations: 120.1 kB / 0.737 GB, free: 180 kB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000686/0.7117, allocations: 479.3 kB / 0.7375 GB, free: 15.7 MB / 0.545 GB Notification: Performance of SimCode: time 1.272e-06/0.7117, allocations: 0 / 0.7375 GB, free: 15.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.413/1.125, allocations: 35.14 MB / 0.7718 GB, free: 139.8 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.05/16.17, allocations: 10.59 kB / 0.7718 GB, free: 139.8 MB / 0.5606 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.sim & python3 -m fmpy simulate --output-file OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_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_FifthOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe 2>&1)