Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.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.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.TwoAreaOld.SixthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_SixthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_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.007039/0.007039, allocations: 95.38 kB / 15.73 MB, free: 6.051 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.48/1.48, 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.001903/0.001903, allocations: 184.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.1.0-master/package.mo): time 0.5659/0.5659, allocations: 91.9 MB / 431.8 MB, free: 9.207 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002178/0.002178, allocations: 83.92 kB / 0.5723 GB, free: 33.6 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1374/0.1396, allocations: 71.27 MB / 0.6419 GB, free: 4.102 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII): time 0.008213/0.1478, allocations: 6.721 MB / 0.6484 GB, free: 13.35 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.004516/0.1524, allocations: 2.021 MB / 0.6504 GB, free: 11.32 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000669/0.1531, allocations: 11.94 kB / 0.6504 GB, free: 11.31 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007458/0.1539, allocations: 242 kB / 0.6506 GB, free: 11.07 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00209/0.156, allocations: 0.8251 MB / 0.6515 GB, free: 10.25 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001375/0.1574, allocations: 0.6383 MB / 0.6521 GB, free: 9.617 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002003/0.1594, allocations: 1.679 MB / 0.6537 GB, free: 7.934 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005034/0.1599, allocations: 326.5 kB / 0.654 GB, free: 7.605 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009947/0.1609, allocations: 0.6924 MB / 0.6547 GB, free: 6.91 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001053/0.162, allocations: 0.8752 MB / 0.6556 GB, free: 6.031 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001981/0.1622, allocations: 132 kB / 0.6557 GB, free: 5.902 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005238/0.1627, allocations: 267.9 kB / 0.6559 GB, free: 5.641 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003269/0.1631, allocations: 350.5 kB / 0.6563 GB, free: 5.297 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006833/0.1637, allocations: 0.703 MB / 0.657 GB, free: 4.59 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002026/0.1658, allocations: 1.735 MB / 0.6587 GB, free: 2.848 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.1658, allocations: 0 / 0.6587 GB, free: 2.848 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1658, allocations: 0 / 0.6587 GB, free: 2.848 MB / 462.1 MB Notification: Performance of Transformations before backend: time 2.078e-05/0.1658, allocations: 4 kB / 0.6587 GB, free: 2.844 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: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.008954/0.1748, allocations: 2.819 MB / 0.6614 GB, free: 15.95 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.741e-05/0.1749, allocations: 12.03 kB / 0.6614 GB, free: 15.94 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001676/0.175, allocations: 126.7 kB / 0.6615 GB, free: 15.81 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004851/0.1799, allocations: 0.7835 MB / 0.6623 GB, free: 15.02 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00169/0.1816, allocations: 0.9384 MB / 0.6632 GB, free: 14.03 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003118/0.1819, allocations: 260.1 kB / 0.6635 GB, free: 13.74 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001877/0.1821, allocations: 87.95 kB / 0.6636 GB, free: 13.66 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002196/0.1843, allocations: 1.114 MB / 0.6646 GB, free: 12.53 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.954e-05/0.1843, allocations: 7.984 kB / 0.6646 GB, free: 12.52 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001006/0.1845, allocations: 32 kB / 0.6647 GB, free: 12.49 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.286e-05/0.1845, allocations: 20 kB / 0.6647 GB, free: 12.47 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002066/0.1866, allocations: 0.9995 MB / 0.6657 GB, free: 11.47 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.006908/0.1935, allocations: 3.903 MB / 0.6695 GB, free: 7.387 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007341/0.2008, allocations: 2.406 MB / 0.6718 GB, free: 4.883 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001413/0.2023, allocations: 0.6918 MB / 0.6725 GB, free: 4.188 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.932e-05/0.2024, allocations: 20.97 kB / 0.6725 GB, free: 4.168 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001665/0.204, allocations: 0.8372 MB / 0.6734 GB, free: 3.312 MB / 478.1 MB Notification: Performance of pre-optimization done (n=98): time 2.876e-06/0.2041, allocations: 4 kB / 0.6734 GB, free: 3.309 MB / 478.1 MB Notification: Performance of matching and sorting (n=98): time 0.02831/0.2324, allocations: 7.09 MB / 0.6803 GB, free: 12.15 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.643e-05/0.2325, allocations: 115.8 kB / 0.6804 GB, free: 12.02 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001962/0.2345, allocations: 1.139 MB / 0.6815 GB, free: 10.86 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002505/0.2348, allocations: 49.7 kB / 0.6815 GB, free: 10.81 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004826/0.2352, allocations: 0.5015 MB / 0.682 GB, free: 10.3 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005133/0.2358, allocations: 380.8 kB / 0.6824 GB, free: 9.926 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005896/0.2364, allocations: 303.5 kB / 0.6827 GB, free: 9.625 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001558/0.2365, allocations: 305.1 kB / 0.683 GB, free: 9.324 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001654/0.2382, allocations: 0.7965 MB / 0.6838 GB, free: 8.527 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001782/0.24, allocations: 0.9655 MB / 0.6847 GB, free: 7.523 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02507/0.2651, allocations: 5.93 MB / 0.6905 GB, free: 1.508 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.818e-06/0.2651, allocations: 0 / 0.6905 GB, free: 1.508 MB / 494.1 MB Notification: Performance of matching and sorting (n=204) (initialization): time 0.01416/0.2793, allocations: 4.513 MB / 0.6949 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.977e-05/0.2794, allocations: 63.39 kB / 0.695 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.841e-05/0.2795, allocations: 4 kB / 0.695 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006308/0.2858, allocations: 1.666 MB / 0.6966 GB, free: 11.22 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001601/0.2874, allocations: 295.6 kB / 0.6969 GB, free: 10.93 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02061/0.308, allocations: 8.621 MB / 0.7053 GB, free: 2.156 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002054/0.3101, allocations: 215.1 kB / 0.7055 GB, free: 1.945 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001387/0.3103, allocations: 59.97 kB / 0.7056 GB, free: 1.887 MB / 0.4981 GB Warning: Assuming fixed start value for the following 4 variables: order6.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order2.delta:VARIABLE(flow=false start = order2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order6.delta:VARIABLE(flow=false start = order6.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (171): * Single equations (assignments): 168 * Array equations: 0 * Algorithm blocks: 2 * 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 {(20,14,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006858/0.311, allocations: 308.1 kB / 0.7058 GB, free: 1.566 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002331/0.3112, allocations: 131.2 kB / 0.706 GB, free: 1.438 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0126/0.3238, allocations: 3.924 MB / 0.7098 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.879e-05/0.3239, allocations: 12 kB / 0.7098 GB, free: 13.47 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.595e-05/0.3239, allocations: 4 kB / 0.7098 GB, free: 13.47 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.109e-05/0.3239, allocations: 7.969 kB / 0.7098 GB, free: 13.46 MB / 0.5137 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.01522/0.3391, allocations: 5.554 MB / 0.7153 GB, free: 7.797 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.248e-05/0.3392, allocations: 4 kB / 0.7153 GB, free: 7.793 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007203/0.3399, allocations: 103.9 kB / 0.7154 GB, free: 7.691 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005455/0.3454, allocations: 1.603 MB / 0.7169 GB, free: 6.082 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001333/0.3455, allocations: 24 kB / 0.7169 GB, free: 6.059 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02037/0.3659, allocations: 9.637 MB / 0.7264 GB, free: 12.14 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.293e-06/0.3659, allocations: 3.984 kB / 0.7264 GB, free: 12.13 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01466/0.3806, allocations: 4.81 MB / 0.7311 GB, free: 7.289 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005463/0.3812, allocations: 236 kB / 0.7313 GB, free: 7.039 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001808/0.3814, allocations: 20 kB / 0.7313 GB, free: 7.02 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001227/0.3826, allocations: 111.9 kB / 0.7314 GB, free: 6.91 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006472/0.3833, allocations: 192.7 kB / 0.7316 GB, free: 6.723 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.847e-05/0.3834, allocations: 27.98 kB / 0.7316 GB, free: 6.695 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001245/0.3846, allocations: 0.7713 MB / 0.7324 GB, free: 5.918 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3846, allocations: 0 / 0.7324 GB, free: 5.918 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001533/0.3862, allocations: 499.6 kB / 0.7328 GB, free: 5.43 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 12 (order2.delta,order2.w,order6.delta,order6.w,order6.e1q,order6.e1d,order6.e2q,order6.e2d,aVRTypeII.ExcitationSystem.x_scaled[1],aVRTypeII.derivativeBlock.x,aVRTypeII.firstOrder2.y,aVRTypeII.simpleLagLim.state) * Number of discrete variables: 2 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (66): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(20,12,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01475/0.4009, allocations: 5.41 MB / 0.7381 GB, free: 15.97 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.00686/0.4078, allocations: 2.629 MB / 0.7407 GB, free: 13.3 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.568e-06/0.4079, allocations: 0 / 0.7407 GB, free: 13.3 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004474/0.4124, allocations: 1.626 MB / 0.7423 GB, free: 11.64 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001184/0.4136, allocations: 114.8 kB / 0.7424 GB, free: 11.53 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04054/0.4541, allocations: 16.81 MB / 0.7588 GB, free: 10.48 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00086/0.455, allocations: 1.128 MB / 0.7599 GB, free: 9.324 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0005581/0.4556, allocations: 116.3 kB / 0.76 GB, free: 9.207 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007502/0.4563, allocations: 499.3 kB / 0.7605 GB, free: 8.719 MB / 0.5606 GB Notification: Performance of SimCode: time 1.012e-06/0.4563, allocations: 0 / 0.7605 GB, free: 8.719 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4033/0.8596, allocations: 35.58 MB / 0.7952 GB, free: 106.8 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.27/16.13, allocations: 11.44 kB / 0.7953 GB, free: 106.8 MB / 0.5606 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.sim & python3 -m fmpy simulate --output-file OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.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_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_SixthOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.pipe 2>&1)