Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.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.TwoAreaOld.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_ThirdOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_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.008653/0.008653, allocations: 98.39 kB / 15.73 MB, free: 6.031 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.485/1.485, allocations: 222.9 MB / 239.4 MB, free: 4.359 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.001533/0.001533, allocations: 192.5 kB / 289.7 MB, free: 2.074 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.5042/0.5042, allocations: 78.54 MB / 418.4 MB, free: 3.082 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001687/0.001686, allocations: 75.88 kB / 0.5532 GB, free: 1.406 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4068/0.4085, allocations: 68.16 MB / 0.6197 GB, free: 9.238 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII): time 0.006489/0.4151, allocations: 6.506 MB / 0.6261 GB, free: 3.59 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004335/0.4195, allocations: 1.955 MB / 0.628 GB, free: 1.629 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001455/0.421, allocations: 8 kB / 0.628 GB, free: 1.621 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009806/0.422, allocations: 238 kB / 0.6282 GB, free: 1.387 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002666/0.4247, allocations: 0.851 MB / 0.6291 GB, free: 0.5352 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001332/0.4261, allocations: 0.6346 MB / 0.6297 GB, free: 15.91 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002257/0.4283, allocations: 1.577 MB / 0.6312 GB, free: 14.32 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005489/0.4289, allocations: 330.4 kB / 0.6315 GB, free: 13.99 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001003/0.4299, allocations: 0.6535 MB / 0.6322 GB, free: 13.33 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009871/0.4309, allocations: 0.8284 MB / 0.633 GB, free: 12.5 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002234/0.4312, allocations: 123.9 kB / 0.6331 GB, free: 12.38 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005411/0.4317, allocations: 255.9 kB / 0.6333 GB, free: 12.13 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002911/0.432, allocations: 334.6 kB / 0.6337 GB, free: 11.8 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006493/0.4327, allocations: 0.6641 MB / 0.6343 GB, free: 11.13 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002127/0.4348, allocations: 1.677 MB / 0.6359 GB, free: 9.453 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.052e-06/0.4348, allocations: 0 / 0.6359 GB, free: 9.453 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.4348, allocations: 4 kB / 0.6359 GB, free: 9.449 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.223e-05/0.4349, allocations: 0 / 0.6359 GB, free: 9.449 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: 189 * Number of variables: 189 Notification: Performance of Generate backend data structure: time 0.009037/0.444, allocations: 2.722 MB / 0.6386 GB, free: 6.656 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.311e-05/0.444, allocations: 12.03 kB / 0.6386 GB, free: 6.645 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001773/0.4442, allocations: 126.6 kB / 0.6387 GB, free: 6.512 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005159/0.4494, allocations: 0.7796 MB / 0.6395 GB, free: 5.73 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002464/0.4519, allocations: 0.9029 MB / 0.6404 GB, free: 4.773 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003808/0.4523, allocations: 252.2 kB / 0.6406 GB, free: 4.488 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002977/0.4526, allocations: 87.98 kB / 0.6407 GB, free: 4.402 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002666/0.4553, allocations: 1.083 MB / 0.6418 GB, free: 3.309 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.846e-05/0.4554, allocations: 0 / 0.6418 GB, free: 3.309 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001293/0.4555, allocations: 28 kB / 0.6418 GB, free: 3.281 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.924e-05/0.4556, allocations: 27.88 kB / 0.6418 GB, free: 3.254 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002576/0.4581, allocations: 0.9877 MB / 0.6428 GB, free: 2.266 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.01007/0.4682, allocations: 3.793 MB / 0.6465 GB, free: 14.3 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00766/0.476, allocations: 2.373 MB / 0.6488 GB, free: 11.83 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001646/0.4777, allocations: 0.6722 MB / 0.6495 GB, free: 11.16 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001521/0.4778, allocations: 20.98 kB / 0.6495 GB, free: 11.14 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001842/0.4797, allocations: 0.8231 MB / 0.6503 GB, free: 10.29 MB / 462.1 MB Notification: Performance of pre-optimization done (n=95): time 4.238e-06/0.4797, allocations: 0 / 0.6503 GB, free: 10.29 MB / 462.1 MB Notification: Performance of matching and sorting (n=95): time 0.02969/0.5094, allocations: 7.191 MB / 0.6573 GB, free: 3.039 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001063/0.5096, allocations: 119.7 kB / 0.6574 GB, free: 2.898 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002165/0.5118, allocations: 1.099 MB / 0.6585 GB, free: 1.785 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003484/0.5121, allocations: 45.73 kB / 0.6585 GB, free: 1.734 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005002/0.5127, allocations: 0.4936 MB / 0.659 GB, free: 1.234 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006283/0.5133, allocations: 364.9 kB / 0.6594 GB, free: 0.875 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008563/0.5142, allocations: 283.5 kB / 0.6596 GB, free: 0.5938 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000104/0.5143, allocations: 301.1 kB / 0.6599 GB, free: 304 kB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001862/0.5161, allocations: 0.7574 MB / 0.6607 GB, free: 15.54 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001951/0.5181, allocations: 0.9265 MB / 0.6616 GB, free: 14.57 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0244/0.5425, allocations: 5.552 MB / 0.667 GB, free: 8.934 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-05/0.5426, allocations: 0 / 0.667 GB, free: 8.934 MB / 478.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.01453/0.5572, allocations: 4.38 MB / 0.6713 GB, free: 4.523 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.788e-05/0.5573, allocations: 59.41 kB / 0.6713 GB, free: 4.453 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.545e-05/0.5573, allocations: 0 / 0.6713 GB, free: 4.453 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006023/0.5633, allocations: 1.584 MB / 0.6729 GB, free: 2.867 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001501/0.5649, allocations: 279.6 kB / 0.6731 GB, free: 2.594 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02194/0.5869, allocations: 8.515 MB / 0.6815 GB, free: 9.926 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002065/0.589, allocations: 207.2 kB / 0.6816 GB, free: 9.723 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000341/0.5894, allocations: 51.98 kB / 0.6817 GB, free: 9.672 MB / 494.1 MB Warning: Assuming fixed start value for the following 4 variables: order3.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 order3.delta:VARIABLE(flow=false start = order3.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 (160): * Single equations (assignments): 157 * 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 {(19,14,24.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009827/0.5904, allocations: 308.2 kB / 0.682 GB, free: 9.352 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004359/0.5908, allocations: 131.2 kB / 0.6821 GB, free: 9.223 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01343/0.6042, allocations: 3.865 MB / 0.6859 GB, free: 5.32 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.302e-05/0.6043, allocations: 8 kB / 0.6859 GB, free: 5.312 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.408e-05/0.6044, allocations: 8 kB / 0.6859 GB, free: 5.305 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.563e-05/0.6044, allocations: 3.984 kB / 0.6859 GB, free: 5.301 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.01666/0.6211, allocations: 5.456 MB / 0.6912 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.767e-05/0.6211, allocations: 0 / 0.6912 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007259/0.6219, allocations: 95.89 kB / 0.6913 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006161/0.6281, allocations: 1.603 MB / 0.6929 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00032/0.6285, allocations: 35.88 kB / 0.6929 GB, free: 14 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02225/0.6507, allocations: 9.651 MB / 0.7024 GB, free: 4.059 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.6508, allocations: 0 / 0.7024 GB, free: 4.059 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01542/0.6662, allocations: 4.732 MB / 0.707 GB, free: 15.29 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005314/0.6668, allocations: 228 kB / 0.7072 GB, free: 15.05 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000462/0.6673, allocations: 23.94 kB / 0.7072 GB, free: 15.03 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001391/0.6687, allocations: 107.9 kB / 0.7073 GB, free: 14.92 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007542/0.6694, allocations: 192.8 kB / 0.7075 GB, free: 14.73 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001473/0.6696, allocations: 31.94 kB / 0.7075 GB, free: 14.7 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001329/0.6709, allocations: 0.7393 MB / 0.7083 GB, free: 13.96 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.01e-07/0.6709, allocations: 0 / 0.7083 GB, free: 13.96 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001854/0.6728, allocations: 467.7 kB / 0.7087 GB, free: 13.5 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 9 (order2.delta,order2.w,order3.delta,order3.w,order3.e1q,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 (63): * Single equations (assignments): 60 * 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.01563/0.6885, allocations: 5.327 MB / 0.7139 GB, free: 8.125 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007228/0.6957, allocations: 2.521 MB / 0.7164 GB, free: 5.562 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 7.564e-06/0.6958, allocations: 0 / 0.7164 GB, free: 5.562 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004983/0.7008, allocations: 1.618 MB / 0.7179 GB, free: 3.902 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001923/0.7027, allocations: 123.1 kB / 0.7181 GB, free: 3.789 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0452/0.748, allocations: 16.03 MB / 0.7337 GB, free: 3.531 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001116/0.7492, allocations: 1.12 MB / 0.7348 GB, free: 2.379 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0007243/0.7499, allocations: 120 kB / 0.7349 GB, free: 2.258 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008892/0.7508, allocations: 479.3 kB / 0.7354 GB, free: 1.789 MB / 0.5294 GB Notification: Performance of SimCode: time 1.202e-06/0.7508, allocations: 4 kB / 0.7354 GB, free: 1.785 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4041/1.155, allocations: 34.28 MB / 0.7689 GB, free: 137.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.78/15.94, allocations: 10.84 kB / 0.7689 GB, free: 137.6 MB / 0.5606 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.sim & python3 -m fmpy simulate --output-file OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.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_TwoAreaOld_ThirdOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe 2>&1)