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.001281/0.001281, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.404/1.404, allocations: 230.6 MB / 252.6 MB, free: 8.324 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.002308/0.002308, allocations: 213 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.4412/0.4412, allocations: 79.73 MB / 445.4 MB, free: 14.86 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.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.002484/0.002484, allocations: 86.38 kB / 0.593 GB, free: 13.96 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1475/0.15, allocations: 73.29 MB / 0.6645 GB, free: 4.566 MB / 462.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.007552/0.1576, allocations: 6.271 MB / 0.6706 GB, free: 14.27 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.004185/0.1618, allocations: 1.912 MB / 0.6725 GB, free: 12.35 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007757/0.1625, allocations: 8 kB / 0.6725 GB, free: 12.34 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006085/0.1632, allocations: 214.1 kB / 0.6727 GB, free: 12.13 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002117/0.1653, allocations: 0.8301 MB / 0.6735 GB, free: 11.3 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.001327/0.1666, allocations: 0.5702 MB / 0.6741 GB, free: 10.74 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.001633/0.1682, allocations: 1.385 MB / 0.6754 GB, free: 9.348 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003667/0.1686, allocations: 212.6 kB / 0.6757 GB, free: 9.125 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008012/0.1694, allocations: 0.6029 MB / 0.6762 GB, free: 8.52 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008916/0.1703, allocations: 0.7701 MB / 0.677 GB, free: 7.746 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001548/0.1704, allocations: 108 kB / 0.6771 GB, free: 7.641 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004964/0.1709, allocations: 255.9 kB / 0.6773 GB, free: 7.391 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002457/0.1712, allocations: 294.7 kB / 0.6776 GB, free: 7.102 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005155/0.1717, allocations: 0.6097 MB / 0.6782 GB, free: 6.488 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0017/0.1734, allocations: 1.509 MB / 0.6797 GB, free: 4.973 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.1734, allocations: 0 / 0.6797 GB, free: 4.973 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1734, allocations: 8 kB / 0.6797 GB, free: 4.965 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.883e-05/0.1734, allocations: 0 / 0.6797 GB, free: 4.965 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.008678/0.1821, allocations: 2.467 MB / 0.6821 GB, free: 2.461 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.097e-05/0.1822, allocations: 11.98 kB / 0.6821 GB, free: 2.449 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001586/0.1823, allocations: 118.5 kB / 0.6822 GB, free: 2.324 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005021/0.1873, allocations: 0.7796 MB / 0.683 GB, free: 1.543 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001542/0.1889, allocations: 0.7411 MB / 0.6837 GB, free: 0.7578 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003661/0.1892, allocations: 363 kB / 0.6841 GB, free: 348 kB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001494/0.1894, allocations: 72 kB / 0.6841 GB, free: 276 kB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002425/0.1918, allocations: 1.18 MB / 0.6853 GB, free: 15.07 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.567e-05/0.1918, allocations: 7.922 kB / 0.6853 GB, free: 15.06 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.444e-05/0.1919, allocations: 24 kB / 0.6853 GB, free: 15.04 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.794e-05/0.1919, allocations: 20 kB / 0.6853 GB, free: 15.02 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002001/0.1939, allocations: 0.9538 MB / 0.6863 GB, free: 14.06 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.006261/0.2002, allocations: 3.489 MB / 0.6897 GB, free: 10.39 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007262/0.2075, allocations: 1.938 MB / 0.6916 GB, free: 8.441 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001429/0.2089, allocations: 0.597 MB / 0.6921 GB, free: 7.84 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001141/0.209, allocations: 24.62 kB / 0.6922 GB, free: 7.816 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.173e-05/0.2091, allocations: 39.22 kB / 0.6922 GB, free: 7.766 MB / 494.1 MB Notification: Performance of pre-optimization done (n=92): time 2.965e-06/0.2091, allocations: 0 / 0.6922 GB, free: 7.766 MB / 494.1 MB Notification: Performance of matching and sorting (n=92): time 0.0269/0.236, allocations: 6.568 MB / 0.6986 GB, free: 1.18 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001275/0.2361, allocations: 97.72 kB / 0.6987 GB, free: 1.062 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001388/0.2375, allocations: 0.9697 MB / 0.6997 GB, free: 76 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002077/0.2377, allocations: 41.7 kB / 0.6997 GB, free: 28 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2859/0.5236, allocations: 458.8 kB / 0.7001 GB, free: 34.37 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004415/0.524, allocations: 331.2 kB / 0.7005 GB, free: 34.26 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004602/0.5245, allocations: 257.4 kB / 0.7007 GB, free: 34.23 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.072e-05/0.5245, allocations: 304.2 kB / 0.701 GB, free: 33.94 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001366/0.5259, allocations: 0.6905 MB / 0.7017 GB, free: 33.93 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001416/0.5273, allocations: 0.9215 MB / 0.7026 GB, free: 33.73 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02281/0.5501, allocations: 5.299 MB / 0.7077 GB, free: 33.46 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.728e-05/0.5501, allocations: 0.9062 kB / 0.7077 GB, free: 33.46 MB / 494.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01348/0.5636, allocations: 4.127 MB / 0.7118 GB, free: 32.59 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.016e-05/0.5637, allocations: 8.141 kB / 0.7118 GB, free: 32.59 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.517e-05/0.5637, allocations: 5.906 kB / 0.7118 GB, free: 32.59 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005867/0.5696, allocations: 1.51 MB / 0.7133 GB, free: 32.32 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001283/0.5708, allocations: 255.6 kB / 0.7135 GB, free: 32.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.018/0.5888, allocations: 8.172 MB / 0.7215 GB, free: 28.52 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001525/0.5904, allocations: 179.1 kB / 0.7217 GB, free: 28.43 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001198/0.5905, allocations: 49.19 kB / 0.7217 GB, free: 28.42 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.0005487/0.591, allocations: 268.1 kB / 0.722 GB, free: 28.21 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009428/0.592, allocations: 344.1 kB / 0.7223 GB, free: 28.06 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01084/0.6028, allocations: 3.555 MB / 0.7258 GB, free: 27.1 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.91e-05/0.6028, allocations: 14.38 kB / 0.7258 GB, free: 27.09 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.358e-05/0.6029, allocations: 9.094 kB / 0.7258 GB, free: 27.09 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.037e-05/0.6029, allocations: 7.922 kB / 0.7258 GB, free: 27.09 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.01295/0.6158, allocations: 5.069 MB / 0.7307 GB, free: 24.09 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.718e-05/0.6158, allocations: 0.5 kB / 0.7307 GB, free: 24.09 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006369/0.6165, allocations: 106.1 kB / 0.7308 GB, free: 24.07 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004947/0.6214, allocations: 1.588 MB / 0.7324 GB, free: 23.37 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001176/0.6215, allocations: 24.34 kB / 0.7324 GB, free: 23.35 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01625/0.6378, allocations: 10.57 MB / 0.7427 GB, free: 14.36 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.6378, allocations: 0 / 0.7427 GB, free: 14.36 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01274/0.6505, allocations: 4.589 MB / 0.7472 GB, free: 9.742 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004486/0.651, allocations: 143.5 kB / 0.7474 GB, free: 9.602 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003502/0.6513, allocations: 20 kB / 0.7474 GB, free: 9.582 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001104/0.6524, allocations: 84.45 kB / 0.7475 GB, free: 9.5 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005293/0.653, allocations: 184.6 kB / 0.7476 GB, free: 9.32 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001145/0.6531, allocations: 23.98 kB / 0.7477 GB, free: 9.297 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.000855/0.6539, allocations: 0.6434 MB / 0.7483 GB, free: 8.645 MB / 494.1 MB Notification: Performance of sort global known variables: time 8e-08/0.6539, allocations: 0 / 0.7483 GB, free: 8.645 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001694/0.6556, allocations: 446 kB / 0.7487 GB, free: 8.211 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.01289/0.6685, allocations: 5.182 MB / 0.7538 GB, free: 2.996 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.005467/0.674, allocations: 2.16 MB / 0.7559 GB, free: 0.8164 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.339e-06/0.674, allocations: 0 / 0.7559 GB, free: 0.8164 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003755/0.6778, allocations: 1.261 MB / 0.7571 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00182/0.6796, allocations: 349.5 kB / 0.7574 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04024/0.7198, allocations: 15.02 MB / 0.7721 GB, free: 15.95 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000924/0.7207, allocations: 1.084 MB / 0.7732 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0005352/0.7213, allocations: 99.14 kB / 0.7733 GB, free: 14.75 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007697/0.722, allocations: 439.3 kB / 0.7737 GB, free: 14.32 MB / 0.5137 GB Notification: Performance of SimCode: time 8.81e-07/0.722, allocations: 4 kB / 0.7737 GB, free: 14.31 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1025/0.8245, allocations: 32.53 MB / 0.8054 GB, free: 13.94 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.13/18.95, allocations: 14.64 kB / 0.8055 GB, free: 13.93 MB / 0.545 GB " [Timeout remaining time 641] (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.25066547499955] Failed to read output from testmodel.py, exit status != 0: 19.085455271000683 19.100983511 18.924468343 Calling exit ...