Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.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.ThreeArea.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_ThirdOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_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.001232/0.001233, 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.432/1.432, allocations: 222.9 MB / 239.2 MB, free: 4.648 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.001654/0.001654, allocations: 192.5 kB / 289.6 MB, free: 2.359 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.5315/0.5315, allocations: 78.54 MB / 418.3 MB, free: 3.23 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001736/0.001736, allocations: 87.88 kB / 497.6 MB, free: 6.359 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1715/0.1732, allocations: 68.18 MB / 0.5525 GB, free: 2.148 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII): time 0.2985/0.4718, allocations: 13.58 MB / 0.5657 GB, free: 31.44 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.00778/0.4796, allocations: 3.455 MB / 0.5691 GB, free: 30.36 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001905/0.4816, allocations: 28.97 kB / 0.5691 GB, free: 30.36 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001364/0.4829, allocations: 0.5537 MB / 0.5697 GB, free: 30.07 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00355/0.4866, allocations: 1.413 MB / 0.5711 GB, free: 29.35 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003018/0.4896, allocations: 1.512 MB / 0.5725 GB, free: 29.16 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.003831/0.4934, allocations: 3.694 MB / 0.5761 GB, free: 28.33 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00111/0.4945, allocations: 0.8979 MB / 0.577 GB, free: 28.12 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001966/0.4965, allocations: 1.522 MB / 0.5785 GB, free: 27.7 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001728/0.4983, allocations: 1.956 MB / 0.5804 GB, free: 27.17 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003985/0.4987, allocations: 284.6 kB / 0.5807 GB, free: 27.17 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008137/0.4995, allocations: 429 kB / 0.5811 GB, free: 27.16 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004816/0.5, allocations: 0.7681 MB / 0.5818 GB, free: 26.67 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001094/0.5011, allocations: 1.63 MB / 0.5834 GB, free: 25.55 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00302/0.5041, allocations: 3.919 MB / 0.5873 GB, free: 23.74 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.032e-06/0.5041, allocations: 2.062 kB / 0.5873 GB, free: 23.74 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.5041, allocations: 0 / 0.5873 GB, free: 23.74 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.533e-05/0.5042, allocations: 0 / 0.5873 GB, free: 23.74 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: 522 * Number of variables: 522 Notification: Performance of Generate backend data structure: time 0.02304/0.5272, allocations: 6.583 MB / 0.5937 GB, free: 21.11 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.161e-05/0.5273, allocations: 9.844 kB / 0.5937 GB, free: 21.11 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003712/0.5277, allocations: 302.9 kB / 0.594 GB, free: 20.93 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01441/0.5421, allocations: 2.269 MB / 0.5962 GB, free: 20.49 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003498/0.5456, allocations: 1.879 MB / 0.598 GB, free: 19.33 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006507/0.5463, allocations: 0.7231 MB / 0.5987 GB, free: 18.68 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000415/0.5467, allocations: 210.5 kB / 0.5989 GB, free: 18.61 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007387/0.5541, allocations: 3.035 MB / 0.6019 GB, free: 17.45 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.982e-05/0.5542, allocations: 0.6562 kB / 0.6019 GB, free: 17.45 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002544/0.5544, allocations: 87.05 kB / 0.602 GB, free: 17.39 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.936e-05/0.5545, allocations: 49.59 kB / 0.602 GB, free: 17.39 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006832/0.5613, allocations: 2.784 MB / 0.6048 GB, free: 16.45 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.02259/0.5839, allocations: 9.871 MB / 0.6144 GB, free: 10.95 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01201/0.596, allocations: 4.186 MB / 0.6185 GB, free: 8.945 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004068/0.6001, allocations: 1.967 MB / 0.6204 GB, free: 7.934 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002281/0.6004, allocations: 39.39 kB / 0.6204 GB, free: 7.922 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00416/0.6045, allocations: 2.238 MB / 0.6226 GB, free: 6.629 MB / 430.1 MB Notification: Performance of pre-optimization done (n=247): time 4.408e-06/0.6045, allocations: 0 / 0.6226 GB, free: 6.629 MB / 430.1 MB Notification: Performance of matching and sorting (n=247): time 0.1241/0.7287, allocations: 29.46 MB / 0.6514 GB, free: 9.211 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001432/0.7289, allocations: 186.6 kB / 0.6516 GB, free: 8.992 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005307/0.7342, allocations: 2.277 MB / 0.6538 GB, free: 6.695 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009852/0.7352, allocations: 73.77 kB / 0.6539 GB, free: 6.617 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001261/0.7365, allocations: 1.176 MB / 0.655 GB, free: 5.43 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001857/0.7384, allocations: 0.8665 MB / 0.6559 GB, free: 4.551 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00234/0.7407, allocations: 0.5539 MB / 0.6564 GB, free: 3.988 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001038/0.7408, allocations: 301.1 kB / 0.6567 GB, free: 3.691 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004704/0.7455, allocations: 1.954 MB / 0.6586 GB, free: 1.734 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004868/0.7504, allocations: 2.318 MB / 0.6609 GB, free: 15.33 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0548/0.8052, allocations: 14.05 MB / 0.6746 GB, free: 1.07 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.11e-05/0.8053, allocations: 3.938 kB / 0.6746 GB, free: 1.066 MB / 478.1 MB Notification: Performance of matching and sorting (n=413) (initialization): time 0.0431/0.8484, allocations: 12.28 MB / 0.6866 GB, free: 4.711 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001303/0.8486, allocations: 114.8 kB / 0.6867 GB, free: 4.574 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.013e-05/0.8486, allocations: 8 kB / 0.6867 GB, free: 4.566 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01935/0.868, allocations: 5.324 MB / 0.6919 GB, free: 15.24 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00321/0.8712, allocations: 0.5621 MB / 0.6925 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06736/0.9386, allocations: 23.51 MB / 0.7154 GB, free: 7.016 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006348/0.945, allocations: 489.1 kB / 0.7159 GB, free: 6.535 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001103/0.9461, allocations: 116 kB / 0.716 GB, free: 6.422 MB / 0.5137 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 order3_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 (325): * Single equations (assignments): 320 * 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,26)} Notification: Performance of prepare postOptimizeDAE: time 0.002982/0.9491, allocations: 0.5323 MB / 0.7165 GB, free: 5.871 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001659/0.9508, allocations: 300.3 kB / 0.7168 GB, free: 5.574 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04328/0.9941, allocations: 11.9 MB / 0.7284 GB, free: 9.629 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.92e-05/0.9942, allocations: 24 kB / 0.7284 GB, free: 9.605 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001022/0.9943, allocations: 20 kB / 0.7285 GB, free: 9.586 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001086/0.9944, allocations: 15.89 kB / 0.7285 GB, free: 9.57 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.05357/1.048, allocations: 15.49 MB / 0.7436 GB, free: 9.914 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.224e-05/1.048, allocations: 4 kB / 0.7436 GB, free: 9.91 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001757/1.05, allocations: 247.6 kB / 0.7438 GB, free: 9.668 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01925/1.069, allocations: 5.288 MB / 0.749 GB, free: 4.367 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009106/1.07, allocations: 51.98 kB / 0.7491 GB, free: 4.316 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.368/1.438, allocations: 24.96 MB / 0.7734 GB, free: 163.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.638e-06/1.438, allocations: 0 / 0.7734 GB, free: 163.5 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.045/1.483, allocations: 14.25 MB / 0.7874 GB, free: 163.1 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001282/1.485, allocations: 407.1 kB / 0.7877 GB, free: 163 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006251/1.485, allocations: 46.62 kB / 0.7878 GB, free: 163 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003001/1.488, allocations: 300.9 kB / 0.7881 GB, free: 163 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002131/1.49, allocations: 0.5837 MB / 0.7886 GB, free: 163 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002056/1.491, allocations: 65.06 kB / 0.7887 GB, free: 163 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002462/1.493, allocations: 1.508 MB / 0.7902 GB, free: 162.8 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.71e-07/1.493, allocations: 0 / 0.7902 GB, free: 162.8 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004652/1.498, allocations: 1.171 MB / 0.7913 GB, free: 162.8 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 16 (order3_2.delta,order3_2.w,order3_2.e1q,order2.delta,order2.w,order3_1.delta,order3_1.w,order3_1.e1q,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 (156): * Single equations (assignments): 151 * 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.05119/1.549, allocations: 14.9 MB / 0.8059 GB, free: 160.6 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.02266/1.572, allocations: 6.809 MB / 0.8125 GB, free: 158.3 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.997e-06/1.572, allocations: 0 / 0.8125 GB, free: 158.3 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01343/1.585, allocations: 4.402 MB / 0.8168 GB, free: 156.6 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00455/1.59, allocations: 264.7 kB / 0.8171 GB, free: 156.5 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1112/1.701, allocations: 45.51 MB / 0.8615 GB, free: 115.8 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001197/1.702, allocations: 1.802 MB / 0.8633 GB, free: 114 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001317/1.704, allocations: 262.1 kB / 0.8635 GB, free: 113.8 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001364/1.705, allocations: 1.236 MB / 0.8647 GB, free: 112.5 MB / 0.5606 GB Notification: Performance of SimCode: time 7.52e-07/1.705, allocations: 0 / 0.8647 GB, free: 112.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1403/1.845, allocations: 88.58 MB / 0.9512 GB, free: 24.41 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.78/16.63, allocations: 13.77 kB / 0.9513 GB, free: 24.4 MB / 0.5606 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.sim & python3 -m fmpy simulate --output-file OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.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_ThreeArea_ThirdOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe 2>&1)