Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.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.ThreeArea.SixthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_SixthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_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.005752/0.005752, allocations: 102 kB / 15.73 MB, free: 6.062 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.475/1.475, 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.001816/0.001816, allocations: 196.4 kB / 289.7 MB, free: 2.25 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.5184/0.5184, allocations: 78.53 MB / 418.4 MB, free: 3.09 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002322/0.002322, allocations: 83.81 kB / 0.5532 GB, free: 1.355 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4192/0.4215, allocations: 68.17 MB / 0.6198 GB, free: 9.332 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII): time 0.01279/0.4344, allocations: 13.81 MB / 0.6333 GB, free: 12.27 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0103/0.4447, allocations: 3.519 MB / 0.6367 GB, free: 8.738 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003617/0.4484, allocations: 24 kB / 0.6367 GB, free: 8.715 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002677/0.4511, allocations: 0.5693 MB / 0.6373 GB, free: 8.137 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00651/0.4577, allocations: 1.451 MB / 0.6387 GB, free: 6.688 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00478/0.4625, allocations: 1.523 MB / 0.6402 GB, free: 5.184 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.007181/0.4697, allocations: 3.804 MB / 0.6439 GB, free: 1.363 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002391/0.4721, allocations: 0.9063 MB / 0.6448 GB, free: 416 kB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003343/0.4755, allocations: 1.552 MB / 0.6463 GB, free: 14.85 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003649/0.4792, allocations: 2.007 MB / 0.6483 GB, free: 12.83 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001691/0.4809, allocations: 296 kB / 0.6485 GB, free: 12.54 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00213/0.483, allocations: 443.8 kB / 0.649 GB, free: 12.11 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001437/0.4845, allocations: 0.778 MB / 0.6497 GB, free: 11.33 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003289/0.4878, allocations: 1.658 MB / 0.6514 GB, free: 9.66 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007494/0.4953, allocations: 4.072 MB / 0.6553 GB, free: 5.574 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.005e-06/0.4954, allocations: 0 / 0.6553 GB, free: 5.574 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.4954, allocations: 4 kB / 0.6553 GB, free: 5.57 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0001763/0.4956, allocations: 0 / 0.6553 GB, free: 5.57 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: 525 * Number of variables: 525 Notification: Performance of Generate backend data structure: time 0.0255/0.5211, allocations: 6.779 MB / 0.662 GB, free: 14.69 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.447e-05/0.5212, allocations: 8.031 kB / 0.662 GB, free: 14.68 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000474/0.5216, allocations: 311.3 kB / 0.6623 GB, free: 14.37 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01555/0.5372, allocations: 2.296 MB / 0.6645 GB, free: 12.07 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004884/0.5421, allocations: 1.932 MB / 0.6664 GB, free: 10.07 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000939/0.5431, allocations: 0.7292 MB / 0.6671 GB, free: 9.227 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009304/0.5441, allocations: 216 kB / 0.6673 GB, free: 9.016 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007518/0.5516, allocations: 3.051 MB / 0.6703 GB, free: 5.887 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.364e-05/0.5517, allocations: 7.938 kB / 0.6703 GB, free: 5.879 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002652/0.5519, allocations: 80 kB / 0.6704 GB, free: 5.801 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-05/0.552, allocations: 52 kB / 0.6704 GB, free: 5.75 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006607/0.5586, allocations: 2.8 MB / 0.6732 GB, free: 2.934 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.02309/0.5817, allocations: 9.914 MB / 0.6828 GB, free: 8.598 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01235/0.5941, allocations: 4.227 MB / 0.687 GB, free: 4.234 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005142/0.5993, allocations: 1.983 MB / 0.6889 GB, free: 2.246 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004077/0.5998, allocations: 41.95 kB / 0.6889 GB, free: 2.203 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005975/0.6058, allocations: 2.252 MB / 0.6911 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=250): time 9.397e-06/0.6058, allocations: 4 kB / 0.6911 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of matching and sorting (n=250): time 0.1345/0.7403, allocations: 28.83 MB / 0.7193 GB, free: 2.973 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001576/0.7405, allocations: 180.2 kB / 0.7195 GB, free: 2.762 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005531/0.7461, allocations: 2.333 MB / 0.7217 GB, free: 420 kB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0009701/0.7471, allocations: 73.69 kB / 0.7218 GB, free: 340 kB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.001555/0.7487, allocations: 1.197 MB / 0.723 GB, free: 15.12 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.00199/0.7507, allocations: 0.9257 MB / 0.7239 GB, free: 14.19 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002365/0.7531, allocations: 0.5739 MB / 0.7245 GB, free: 13.61 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001581/0.7532, allocations: 301.1 kB / 0.7247 GB, free: 13.31 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005076/0.7583, allocations: 1.99 MB / 0.7267 GB, free: 11.32 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005699/0.764, allocations: 2.358 MB / 0.729 GB, free: 8.871 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0629/0.827, allocations: 14.37 MB / 0.743 GB, free: 10.27 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.56e-05/0.8271, allocations: 4 kB / 0.743 GB, free: 10.27 MB / 0.545 GB Notification: Performance of matching and sorting (n=425) (initialization): time 0.0505/0.8776, allocations: 12.62 MB / 0.7554 GB, free: 13.57 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001397/0.8778, allocations: 114.8 kB / 0.7555 GB, free: 13.44 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.775e-05/0.8778, allocations: 8 kB / 0.7555 GB, free: 13.43 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02185/0.8997, allocations: 5.434 MB / 0.7608 GB, free: 7.988 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003476/0.9032, allocations: 0.5812 MB / 0.7613 GB, free: 7.406 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3908/1.294, allocations: 23.67 MB / 0.7845 GB, free: 120.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004879/1.299, allocations: 0.497 MB / 0.7849 GB, free: 120.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007084/1.3, allocations: 115.7 kB / 0.7851 GB, free: 120.6 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 Syn2.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 (336): * Single equations (assignments): 331 * 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,27)} Notification: Performance of prepare postOptimizeDAE: time 0.001479/1.301, allocations: 0.5326 MB / 0.7856 GB, free: 120.2 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008402/1.302, allocations: 314.4 kB / 0.7859 GB, free: 120.2 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03893/1.341, allocations: 11.95 MB / 0.7975 GB, free: 117.7 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.434e-05/1.341, allocations: 23.16 kB / 0.7976 GB, free: 117.7 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.527e-05/1.341, allocations: 22.41 kB / 0.7976 GB, free: 117.7 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.643e-05/1.341, allocations: 15.28 kB / 0.7976 GB, free: 117.7 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.04397/1.385, allocations: 15.58 MB / 0.8128 GB, free: 105.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-05/1.385, allocations: 4 kB / 0.8128 GB, free: 105.7 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001642/1.387, allocations: 247.6 kB / 0.8131 GB, free: 105.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01731/1.404, allocations: 5.279 MB / 0.8182 GB, free: 100.2 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007161/1.405, allocations: 51.98 kB / 0.8183 GB, free: 100.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05588/1.461, allocations: 24.97 MB / 0.8426 GB, free: 74.75 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.439e-06/1.461, allocations: 3.938 kB / 0.8427 GB, free: 74.74 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04359/1.505, allocations: 14.36 MB / 0.8567 GB, free: 60.27 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00102/1.506, allocations: 436.1 kB / 0.8571 GB, free: 59.86 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009056/1.507, allocations: 48 kB / 0.8571 GB, free: 59.81 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003458/1.51, allocations: 303.6 kB / 0.8574 GB, free: 59.52 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002326/1.512, allocations: 0.5763 MB / 0.858 GB, free: 58.94 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003505/1.513, allocations: 67.98 kB / 0.8581 GB, free: 58.87 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002258/1.515, allocations: 1.547 MB / 0.8596 GB, free: 57.32 MB / 0.5606 GB Notification: Performance of sort global known variables: time 5.81e-07/1.515, allocations: 0 / 0.8596 GB, free: 57.32 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004462/1.519, allocations: 1.198 MB / 0.8607 GB, free: 56.16 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 19 (order3_2.delta,order3_2.w,order3_2.e1q,order2.delta,order2.w,Syn2.delta,Syn2.w,Syn2.e1q,Syn2.e1d,Syn2.e2q,Syn2.e2d,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 (159): * Single equations (assignments): 154 * 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.04349/1.563, allocations: 14.98 MB / 0.8754 GB, free: 41.04 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01945/1.582, allocations: 6.808 MB / 0.882 GB, free: 34.14 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.765e-06/1.582, allocations: 0 / 0.882 GB, free: 34.14 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01349/1.596, allocations: 4.457 MB / 0.8864 GB, free: 29.62 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002572/1.599, allocations: 273.4 kB / 0.8866 GB, free: 29.36 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1168/1.715, allocations: 42.25 MB / 0.9279 GB, free: 2.691 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001855/1.717, allocations: 1.815 MB / 0.9297 GB, free: 0.8477 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001388/1.719, allocations: 258.8 kB / 0.9299 GB, free: 0.5938 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002073/1.721, allocations: 1.257 MB / 0.9311 GB, free: 15.37 MB / 0.5919 GB Notification: Performance of SimCode: time 1.493e-06/1.721, allocations: 4 kB / 0.9311 GB, free: 15.36 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1849/1.906, allocations: 91.04 MB / 1.02 GB, free: 4.512 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.96/21.87, allocations: 8.062 kB / 1.02 GB, free: 4.504 MB / 0.67 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII.sim & python3 -m fmpy simulate --output-file OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.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_ThreeArea_SixthOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII.pipe 2>&1)