Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001544/0.001544, allocations: 109.1 kB / 18.94 MB, free: 2.797 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.471/1.471, allocations: 230.6 MB / 252.6 MB, free: 8.312 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001553/0.001553, allocations: 215.9 kB / 309.2 MB, free: 3.152 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4434/0.4434, allocations: 79.75 MB / 445.4 MB, free: 14.84 MB / 318.1 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: OpenIPSL requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: OpenIPSL requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002426/0.002426, allocations: 85.59 kB / 0.5929 GB, free: 13.95 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1491/0.1515, allocations: 73.3 MB / 0.6645 GB, free: 4.547 MB / 462.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.007933/0.1595, allocations: 6.624 MB / 0.671 GB, free: 13.89 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.004468/0.1639, allocations: 2.033 MB / 0.673 GB, free: 11.86 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007476/0.1647, allocations: 12 kB / 0.673 GB, free: 11.85 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008219/0.1655, allocations: 238 kB / 0.6732 GB, free: 11.61 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002311/0.1678, allocations: 0.8723 MB / 0.6741 GB, free: 10.74 MB / 478.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.xq <> order4.x1q, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.001476/0.1693, allocations: 0.6312 MB / 0.6747 GB, free: 10.12 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.002168/0.1714, allocations: 1.619 MB / 0.6763 GB, free: 8.492 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004486/0.1719, allocations: 226.9 kB / 0.6765 GB, free: 8.258 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001109/0.173, allocations: 0.6847 MB / 0.6771 GB, free: 7.57 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001095/0.1741, allocations: 0.844 MB / 0.678 GB, free: 6.723 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001961/0.1743, allocations: 120 kB / 0.6781 GB, free: 6.605 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006268/0.1749, allocations: 275.8 kB / 0.6783 GB, free: 6.336 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003259/0.1753, allocations: 334.6 kB / 0.6787 GB, free: 6.008 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006813/0.1759, allocations: 0.6718 MB / 0.6793 GB, free: 5.332 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002233/0.1782, allocations: 1.684 MB / 0.681 GB, free: 3.641 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.1782, allocations: 4 kB / 0.681 GB, free: 3.637 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.1782, allocations: 0 / 0.681 GB, free: 3.637 MB / 478.1 MB Notification: Performance of Transformations before backend: time 3.047e-05/0.1782, allocations: 3.938 kB / 0.681 GB, free: 3.633 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.00957/0.1878, allocations: 2.816 MB / 0.6837 GB, free: 0.7617 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.342e-05/0.1878, allocations: 15.98 kB / 0.6837 GB, free: 0.7461 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001663/0.188, allocations: 122.7 kB / 0.6839 GB, free: 0.6172 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004941/0.1929, allocations: 0.7953 MB / 0.6846 GB, free: 15.82 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001694/0.1946, allocations: 0.8267 MB / 0.6854 GB, free: 14.95 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003531/0.195, allocations: 341.2 kB / 0.6858 GB, free: 14.56 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001653/0.1951, allocations: 84 kB / 0.6858 GB, free: 14.48 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002136/0.1973, allocations: 1.09 MB / 0.6869 GB, free: 13.38 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.111e-05/0.1973, allocations: 0 / 0.6869 GB, free: 13.38 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.941e-05/0.1974, allocations: 28 kB / 0.6869 GB, free: 13.35 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.991e-05/0.1974, allocations: 20 kB / 0.687 GB, free: 13.33 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002081/0.1995, allocations: 0.9916 MB / 0.6879 GB, free: 12.33 MB / 494.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.006853/0.2063, allocations: 3.762 MB / 0.6916 GB, free: 8.402 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007381/0.2137, allocations: 2 MB / 0.6936 GB, free: 6.379 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001498/0.2152, allocations: 0.6203 MB / 0.6942 GB, free: 5.754 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001098/0.2153, allocations: 16.98 kB / 0.6942 GB, free: 5.738 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001686/0.217, allocations: 0.8255 MB / 0.695 GB, free: 4.895 MB / 494.1 MB Notification: Performance of pre-optimization done (n=96): time 3.216e-06/0.217, allocations: 0 / 0.695 GB, free: 4.895 MB / 494.1 MB Notification: Performance of matching and sorting (n=96): time 0.3702/0.5873, allocations: 6.887 MB / 0.7017 GB, free: 34.73 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.072e-05/0.5873, allocations: 121.9 kB / 0.7018 GB, free: 34.6 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001668/0.589, allocations: 1.084 MB / 0.7029 GB, free: 34.45 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002468/0.5892, allocations: 43.28 kB / 0.7029 GB, free: 34.42 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003364/0.5896, allocations: 0.4967 MB / 0.7034 GB, free: 34.34 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003851/0.59, allocations: 374.2 kB / 0.7038 GB, free: 34.21 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005185/0.5905, allocations: 293.4 kB / 0.704 GB, free: 34.18 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 5.048e-05/0.5905, allocations: 301.8 kB / 0.7043 GB, free: 33.89 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001625/0.5922, allocations: 0.7651 MB / 0.7051 GB, free: 33.88 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001865/0.594, allocations: 0.9351 MB / 0.706 GB, free: 33.76 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.025/0.619, allocations: 5.791 MB / 0.7116 GB, free: 32.86 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.598e-05/0.619, allocations: 2.078 kB / 0.7116 GB, free: 32.86 MB / 494.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01571/0.6347, allocations: 4.321 MB / 0.7159 GB, free: 31.72 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.252e-05/0.6348, allocations: 59.03 kB / 0.7159 GB, free: 31.66 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.398e-05/0.6349, allocations: 3.328 kB / 0.7159 GB, free: 31.66 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00578/0.6406, allocations: 1.511 MB / 0.7174 GB, free: 31.39 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001712/0.6423, allocations: 297 kB / 0.7177 GB, free: 31.36 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01843/0.6608, allocations: 8.165 MB / 0.7257 GB, free: 26.79 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002084/0.6629, allocations: 207.3 kB / 0.7259 GB, free: 26.69 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000221/0.6631, allocations: 58.22 kB / 0.7259 GB, free: 26.67 MB / 494.1 MB Warning: Assuming fixed start value for the following 4 variables: order4.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 order4.delta:VARIABLE(flow=false start = order4.delta0 unit = \"rad\" fixed = true ) \"Rotor angle\" type: Real order4.e1q:VARIABLE(start = order4.e1q0 unit = \"1\" fixed = true ) \"q-axis transient voltage\" 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 (166): * Single equations (assignments): 163 * 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 {(18,13,25.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007364/0.6638, allocations: 305 kB / 0.7262 GB, free: 26.41 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003305/0.6642, allocations: 134.9 kB / 0.7263 GB, free: 26.34 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01218/0.6763, allocations: 3.843 MB / 0.7301 GB, free: 24.38 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.292e-05/0.6764, allocations: 11.22 kB / 0.7301 GB, free: 24.38 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.783e-05/0.6764, allocations: 13.94 kB / 0.7301 GB, free: 24.37 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.102e-05/0.6764, allocations: 4.828 kB / 0.7301 GB, free: 24.37 MB / 494.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 postOpt removeSimpleEquations (simulation): time 0.01354/0.69, allocations: 5.4 MB / 0.7354 GB, free: 21.15 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-05/0.69, allocations: 0 / 0.7354 GB, free: 21.15 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006217/0.6906, allocations: 98.27 kB / 0.7355 GB, free: 21.13 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004835/0.6954, allocations: 1.603 MB / 0.737 GB, free: 20.15 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001889/0.6956, allocations: 19.98 kB / 0.7371 GB, free: 20.13 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01705/0.7127, allocations: 9.431 MB / 0.7463 GB, free: 10.49 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.7127, allocations: 3.938 kB / 0.7463 GB, free: 10.48 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01275/0.7254, allocations: 4.71 MB / 0.7509 GB, free: 5.746 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005729/0.726, allocations: 165 kB / 0.751 GB, free: 5.602 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002262/0.7262, allocations: 16 kB / 0.7511 GB, free: 5.586 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001104/0.7273, allocations: 107.9 kB / 0.7512 GB, free: 5.48 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005693/0.7279, allocations: 204.6 kB / 0.7514 GB, free: 5.281 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.792e-05/0.7279, allocations: 28 kB / 0.7514 GB, free: 5.254 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0009264/0.7289, allocations: 0.7274 MB / 0.7521 GB, free: 4.52 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/0.7289, allocations: 3.844 kB / 0.7521 GB, free: 4.52 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001414/0.7303, allocations: 479.4 kB / 0.7525 GB, free: 4.062 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d,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 (64): * Single equations (assignments): 61 * 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 {(21,11,21.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01329/0.7436, allocations: 5.308 MB / 0.7577 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.006926/0.7505, allocations: 2.357 MB / 0.76 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 7.253e-06/0.7505, allocations: 0 / 0.76 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.004675/0.7552, allocations: 1.563 MB / 0.7616 GB, free: 10.72 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001144/0.7563, allocations: 113.2 kB / 0.7617 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04197/0.7983, allocations: 16.03 MB / 0.7773 GB, free: 10.42 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008656/0.7992, allocations: 1.129 MB / 0.7784 GB, free: 9.258 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0005622/0.7997, allocations: 114.7 kB / 0.7785 GB, free: 9.145 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000705/0.8004, allocations: 471.3 kB / 0.779 GB, free: 8.684 MB / 0.5137 GB Notification: Performance of SimCode: time 1.202e-06/0.8004, allocations: 0 / 0.779 GB, free: 8.684 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09461/0.895, allocations: 35.59 MB / 0.8137 GB, free: 5.27 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.12/18.01, allocations: 11.48 kB / 0.8137 GB, free: 5.262 MB / 0.545 GB " [Timeout remaining time 642] (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.sim & python3 -m fmpy simulate --output-file OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.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_TwoAreaOld_FourthOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 21.747146730998793] Failed to read output from testmodel.py, exit status != 0: 18.149816838002153 18.174497268 17.991722632 Calling exit ...