Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001496/0.001496, allocations: 106.5 kB / 16.45 MB, free: 6.488 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.498/1.498, allocations: 225.6 MB / 244.8 MB, free: 14.23 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001647/0.001647, allocations: 184.8 kB / 299.8 MB, free: 9.871 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.4605/0.4605, allocations: 79.73 MB / 434.4 MB, free: 6.672 MB / 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.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.Discretization.FourthOrder_AVRII_Continuous,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002291/0.002291, allocations: 76.11 kB / 0.5784 GB, free: 10.05 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1688/0.1711, allocations: 72.1 MB / 0.6488 GB, free: 1.844 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous): time 0.008852/0.18, allocations: 6.581 MB / 0.6552 GB, free: 11.22 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.005/0.185, allocations: 1.978 MB / 0.6572 GB, free: 9.238 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009165/0.1859, allocations: 8 kB / 0.6572 GB, free: 9.23 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008716/0.1868, allocations: 245.9 kB / 0.6574 GB, free: 8.988 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002522/0.1893, allocations: 0.8572 MB / 0.6582 GB, free: 8.133 MB / 462.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.001606/0.1909, allocations: 0.6361 MB / 0.6589 GB, free: 7.5 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.00226/0.1931, allocations: 1.585 MB / 0.6604 GB, free: 5.91 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004856/0.1936, allocations: 234.3 kB / 0.6606 GB, free: 5.668 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001016/0.1946, allocations: 0.6535 MB / 0.6613 GB, free: 5.012 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0011/0.1957, allocations: 0.8401 MB / 0.6621 GB, free: 4.168 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002125/0.196, allocations: 120 kB / 0.6622 GB, free: 4.051 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005566/0.1965, allocations: 255.9 kB / 0.6624 GB, free: 3.801 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003492/0.1969, allocations: 330.6 kB / 0.6628 GB, free: 3.477 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006819/0.1975, allocations: 0.6718 MB / 0.6634 GB, free: 2.801 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002203/0.1997, allocations: 1.669 MB / 0.665 GB, free: 1.125 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.167e-06/0.1998, allocations: 0 / 0.665 GB, free: 1.125 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1998, allocations: 0 / 0.665 GB, free: 1.125 MB / 462.1 MB Notification: Performance of Transformations before backend: time 2.229e-05/0.1998, allocations: 0 / 0.665 GB, free: 1.125 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: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.01108/0.2109, allocations: 2.73 MB / 0.6677 GB, free: 14.33 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.808e-05/0.2109, allocations: 12.03 kB / 0.6677 GB, free: 14.32 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000434/0.2113, allocations: 126.6 kB / 0.6678 GB, free: 14.18 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005528/0.2169, allocations: 0.7874 MB / 0.6686 GB, free: 13.39 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002567/0.2194, allocations: 0.8951 MB / 0.6695 GB, free: 12.45 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004105/0.2199, allocations: 252.2 kB / 0.6697 GB, free: 12.16 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003704/0.2202, allocations: 91.98 kB / 0.6698 GB, free: 12.07 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002864/0.2231, allocations: 1.086 MB / 0.6709 GB, free: 10.97 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.861e-05/0.2231, allocations: 3.984 kB / 0.6709 GB, free: 10.97 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000126/0.2232, allocations: 32 kB / 0.6709 GB, free: 10.94 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.43e-05/0.2233, allocations: 20 kB / 0.6709 GB, free: 10.92 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002463/0.2257, allocations: 0.9838 MB / 0.6719 GB, free: 9.934 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.008671/0.2344, allocations: 3.809 MB / 0.6756 GB, free: 5.949 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00786/0.2423, allocations: 2.297 MB / 0.6778 GB, free: 3.555 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001596/0.2439, allocations: 0.6137 MB / 0.6784 GB, free: 2.938 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001294/0.244, allocations: 16.92 kB / 0.6785 GB, free: 2.922 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001948/0.2459, allocations: 0.8216 MB / 0.6793 GB, free: 2.078 MB / 478.1 MB Notification: Performance of pre-optimization done (n=96): time 4.258e-06/0.2459, allocations: 0 / 0.6793 GB, free: 2.078 MB / 478.1 MB Notification: Performance of matching and sorting (n=96): time 0.03004/0.276, allocations: 7.054 MB / 0.6862 GB, free: 10.96 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001114/0.2761, allocations: 119.8 kB / 0.6863 GB, free: 10.82 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002367/0.2785, allocations: 1.079 MB / 0.6873 GB, free: 9.727 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000291/0.2787, allocations: 45.7 kB / 0.6874 GB, free: 9.676 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005496/0.2793, allocations: 0.5014 MB / 0.6879 GB, free: 9.168 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006434/0.2799, allocations: 376.8 kB / 0.6882 GB, free: 8.797 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009923/0.2809, allocations: 283.5 kB / 0.6885 GB, free: 8.516 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000149/0.2811, allocations: 301.1 kB / 0.6888 GB, free: 8.219 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00186/0.2829, allocations: 0.7652 MB / 0.6895 GB, free: 7.453 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002046/0.285, allocations: 0.9406 MB / 0.6904 GB, free: 6.473 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02523/0.3102, allocations: 5.583 MB / 0.6959 GB, free: 0.8047 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.619e-05/0.3102, allocations: 4 kB / 0.6959 GB, free: 0.8008 MB / 494.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.3997/0.7099, allocations: 4.309 MB / 0.7001 GB, free: 43.62 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.701e-05/0.71, allocations: 61.08 kB / 0.7002 GB, free: 43.56 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.017e-05/0.71, allocations: 3.688 kB / 0.7002 GB, free: 43.56 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005923/0.7159, allocations: 1.508 MB / 0.7016 GB, free: 43.55 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001679/0.7176, allocations: 296.5 kB / 0.7019 GB, free: 43.54 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02075/0.7384, allocations: 8.273 MB / 0.71 GB, free: 40.24 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002028/0.7404, allocations: 204.1 kB / 0.7102 GB, free: 40.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001539/0.7406, allocations: 57.31 kB / 0.7102 GB, free: 40.19 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.000656/0.7412, allocations: 307.3 kB / 0.7105 GB, free: 39.94 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002408/0.7415, allocations: 130.4 kB / 0.7107 GB, free: 39.87 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01267/0.7541, allocations: 3.851 MB / 0.7144 GB, free: 38.96 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.352e-05/0.7542, allocations: 10.44 kB / 0.7144 GB, free: 38.96 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.148e-05/0.7542, allocations: 11.56 kB / 0.7144 GB, free: 38.95 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.528e-05/0.7542, allocations: 4.922 kB / 0.7145 GB, free: 38.95 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.01456/0.7688, allocations: 5.428 MB / 0.7198 GB, free: 36.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-05/0.7688, allocations: 0 / 0.7198 GB, free: 36.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007011/0.7695, allocations: 102.7 kB / 0.7199 GB, free: 36.68 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005638/0.7751, allocations: 1.602 MB / 0.7214 GB, free: 35.98 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002335/0.7753, allocations: 18.72 kB / 0.7214 GB, free: 35.96 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0187/0.794, allocations: 9.626 MB / 0.7308 GB, free: 29.28 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.794, allocations: 0 / 0.7308 GB, free: 29.28 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01334/0.8074, allocations: 4.716 MB / 0.7354 GB, free: 25.3 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006541/0.808, allocations: 235.7 kB / 0.7357 GB, free: 25.07 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004787/0.8085, allocations: 16 kB / 0.7357 GB, free: 25.05 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00149/0.81, allocations: 111.8 kB / 0.7358 GB, free: 24.95 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007272/0.8107, allocations: 204.7 kB / 0.736 GB, free: 24.75 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001482/0.8109, allocations: 20 kB / 0.736 GB, free: 24.73 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001298/0.8122, allocations: 0.7313 MB / 0.7367 GB, free: 23.99 MB / 494.1 MB Notification: Performance of sort global known variables: time 7e-08/0.8122, allocations: 0 / 0.7367 GB, free: 23.99 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002229/0.8144, allocations: 476.2 kB / 0.7372 GB, free: 23.54 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.01355/0.828, allocations: 5.3 MB / 0.7423 GB, free: 18.2 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.00632/0.8343, allocations: 2.366 MB / 0.7447 GB, free: 15.8 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.286e-06/0.8343, allocations: 0.75 kB / 0.7447 GB, free: 15.8 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004081/0.8384, allocations: 1.551 MB / 0.7462 GB, free: 14.21 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001596/0.84, allocations: 112.7 kB / 0.7463 GB, free: 14.11 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03852/0.8785, allocations: 16 MB / 0.7619 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001296/0.8798, allocations: 1.124 MB / 0.763 GB, free: 12.78 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0007558/0.8805, allocations: 112.1 kB / 0.7631 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001033/0.8816, allocations: 471.3 kB / 0.7636 GB, free: 12.2 MB / 0.4981 GB Notification: Performance of SimCode: time 1.943e-06/0.8816, allocations: 0 / 0.7636 GB, free: 12.2 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09473/0.9763, allocations: 34.57 MB / 0.7973 GB, free: 9.867 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.31/16.28, allocations: 8.891 kB / 0.7973 GB, free: 9.867 MB / 0.5294 GB " [Timeout remaining time 644] (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous_fmu --startTime=0 --stopTime=20 --stepSize=0.008 --timeout=50 --tolerance=1e-06 OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 19.839735297951847] Failed to read output from testmodel.py, exit status != 0: 16.40106950327754 16.425356605 16.22096348 Calling exit ...