Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.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.ThreeArea.FifthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_FifthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_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.00952/0.00952, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.591/1.591, allocations: 222.9 MB / 239.4 MB, free: 4.551 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.002309/0.002309, allocations: 188.5 kB / 289.7 MB, free: 2.266 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.516/0.516, allocations: 78.54 MB / 418.4 MB, free: 3.145 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002298/0.002298, allocations: 79.88 kB / 0.5532 GB, free: 1.422 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3977/0.4001, allocations: 68.17 MB / 0.6198 GB, free: 9.449 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII): time 0.01144/0.4115, allocations: 13.77 MB / 0.6332 GB, free: 12.33 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.009423/0.421, allocations: 3.503 MB / 0.6366 GB, free: 8.82 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003761/0.4248, allocations: 24 kB / 0.6367 GB, free: 8.797 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002527/0.4274, allocations: 0.5615 MB / 0.6372 GB, free: 8.227 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006997/0.4344, allocations: 1.445 MB / 0.6386 GB, free: 6.781 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004659/0.4391, allocations: 1.508 MB / 0.6401 GB, free: 5.293 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.00716/0.4463, allocations: 3.777 MB / 0.6438 GB, free: 1.5 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002321/0.4486, allocations: 0.9086 MB / 0.6447 GB, free: 0.543 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003265/0.4519, allocations: 1.54 MB / 0.6462 GB, free: 15 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003752/0.4557, allocations: 1.991 MB / 0.6481 GB, free: 13 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001328/0.4571, allocations: 292 kB / 0.6484 GB, free: 12.71 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001957/0.459, allocations: 439.9 kB / 0.6488 GB, free: 12.28 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001556/0.4606, allocations: 0.7701 MB / 0.6496 GB, free: 11.51 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003402/0.464, allocations: 1.65 MB / 0.6512 GB, free: 9.848 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007713/0.4718, allocations: 4.042 MB / 0.6551 GB, free: 5.789 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.361e-06/0.4718, allocations: 4 kB / 0.6551 GB, free: 5.785 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.4718, allocations: 4 kB / 0.6551 GB, free: 5.781 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0001942/0.472, allocations: 0 / 0.6551 GB, free: 5.781 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: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.02892/0.5009, allocations: 6.74 MB / 0.6617 GB, free: 14.94 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.106e-05/0.501, allocations: 16.03 kB / 0.6617 GB, free: 14.93 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001296/0.5023, allocations: 299.3 kB / 0.662 GB, free: 14.62 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01652/0.5189, allocations: 2.296 MB / 0.6643 GB, free: 12.32 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005884/0.5248, allocations: 1.924 MB / 0.6661 GB, free: 10.33 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001081/0.5259, allocations: 0.7253 MB / 0.6669 GB, free: 9.492 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001139/0.5271, allocations: 220 kB / 0.6671 GB, free: 9.277 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01036/0.5375, allocations: 3.043 MB / 0.67 GB, free: 6.156 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.11e-05/0.5376, allocations: 4 kB / 0.67 GB, free: 6.152 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006979/0.5383, allocations: 87.94 kB / 0.6701 GB, free: 6.066 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.402e-05/0.5384, allocations: 48 kB / 0.6702 GB, free: 6.02 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008536/0.5469, allocations: 2.8 MB / 0.6729 GB, free: 3.203 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.02637/0.5733, allocations: 9.874 MB / 0.6825 GB, free: 8.906 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01308/0.5864, allocations: 4.199 MB / 0.6866 GB, free: 4.578 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005264/0.5917, allocations: 1.979 MB / 0.6886 GB, free: 2.594 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005303/0.5923, allocations: 41.95 kB / 0.6886 GB, free: 2.551 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006545/0.5989, allocations: 2.248 MB / 0.6908 GB, free: 288 kB / 494.1 MB Notification: Performance of pre-optimization done (n=249): time 9.147e-06/0.5989, allocations: 3.984 kB / 0.6908 GB, free: 284 kB / 494.1 MB Notification: Performance of matching and sorting (n=249): time 0.1297/0.7286, allocations: 27.43 MB / 0.7176 GB, free: 4.723 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001501/0.7288, allocations: 184.2 kB / 0.7178 GB, free: 4.508 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005259/0.734, allocations: 2.317 MB / 0.72 GB, free: 2.172 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0007966/0.7349, allocations: 69.7 kB / 0.7201 GB, free: 2.098 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.001375/0.7362, allocations: 1.205 MB / 0.7213 GB, free: 0.8828 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001769/0.738, allocations: 0.9141 MB / 0.7222 GB, free: 15.96 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002748/0.7408, allocations: 0.5699 MB / 0.7227 GB, free: 15.38 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001634/0.741, allocations: 305.1 kB / 0.723 GB, free: 15.08 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005435/0.7464, allocations: 1.966 MB / 0.7249 GB, free: 13.11 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005858/0.7523, allocations: 2.342 MB / 0.7272 GB, free: 10.68 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.06279/0.8151, allocations: 14.24 MB / 0.7411 GB, free: 12.21 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.018e-05/0.8152, allocations: 7.938 kB / 0.7412 GB, free: 12.2 MB / 0.545 GB Notification: Performance of matching and sorting (n=421) (initialization): time 0.04899/0.8642, allocations: 12.56 MB / 0.7534 GB, free: 15.57 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001429/0.8644, allocations: 114.8 kB / 0.7535 GB, free: 15.43 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.348e-05/0.8644, allocations: 11.94 kB / 0.7535 GB, free: 15.42 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02065/0.8851, allocations: 5.257 MB / 0.7587 GB, free: 10.16 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003592/0.8887, allocations: 0.5812 MB / 0.7592 GB, free: 9.578 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4048/1.294, allocations: 23.2 MB / 0.7819 GB, free: 120.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0047/1.298, allocations: 494.8 kB / 0.7824 GB, free: 120.9 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006094/1.299, allocations: 121.4 kB / 0.7825 GB, free: 120.9 MB / 0.5606 GB Warning: Assuming fixed start value for the following 7 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.delta:VARIABLE(flow=false start = Syn2.delta0 unit = "rad" fixed = true ) "Rotor angle" 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 (334): * Single equations (assignments): 329 * 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): 1 system {(63,25,8.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001646/1.301, allocations: 0.5316 MB / 0.783 GB, free: 120.5 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008799/1.302, allocations: 327.1 kB / 0.7833 GB, free: 120.4 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03863/1.34, allocations: 11.93 MB / 0.795 GB, free: 118 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.388e-05/1.34, allocations: 23.47 kB / 0.795 GB, free: 118 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-05/1.34, allocations: 24.61 kB / 0.795 GB, free: 118 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.258e-05/1.34, allocations: 11.58 kB / 0.795 GB, free: 118 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.04396/1.384, allocations: 15.56 MB / 0.8102 GB, free: 108.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.984e-05/1.384, allocations: 0 / 0.8102 GB, free: 108.2 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001656/1.386, allocations: 251.6 kB / 0.8105 GB, free: 108 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01724/1.403, allocations: 5.29 MB / 0.8156 GB, free: 102.7 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007728/1.404, allocations: 59.98 kB / 0.8157 GB, free: 102.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05922/1.463, allocations: 24.95 MB / 0.84 GB, free: 77.24 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.053e-06/1.463, allocations: 7.172 kB / 0.8401 GB, free: 77.24 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04531/1.509, allocations: 14.33 MB / 0.854 GB, free: 62.8 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001286/1.51, allocations: 429.8 kB / 0.8545 GB, free: 62.39 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001625/1.512, allocations: 51.98 kB / 0.8545 GB, free: 62.34 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004031/1.516, allocations: 299.6 kB / 0.8548 GB, free: 62.05 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00269/1.519, allocations: 0.5802 MB / 0.8554 GB, free: 61.46 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006496/1.519, allocations: 63.98 kB / 0.8554 GB, free: 61.4 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003036/1.522, allocations: 1.527 MB / 0.8569 GB, free: 59.87 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.71e-07/1.522, allocations: 0 / 0.8569 GB, free: 59.87 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.005379/1.528, allocations: 1.191 MB / 0.8581 GB, free: 58.71 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 18 (order3_2.delta,order3_2.w,order3_2.e1q,order2.delta,order2.w,Syn2.delta,Syn2.w,Syn2.e1q,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 (158): * Single equations (assignments): 153 * 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 {(67,21,7.5%)} * 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.04569/1.573, allocations: 14.97 MB / 0.8727 GB, free: 43.61 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01961/1.593, allocations: 6.661 MB / 0.8792 GB, free: 36.86 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.304e-06/1.593, allocations: 4.25 kB / 0.8792 GB, free: 36.86 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01418/1.607, allocations: 4.449 MB / 0.8836 GB, free: 32.33 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003832/1.611, allocations: 269.6 kB / 0.8838 GB, free: 32.07 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1234/1.735, allocations: 42.22 MB / 0.925 GB, free: 5.438 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002587/1.737, allocations: 1.815 MB / 0.9268 GB, free: 3.59 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001713/1.739, allocations: 262.6 kB / 0.9271 GB, free: 3.332 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002439/1.742, allocations: 1.241 MB / 0.9283 GB, free: 2.09 MB / 0.5762 GB Notification: Performance of SimCode: time 8.82e-07/1.742, allocations: 4 kB / 0.9283 GB, free: 2.086 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1923/1.934, allocations: 88.47 MB / 1.015 GB, free: 9.797 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.56/21.5, allocations: 9.625 kB / 1.015 GB, free: 9.793 MB / 0.67 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII.sim & python3 -m fmpy simulate --output-file OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.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_ThreeArea_FifthOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII.pipe 2>&1)