Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.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.002039/0.002039, allocations: 103.1 kB / 16.45 MB, free: 6.5 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.513/1.513, allocations: 230.6 MB / 249.8 MB, free: 9.215 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.001641/0.001641, allocations: 213.2 kB / 306 MB, free: 4.297 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.4773/0.4773, allocations: 79.71 MB / 441.8 MB, free: 148 kB / 302.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.Discretization.FourthOrder_AVRII_Discrete,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete",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.002351/0.002351, allocations: 87.88 kB / 0.5878 GB, free: 1.555 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1715/0.1738, allocations: 73.26 MB / 0.6594 GB, free: 8.195 MB / 462.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.008178/0.182, allocations: 6.228 MB / 0.6655 GB, free: 1.926 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.004464/0.1865, allocations: 1.911 MB / 0.6673 GB, free: 12 kB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005778/0.187, allocations: 8 kB / 0.6673 GB, free: 4 kB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005967/0.1876, allocations: 210.1 kB / 0.6675 GB, free: 15.8 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002034/0.1897, allocations: 0.8295 MB / 0.6683 GB, free: 14.97 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.001369/0.191, allocations: 0.5876 MB / 0.6689 GB, free: 14.39 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.001749/0.1928, allocations: 1.385 MB / 0.6703 GB, free: 13 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003906/0.1932, allocations: 195.9 kB / 0.6705 GB, free: 12.79 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008889/0.1941, allocations: 0.6107 MB / 0.6711 GB, free: 12.18 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009317/0.195, allocations: 0.7701 MB / 0.6718 GB, free: 11.41 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001657/0.1952, allocations: 104 kB / 0.6719 GB, free: 11.3 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005724/0.1957, allocations: 263.8 kB / 0.6722 GB, free: 11.05 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000287/0.196, allocations: 286.8 kB / 0.6724 GB, free: 10.77 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005778/0.1966, allocations: 0.6136 MB / 0.673 GB, free: 10.15 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001866/0.1985, allocations: 1.509 MB / 0.6745 GB, free: 8.633 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.139e-06/0.1985, allocations: 0 / 0.6745 GB, free: 8.633 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1985, allocations: 4 kB / 0.6745 GB, free: 8.629 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.813e-05/0.1985, allocations: 0 / 0.6745 GB, free: 8.629 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: 178 * Number of variables: 178 Notification: Performance of Generate backend data structure: time 0.008896/0.2074, allocations: 2.55 MB / 0.677 GB, free: 6.023 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.1e-05/0.2074, allocations: 8.031 kB / 0.677 GB, free: 6.016 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001743/0.2076, allocations: 118.5 kB / 0.6771 GB, free: 5.891 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005018/0.2126, allocations: 0.7718 MB / 0.6779 GB, free: 5.117 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001513/0.2141, allocations: 0.8055 MB / 0.6787 GB, free: 4.254 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003528/0.2145, allocations: 256.2 kB / 0.6789 GB, free: 3.965 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001767/0.2147, allocations: 79.98 kB / 0.679 GB, free: 3.887 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002691/0.2174, allocations: 1.181 MB / 0.6801 GB, free: 2.688 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.927e-05/0.2174, allocations: 0 / 0.6801 GB, free: 2.688 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.87e-05/0.2175, allocations: 32 kB / 0.6802 GB, free: 2.656 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.135e-05/0.2175, allocations: 16 kB / 0.6802 GB, free: 2.641 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002238/0.2197, allocations: 0.9537 MB / 0.6811 GB, free: 1.684 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.006733/0.2265, allocations: 3.531 MB / 0.6846 GB, free: 13.96 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00783/0.2343, allocations: 2.239 MB / 0.6867 GB, free: 11.63 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001407/0.2357, allocations: 0.597 MB / 0.6873 GB, free: 11.03 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000111/0.2358, allocations: 16.64 kB / 0.6873 GB, free: 11.01 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.912e-05/0.2359, allocations: 47.22 kB / 0.6874 GB, free: 10.96 MB / 494.1 MB Notification: Performance of pre-optimization done (n=92): time 2.725e-06/0.2359, allocations: 0 / 0.6874 GB, free: 10.96 MB / 494.1 MB Notification: Performance of matching and sorting (n=92): time 0.02855/0.2644, allocations: 6.718 MB / 0.694 GB, free: 4.18 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001401/0.2646, allocations: 105.6 kB / 0.6941 GB, free: 4.059 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001549/0.2661, allocations: 0.9657 MB / 0.695 GB, free: 3.074 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001942/0.2663, allocations: 41.7 kB / 0.695 GB, free: 3.027 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003964/0.2667, allocations: 465.4 kB / 0.6955 GB, free: 2.566 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004292/0.2671, allocations: 333.2 kB / 0.6958 GB, free: 2.238 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004843/0.2676, allocations: 259.5 kB / 0.696 GB, free: 1.977 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001418/0.2678, allocations: 301.1 kB / 0.6963 GB, free: 1.68 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001599/0.2694, allocations: 0.7027 MB / 0.697 GB, free: 0.9766 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3726/0.642, allocations: 0.9135 MB / 0.6979 GB, free: 34.88 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02457/0.6665, allocations: 5.282 MB / 0.7031 GB, free: 34.64 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.527e-05/0.6665, allocations: 1.594 kB / 0.7031 GB, free: 34.64 MB / 494.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.0147/0.6812, allocations: 4.127 MB / 0.7071 GB, free: 34.45 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.376e-05/0.6813, allocations: 7.594 kB / 0.7071 GB, free: 34.45 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.439e-05/0.6813, allocations: 4.594 kB / 0.7071 GB, free: 34.45 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006281/0.6876, allocations: 1.517 MB / 0.7086 GB, free: 34.29 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001451/0.689, allocations: 258 kB / 0.7088 GB, free: 34.26 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02039/0.7094, allocations: 8.275 MB / 0.7169 GB, free: 30.46 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001807/0.7112, allocations: 176.9 kB / 0.7171 GB, free: 30.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001216/0.7114, allocations: 57.59 kB / 0.7171 GB, free: 30.39 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: 23 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.vf,aVRTypeII.vr2,aVRTypeII.vr1,aVRTypeII.vm) * Top-level inputs: 0 Notification: Strong component statistics for initialization (151): * Single equations (assignments): 150 * Array equations: 0 * Algorithm blocks: 0 * 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.0006166/0.712, allocations: 260.8 kB / 0.7174 GB, free: 30.18 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009588/0.7129, allocations: 351.3 kB / 0.7177 GB, free: 30.03 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01188/0.7248, allocations: 3.548 MB / 0.7212 GB, free: 29.23 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.821e-05/0.7248, allocations: 9.719 kB / 0.7212 GB, free: 29.23 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.62e-05/0.7248, allocations: 11.31 kB / 0.7212 GB, free: 29.23 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.477e-05/0.7249, allocations: 4.797 kB / 0.7212 GB, free: 29.23 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.01367/0.7385, allocations: 5.103 MB / 0.7262 GB, free: 26.26 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.558e-06/0.7385, allocations: 0 / 0.7262 GB, free: 26.26 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005622/0.7391, allocations: 114.4 kB / 0.7263 GB, free: 26.23 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005394/0.7445, allocations: 1.578 MB / 0.7279 GB, free: 25.54 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001055/0.7446, allocations: 21.48 kB / 0.7279 GB, free: 25.52 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0172/0.7618, allocations: 10.78 MB / 0.7384 GB, free: 16.74 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.7618, allocations: 4 kB / 0.7384 GB, free: 16.73 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01314/0.7749, allocations: 4.592 MB / 0.7429 GB, free: 12.12 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004793/0.7754, allocations: 217.1 kB / 0.7431 GB, free: 11.9 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001571/0.7756, allocations: 16 kB / 0.7431 GB, free: 11.89 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009566/0.7765, allocations: 95.83 kB / 0.7432 GB, free: 11.79 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005276/0.7771, allocations: 172.8 kB / 0.7434 GB, free: 11.62 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.422e-05/0.7771, allocations: 24 kB / 0.7434 GB, free: 11.6 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0007108/0.7778, allocations: 0.6395 MB / 0.744 GB, free: 10.95 MB / 494.1 MB Notification: Performance of sort global known variables: time 8e-08/0.7778, allocations: 0.9375 kB / 0.744 GB, free: 10.95 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001457/0.7793, allocations: 446.8 kB / 0.7444 GB, free: 10.53 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.vm,aVRTypeII.vr1,aVRTypeII.vr2,aVRTypeII.vf) * Top-level inputs: 0 Notification: Strong component statistics for simulation (61): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * 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 {(3,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01322/0.7925, allocations: 5.175 MB / 0.7495 GB, free: 5.316 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.00553/0.7981, allocations: 2.157 MB / 0.7516 GB, free: 3.137 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/0.7981, allocations: 0 / 0.7516 GB, free: 3.137 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003676/0.8017, allocations: 1.27 MB / 0.7528 GB, free: 1.855 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001686/0.8034, allocations: 353.1 kB / 0.7532 GB, free: 1.504 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03917/0.8426, allocations: 15.01 MB / 0.7678 GB, free: 2.266 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008118/0.8434, allocations: 1.077 MB / 0.7689 GB, free: 1.16 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0004731/0.8439, allocations: 107.3 kB / 0.769 GB, free: 1.051 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006713/0.8445, allocations: 439.3 kB / 0.7694 GB, free: 0.6211 MB / 0.4981 GB Notification: Performance of SimCode: time 1.573e-06/0.8446, allocations: 0 / 0.7694 GB, free: 0.6211 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07605/0.9206, allocations: 31.69 MB / 0.8004 GB, free: 1.137 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.43/18.36, allocations: 7.375 kB / 0.8004 GB, free: 1.133 MB / 0.5294 GB " [Timeout remaining time 642] (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.sim & python3 -m fmpy simulate --output-file OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete_res.csv --start-time 0 --stop-time 20 --timeout 50 --relative-tolerance 0.001 --interface-type ModelExchange --solver CVode --output-interval 0.01 OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 22.019445190002443] Failed to read output from testmodel.py, exit status != 0: 18.48162828499335 18.496551142 18.294989496 Calling exit ...