Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_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.1.0-master/package.mo", uses=false) Using package OpenIPSL with version 3.1.0-dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_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.001245/0.001245, allocations: 108 kB / 15.6 MB, free: 132 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.402/1.402, allocations: 222.9 MB / 239.2 MB, free: 4.574 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.001389/0.001389, allocations: 188.5 kB / 289.6 MB, free: 2.305 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5405/0.5405, allocations: 91.91 MB / 431.6 MB, free: 9.242 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00156/0.00156, allocations: 83.88 kB / 0.502 GB, free: 7.609 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.464/0.4656, allocations: 71.27 MB / 0.5716 GB, free: 36.73 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII): time 0.01038/0.476, allocations: 13.71 MB / 0.585 GB, free: 27.65 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.007296/0.4833, allocations: 3.478 MB / 0.5884 GB, free: 25.15 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002067/0.4854, allocations: 31.5 kB / 0.5884 GB, free: 25.15 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00143/0.4869, allocations: 0.5587 MB / 0.5889 GB, free: 24.84 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004104/0.491, allocations: 1.413 MB / 0.5903 GB, free: 23.88 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003146/0.4942, allocations: 1.516 MB / 0.5918 GB, free: 23.12 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.005379/0.4996, allocations: 3.702 MB / 0.5954 GB, free: 21.25 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001303/0.5009, allocations: 0.8907 MB / 0.5963 GB, free: 20.79 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002515/0.5034, allocations: 1.528 MB / 0.5978 GB, free: 20.01 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002217/0.5057, allocations: 1.956 MB / 0.5997 GB, free: 19.05 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006023/0.5063, allocations: 284.5 kB / 0.6 GB, free: 19.05 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001108/0.5074, allocations: 429.2 kB / 0.6004 GB, free: 19 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005535/0.5079, allocations: 0.7567 MB / 0.6011 GB, free: 18.5 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001484/0.5094, allocations: 1.637 MB / 0.6027 GB, free: 17.38 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004462/0.5139, allocations: 3.916 MB / 0.6065 GB, free: 15.57 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.5139, allocations: 0.5156 kB / 0.6065 GB, free: 15.57 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.5139, allocations: 4 kB / 0.6065 GB, free: 15.57 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001097/0.5141, allocations: 1 kB / 0.6065 GB, free: 15.57 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.02594/0.54, allocations: 6.583 MB / 0.613 GB, free: 12.93 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.513e-05/0.5401, allocations: 9.156 kB / 0.613 GB, free: 12.93 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004602/0.5405, allocations: 304 kB / 0.6133 GB, free: 12.74 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0155/0.556, allocations: 2.273 MB / 0.6155 GB, free: 12.3 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004519/0.5606, allocations: 1.87 MB / 0.6173 GB, free: 11.15 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007218/0.5613, allocations: 0.7199 MB / 0.618 GB, free: 10.5 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005408/0.5619, allocations: 222.7 kB / 0.6182 GB, free: 10.42 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007012/0.5689, allocations: 3.034 MB / 0.6212 GB, free: 9.27 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.601e-05/0.569, allocations: 0 / 0.6212 GB, free: 9.27 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00026/0.5692, allocations: 86.53 kB / 0.6213 GB, free: 9.203 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.197e-05/0.5693, allocations: 49.91 kB / 0.6213 GB, free: 9.203 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006396/0.5757, allocations: 2.79 MB / 0.624 GB, free: 8.09 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.01834/0.594, allocations: 9.912 MB / 0.6337 GB, free: 14.18 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01126/0.6053, allocations: 4.188 MB / 0.6378 GB, free: 9.855 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004792/0.6102, allocations: 1.975 MB / 0.6397 GB, free: 7.871 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003945/0.6106, allocations: 37.95 kB / 0.6398 GB, free: 7.836 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005542/0.6161, allocations: 2.228 MB / 0.642 GB, free: 5.586 MB / 446.1 MB Notification: Performance of pre-optimization done (n=248): time 6.442e-06/0.6162, allocations: 0 / 0.642 GB, free: 5.586 MB / 446.1 MB Notification: Performance of matching and sorting (n=248): time 0.125/0.7412, allocations: 28.18 MB / 0.6695 GB, free: 9.273 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000147/0.7414, allocations: 184.2 kB / 0.6696 GB, free: 9.055 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005345/0.7467, allocations: 2.277 MB / 0.6719 GB, free: 6.758 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009888/0.7478, allocations: 69.7 kB / 0.6719 GB, free: 6.684 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001015/0.7488, allocations: 1.16 MB / 0.6731 GB, free: 5.512 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001473/0.7503, allocations: 0.8704 MB / 0.6739 GB, free: 4.629 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001253/0.7515, allocations: 0.5579 MB / 0.6745 GB, free: 4.062 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001146/0.7517, allocations: 305.1 kB / 0.6748 GB, free: 3.762 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004577/0.7562, allocations: 1.958 MB / 0.6767 GB, free: 1.801 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004799/0.7611, allocations: 2.322 MB / 0.6789 GB, free: 15.39 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.05617/0.8173, allocations: 14.08 MB / 0.6927 GB, free: 1.074 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-05/0.8173, allocations: 7.938 kB / 0.6927 GB, free: 1.066 MB / 494.1 MB Notification: Performance of matching and sorting (n=417) (initialization): time 0.04358/0.8609, allocations: 12.49 MB / 0.7049 GB, free: 4.508 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001461/0.8611, allocations: 124.8 kB / 0.705 GB, free: 4.363 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.46e-05/0.8612, allocations: 4 kB / 0.705 GB, free: 4.359 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01848/0.8796, allocations: 5.3 MB / 0.7102 GB, free: 15.05 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003224/0.8829, allocations: 0.5656 MB / 0.7107 GB, free: 14.49 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06564/0.9486, allocations: 23.2 MB / 0.7334 GB, free: 7.117 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005386/0.954, allocations: 489.1 kB / 0.7339 GB, free: 6.637 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009209/0.955, allocations: 116 kB / 0.734 GB, free: 6.523 MB / 0.5294 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.002454/0.9574, allocations: 0.5253 MB / 0.7345 GB, free: 5.98 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001403/0.9589, allocations: 304.2 kB / 0.7348 GB, free: 5.68 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04446/1.003, allocations: 11.9 MB / 0.7464 GB, free: 9.73 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.167e-05/1.003, allocations: 24 kB / 0.7464 GB, free: 9.707 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.511e-05/1.004, allocations: 28 kB / 0.7464 GB, free: 9.68 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.889e-05/1.004, allocations: 11.95 kB / 0.7465 GB, free: 9.668 MB / 0.545 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.05132/1.055, allocations: 15.51 MB / 0.7616 GB, free: 9.996 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.838e-05/1.055, allocations: 4 kB / 0.7616 GB, free: 9.992 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001798/1.057, allocations: 247.6 kB / 0.7618 GB, free: 9.75 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0196/1.076, allocations: 5.255 MB / 0.767 GB, free: 4.477 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008529/1.077, allocations: 55.98 kB / 0.767 GB, free: 4.422 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3385/1.416, allocations: 24.95 MB / 0.7914 GB, free: 158.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/1.416, allocations: 0 / 0.7914 GB, free: 158.7 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05018/1.466, allocations: 14.27 MB / 0.8053 GB, free: 155.1 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001391/1.467, allocations: 407.9 kB / 0.8057 GB, free: 154.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001054/1.469, allocations: 44.62 kB / 0.8058 GB, free: 154.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003404/1.472, allocations: 297.6 kB / 0.806 GB, free: 154.8 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002254/1.474, allocations: 0.5883 MB / 0.8066 GB, free: 154.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003297/1.475, allocations: 64.28 kB / 0.8067 GB, free: 154.6 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002713/1.477, allocations: 1.503 MB / 0.8081 GB, free: 154 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.193e-06/1.477, allocations: 1.25 kB / 0.8081 GB, free: 154 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.005727/1.483, allocations: 1.175 MB / 0.8093 GB, free: 153.9 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.04429/1.527, allocations: 14.9 MB / 0.8239 GB, free: 146.3 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.02054/1.548, allocations: 6.729 MB / 0.8304 GB, free: 139.5 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.743e-06/1.548, allocations: 0 / 0.8304 GB, free: 139.5 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01339/1.561, allocations: 4.393 MB / 0.8347 GB, free: 135.1 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003115/1.565, allocations: 279.2 kB / 0.835 GB, free: 134.8 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1078/1.672, allocations: 46.02 MB / 0.8799 GB, free: 87.06 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001136/1.674, allocations: 1.81 MB / 0.8817 GB, free: 85.22 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001335/1.675, allocations: 266.5 kB / 0.8819 GB, free: 84.96 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001348/1.676, allocations: 1.226 MB / 0.8831 GB, free: 83.74 MB / 0.5606 GB Notification: Performance of SimCode: time 1.082e-06/1.676, allocations: 0 / 0.8831 GB, free: 83.74 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1315/1.808, allocations: 86.73 MB / 0.9678 GB, free: 13.24 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.58/16.39, allocations: 10.12 kB / 0.9678 GB, free: 13.23 MB / 0.5762 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.sim & python3 -m fmpy simulate --output-file OpenIPSL_dev_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_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe 2>&1)