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.00142/0.00142, allocations: 110.6 kB / 18.94 MB, free: 2.949 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.479/1.479, allocations: 230.6 MB / 252.7 MB, free: 8.285 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.001942/0.001942, allocations: 207.9 kB / 309.2 MB, free: 3.133 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.4989/0.4989, allocations: 79.73 MB / 445.4 MB, free: 14.83 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.002477/0.002477, allocations: 79.88 kB / 0.593 GB, free: 13.93 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1637/0.1662, allocations: 73.29 MB / 0.6645 GB, free: 4.531 MB / 462.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.008829/0.175, allocations: 6.275 MB / 0.6707 GB, free: 14.23 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.004913/0.1799, allocations: 1.912 MB / 0.6725 GB, free: 12.31 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001187/0.1811, allocations: 8 kB / 0.6725 GB, free: 12.3 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009336/0.182, allocations: 210.1 kB / 0.6727 GB, free: 12.1 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003169/0.1852, allocations: 0.8334 MB / 0.6735 GB, free: 11.27 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.001821/0.187, allocations: 0.5795 MB / 0.6741 GB, free: 10.69 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.002936/0.19, allocations: 1.385 MB / 0.6755 GB, free: 9.301 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006307/0.1906, allocations: 204.6 kB / 0.6757 GB, free: 9.086 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001388/0.192, allocations: 0.6107 MB / 0.6763 GB, free: 8.473 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001394/0.1934, allocations: 0.7739 MB / 0.677 GB, free: 7.695 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004477/0.1938, allocations: 104 kB / 0.6771 GB, free: 7.594 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000989/0.1948, allocations: 255.9 kB / 0.6774 GB, free: 7.344 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005091/0.1953, allocations: 286.7 kB / 0.6776 GB, free: 7.062 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001037/0.1964, allocations: 0.6136 MB / 0.6782 GB, free: 6.445 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002792/0.1992, allocations: 1.509 MB / 0.6797 GB, free: 4.93 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.1992, allocations: 0 / 0.6797 GB, free: 4.93 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1992, allocations: 4 kB / 0.6797 GB, free: 4.926 MB / 478.1 MB Notification: Performance of Transformations before backend: time 6.554e-05/0.1992, allocations: 0 / 0.6797 GB, free: 4.926 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.009425/0.2087, allocations: 2.471 MB / 0.6821 GB, free: 2.418 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.347e-05/0.2087, allocations: 15.98 kB / 0.6821 GB, free: 2.402 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003271/0.209, allocations: 118.5 kB / 0.6822 GB, free: 2.277 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005283/0.2143, allocations: 0.7796 MB / 0.683 GB, free: 1.496 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001972/0.2163, allocations: 0.7294 MB / 0.6837 GB, free: 0.7227 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004514/0.2167, allocations: 363 kB / 0.6841 GB, free: 312 kB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002929/0.217, allocations: 72 kB / 0.6841 GB, free: 240 kB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003/0.22, allocations: 1.182 MB / 0.6853 GB, free: 15.03 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.71e-05/0.2201, allocations: 0 / 0.6853 GB, free: 15.03 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001159/0.2202, allocations: 28 kB / 0.6853 GB, free: 15 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.263e-05/0.2202, allocations: 16 kB / 0.6853 GB, free: 14.98 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002224/0.2224, allocations: 0.9576 MB / 0.6863 GB, free: 14.03 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.007342/0.2298, allocations: 3.485 MB / 0.6897 GB, free: 10.36 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007396/0.2372, allocations: 1.938 MB / 0.6916 GB, free: 8.41 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001615/0.2388, allocations: 0.6048 MB / 0.6922 GB, free: 7.801 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001632/0.2389, allocations: 20.62 kB / 0.6922 GB, free: 7.781 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.193e-05/0.239, allocations: 43.22 kB / 0.6922 GB, free: 7.727 MB / 494.1 MB Notification: Performance of pre-optimization done (n=92): time 4.118e-06/0.239, allocations: 0 / 0.6922 GB, free: 7.727 MB / 494.1 MB Notification: Performance of matching and sorting (n=92): time 0.02766/0.2666, allocations: 6.564 MB / 0.6986 GB, free: 1.145 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001434/0.2668, allocations: 97.72 kB / 0.6987 GB, free: 1.027 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001835/0.2686, allocations: 0.9697 MB / 0.6997 GB, free: 40 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.3215/0.5901, allocations: 39.19 kB / 0.6997 GB, free: 34.14 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005057/0.5906, allocations: 463.3 kB / 0.7001 GB, free: 34.05 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004984/0.5911, allocations: 333.9 kB / 0.7005 GB, free: 33.95 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005333/0.5917, allocations: 255 kB / 0.7007 GB, free: 33.93 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 7.614e-05/0.5918, allocations: 304.8 kB / 0.701 GB, free: 33.63 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001529/0.5933, allocations: 0.693 MB / 0.7017 GB, free: 33.63 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001587/0.5949, allocations: 0.916 MB / 0.7026 GB, free: 33.43 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02398/0.6189, allocations: 5.296 MB / 0.7077 GB, free: 33.15 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.1e-05/0.6189, allocations: 2.375 kB / 0.7077 GB, free: 33.15 MB / 494.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01406/0.6329, allocations: 4.125 MB / 0.7118 GB, free: 32.27 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.334e-05/0.633, allocations: 7.891 kB / 0.7118 GB, free: 32.27 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.433e-05/0.633, allocations: 4.469 kB / 0.7118 GB, free: 32.27 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006108/0.6391, allocations: 1.51 MB / 0.7133 GB, free: 32 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001409/0.6405, allocations: 259.8 kB / 0.7135 GB, free: 31.98 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02039/0.6609, allocations: 8.174 MB / 0.7215 GB, free: 28.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001783/0.6627, allocations: 173.6 kB / 0.7217 GB, free: 28.15 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001194/0.6628, allocations: 50.31 kB / 0.7217 GB, free: 28.14 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.0006466/0.6635, allocations: 268.3 kB / 0.722 GB, free: 27.93 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001022/0.6645, allocations: 344.2 kB / 0.7223 GB, free: 27.78 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01169/0.6762, allocations: 3.561 MB / 0.7258 GB, free: 26.74 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.566e-05/0.6762, allocations: 14.09 kB / 0.7258 GB, free: 26.73 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.551e-05/0.6762, allocations: 6.25 kB / 0.7258 GB, free: 26.73 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.142e-05/0.6762, allocations: 5.328 kB / 0.7258 GB, free: 26.73 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.01366/0.6899, allocations: 5.064 MB / 0.7307 GB, free: 23.75 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.815e-05/0.6899, allocations: 1.375 kB / 0.7307 GB, free: 23.75 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006719/0.6906, allocations: 113.8 kB / 0.7308 GB, free: 23.73 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005087/0.6957, allocations: 1.581 MB / 0.7324 GB, free: 23.02 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001648/0.6958, allocations: 23.86 kB / 0.7324 GB, free: 23 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01664/0.7125, allocations: 10.58 MB / 0.7427 GB, free: 14.12 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.776e-06/0.7125, allocations: 4.031 kB / 0.7427 GB, free: 14.11 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01269/0.7252, allocations: 4.586 MB / 0.7472 GB, free: 9.5 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005101/0.7257, allocations: 146.9 kB / 0.7474 GB, free: 9.371 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001757/0.7259, allocations: 20 kB / 0.7474 GB, free: 9.352 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009594/0.7268, allocations: 83.91 kB / 0.7475 GB, free: 9.27 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005123/0.7273, allocations: 184.7 kB / 0.7476 GB, free: 9.09 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.022e-05/0.7274, allocations: 20 kB / 0.7477 GB, free: 9.07 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0007007/0.7281, allocations: 0.6434 MB / 0.7483 GB, free: 8.418 MB / 494.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.7281, allocations: 2.188 kB / 0.7483 GB, free: 8.418 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001442/0.7295, allocations: 445.2 kB / 0.7487 GB, free: 7.996 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.01282/0.7423, allocations: 5.184 MB / 0.7538 GB, free: 2.781 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.005311/0.7477, allocations: 2.161 MB / 0.7559 GB, free: 0.6016 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.7477, allocations: 1.531 kB / 0.7559 GB, free: 0.6016 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003741/0.7514, allocations: 1.26 MB / 0.7571 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001648/0.7531, allocations: 345 kB / 0.7574 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03845/0.7915, allocations: 15.01 MB / 0.7721 GB, free: 15.76 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007993/0.7923, allocations: 1.084 MB / 0.7732 GB, free: 14.64 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0004813/0.7928, allocations: 103.8 kB / 0.7733 GB, free: 14.54 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006341/0.7934, allocations: 439.3 kB / 0.7737 GB, free: 14.11 MB / 0.5137 GB Notification: Performance of SimCode: time 1.312e-06/0.7934, allocations: 0 / 0.7737 GB, free: 14.11 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09005/0.8835, allocations: 32.54 MB / 0.8055 GB, free: 13.73 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.35/19.24, allocations: 13.75 kB / 0.8055 GB, free: 13.73 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete_fmu --startTime=0 --stopTime=20 --stepSize=0.01 --timeout=50 --tolerance=0.001 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.947530679171905] Failed to read output from testmodel.py, exit status != 0: 19.374044504016638 19.403804849 19.199276587 Calling exit ...