Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_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.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_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.001529/0.001529, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.398/1.398, allocations: 222.9 MB / 239.3 MB, free: 4.602 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.001976/0.001976, allocations: 204.3 kB / 289.6 MB, free: 2.312 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4831/0.4831, allocations: 78.53 MB / 418.2 MB, free: 3.191 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001908/0.001909, allocations: 83.88 kB / 497.6 MB, free: 6.348 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1605/0.1625, allocations: 68.17 MB / 0.5525 GB, free: 2.141 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII): time 0.3112/0.4738, allocations: 13.67 MB / 0.5658 GB, free: 31.63 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.008376/0.4822, allocations: 3.459 MB / 0.5692 GB, free: 30.55 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003956/0.4862, allocations: 33.75 kB / 0.5692 GB, free: 30.54 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002324/0.4885, allocations: 0.5632 MB / 0.5698 GB, free: 30.25 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006658/0.4953, allocations: 1.415 MB / 0.5712 GB, free: 29.53 MB / 430.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/Electrical/Machines/PSAT/Order4.mo:25:3-30:9:writable] Warning: In relation order4_1.xq <> order4_1.x1q, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.004341/0.4996, allocations: 1.511 MB / 0.5726 GB, free: 29.34 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.006037/0.5057, allocations: 3.698 MB / 0.5762 GB, free: 28.5 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001567/0.5073, allocations: 0.9019 MB / 0.5771 GB, free: 28.3 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002747/0.51, allocations: 1.517 MB / 0.5786 GB, free: 27.88 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003137/0.5132, allocations: 1.958 MB / 0.5805 GB, free: 27.35 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009717/0.5141, allocations: 282 kB / 0.5808 GB, free: 27.35 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001368/0.5155, allocations: 432.2 kB / 0.5812 GB, free: 27.32 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006025/0.5161, allocations: 0.759 MB / 0.5819 GB, free: 26.82 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00155/0.5177, allocations: 1.638 MB / 0.5835 GB, free: 25.7 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004686/0.5224, allocations: 3.924 MB / 0.5874 GB, free: 23.88 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.134e-06/0.5224, allocations: 0.9375 kB / 0.5874 GB, free: 23.88 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.5224, allocations: 0 / 0.5874 GB, free: 23.88 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001184/0.5226, allocations: 0 / 0.5874 GB, free: 23.88 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 523 * Number of variables: 523 Notification: Performance of Generate backend data structure: time 0.0249/0.5475, allocations: 6.567 MB / 0.5938 GB, free: 21.27 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.798e-05/0.5475, allocations: 9.406 kB / 0.5938 GB, free: 21.27 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005028/0.5481, allocations: 307.6 kB / 0.5941 GB, free: 21.07 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01522/0.5633, allocations: 2.276 MB / 0.5963 GB, free: 20.63 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004942/0.5683, allocations: 1.871 MB / 0.5981 GB, free: 19.47 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007593/0.5691, allocations: 0.7252 MB / 0.5988 GB, free: 18.82 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007862/0.5699, allocations: 214.5 kB / 0.5991 GB, free: 18.75 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007156/0.577, allocations: 3.034 MB / 0.602 GB, free: 17.6 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.495e-05/0.5771, allocations: 1.891 kB / 0.602 GB, free: 17.6 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002607/0.5774, allocations: 91.3 kB / 0.6021 GB, free: 17.53 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.091e-05/0.5774, allocations: 48.97 kB / 0.6022 GB, free: 17.53 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006519/0.584, allocations: 2.789 MB / 0.6049 GB, free: 16.58 MB / 430.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.02196/0.606, allocations: 9.892 MB / 0.6145 GB, free: 11.07 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0113/0.6173, allocations: 4.185 MB / 0.6186 GB, free: 9.074 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00444/0.6218, allocations: 1.968 MB / 0.6205 GB, free: 8.062 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003072/0.6221, allocations: 40.03 kB / 0.6206 GB, free: 8.051 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004669/0.6268, allocations: 2.237 MB / 0.6228 GB, free: 6.629 MB / 430.1 MB Notification: Performance of pre-optimization done (n=248): time 4.769e-06/0.6268, allocations: 0 / 0.6228 GB, free: 6.629 MB / 430.1 MB Notification: Performance of matching and sorting (n=248): time 0.1159/0.7427, allocations: 27.31 MB / 0.6494 GB, free: 11.2 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001622/0.7429, allocations: 184.2 kB / 0.6496 GB, free: 10.98 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005057/0.748, allocations: 2.273 MB / 0.6518 GB, free: 8.691 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009153/0.749, allocations: 73.69 kB / 0.6519 GB, free: 8.613 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001178/0.7501, allocations: 1.164 MB / 0.653 GB, free: 7.438 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001693/0.7519, allocations: 0.8665 MB / 0.6539 GB, free: 6.559 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002711/0.7546, allocations: 0.5618 MB / 0.6544 GB, free: 5.988 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000112/0.7547, allocations: 301.1 kB / 0.6547 GB, free: 5.691 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00512/0.7598, allocations: 1.955 MB / 0.6566 GB, free: 3.734 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005401/0.7653, allocations: 2.329 MB / 0.6589 GB, free: 1.316 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.05741/0.8227, allocations: 14.08 MB / 0.6726 GB, free: 3.016 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.168e-05/0.8228, allocations: 4.438 kB / 0.6727 GB, free: 3.012 MB / 478.1 MB Notification: Performance of matching and sorting (n=417) (initialization): time 0.04608/0.8689, allocations: 12.5 MB / 0.6849 GB, free: 6.438 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001248/0.869, allocations: 110.8 kB / 0.685 GB, free: 6.305 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.657e-05/0.8691, allocations: 8 kB / 0.685 GB, free: 6.297 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01898/0.8881, allocations: 5.298 MB / 0.6902 GB, free: 0.9961 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003171/0.8913, allocations: 0.5705 MB / 0.6907 GB, free: 436 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06518/0.9565, allocations: 23.21 MB / 0.7134 GB, free: 9.051 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005379/0.9619, allocations: 485.6 kB / 0.7138 GB, free: 8.574 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009614/0.9629, allocations: 119.9 kB / 0.7139 GB, free: 8.457 MB / 0.5137 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 order4_1.delta:VARIABLE(flow=false start = order4_1.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order4_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 (330): * Single equations (assignments): 325 * 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.002556/0.9655, allocations: 0.5316 MB / 0.7145 GB, free: 7.906 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001473/0.967, allocations: 296.3 kB / 0.7148 GB, free: 7.613 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04245/1.009, allocations: 11.91 MB / 0.7264 GB, free: 11.66 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.361e-05/1.01, allocations: 24 kB / 0.7264 GB, free: 11.64 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.296e-05/1.01, allocations: 20.56 kB / 0.7264 GB, free: 11.62 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.347e-05/1.01, allocations: 15.95 kB / 0.7264 GB, free: 11.6 MB / 0.5294 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.05092/1.061, allocations: 15.5 MB / 0.7416 GB, free: 11.93 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.001e-05/1.061, allocations: 1 kB / 0.7416 GB, free: 11.93 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001705/1.062, allocations: 247.6 kB / 0.7418 GB, free: 11.69 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01882/1.081, allocations: 5.26 MB / 0.7469 GB, free: 6.418 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008511/1.082, allocations: 49.69 kB / 0.747 GB, free: 6.371 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.336/1.418, allocations: 24.96 MB / 0.7714 GB, free: 165.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.52e-06/1.418, allocations: 6.047 kB / 0.7714 GB, free: 165.5 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04489/1.463, allocations: 14.26 MB / 0.7853 GB, free: 165 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001205/1.464, allocations: 407.4 kB / 0.7857 GB, free: 164.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009311/1.465, allocations: 52.34 kB / 0.7857 GB, free: 164.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003455/1.469, allocations: 296.9 kB / 0.786 GB, free: 164.9 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002242/1.471, allocations: 0.5844 MB / 0.7866 GB, free: 164.9 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003468/1.471, allocations: 72.02 kB / 0.7867 GB, free: 164.9 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002618/1.474, allocations: 1.496 MB / 0.7881 GB, free: 164.8 MB / 0.5606 GB Notification: Performance of sort global known variables: time 4.2e-07/1.474, allocations: 3.875 kB / 0.7881 GB, free: 164.8 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004635/1.479, allocations: 1.177 MB / 0.7893 GB, free: 164.8 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 17 (order3_2.delta,order3_2.w,order3_2.e1q,order2.delta,order2.w,order4_1.delta,order4_1.w,order4_1.e1q,order4_1.e1d,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 (157): * Single equations (assignments): 152 * 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 {(65,23,7.8%)} * 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.04868/1.527, allocations: 14.9 MB / 0.8038 GB, free: 162.8 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.02253/1.55, allocations: 6.734 MB / 0.8104 GB, free: 160.4 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.125e-06/1.55, allocations: 1.938 kB / 0.8104 GB, free: 160.4 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01382/1.564, allocations: 4.4 MB / 0.8147 GB, free: 158.7 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003074/1.567, allocations: 265.5 kB / 0.815 GB, free: 158.6 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1069/1.674, allocations: 46.04 MB / 0.8599 GB, free: 117.5 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001254/1.675, allocations: 1.806 MB / 0.8617 GB, free: 115.7 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001472/1.677, allocations: 267.1 kB / 0.8619 GB, free: 115.4 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001599/1.678, allocations: 1.23 MB / 0.8631 GB, free: 114.2 MB / 0.5606 GB Notification: Performance of SimCode: time 1.203e-06/1.678, allocations: 0 / 0.8631 GB, free: 114.2 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1292/1.808, allocations: 86.73 MB / 0.9478 GB, free: 27.92 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.15/16.95, allocations: 12.05 kB / 0.9478 GB, free: 27.91 MB / 0.5606 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.sim & python3 -m fmpy simulate --output-file OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_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_FourthOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe 2>&1)