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.001574/0.001574, allocations: 105.7 kB / 19.59 MB, free: 2.211 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.486/1.486, allocations: 225.6 MB / 248.2 MB, free: 13.32 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.001652/0.001652, allocations: 200.5 kB / 303.6 MB, free: 8.695 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.5085/0.5085, allocations: 79.71 MB / 438.5 MB, free: 5.254 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: translateModel(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous") translateModel(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002368/0.002368, allocations: 83.86 kB / 0.5843 GB, free: 8.078 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1566/0.159, allocations: 72.13 MB / 0.6548 GB, free: 15.84 MB / 462.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous): time 0.008664/0.1676, allocations: 6.604 MB / 0.6612 GB, free: 9.199 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.004893/0.1725, allocations: 1.974 MB / 0.6632 GB, free: 7.223 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001025/0.1735, allocations: 15.94 kB / 0.6632 GB, free: 7.207 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008669/0.1744, allocations: 246 kB / 0.6634 GB, free: 6.965 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002615/0.177, allocations: 0.847 MB / 0.6642 GB, free: 6.117 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.001616/0.1786, allocations: 0.6451 MB / 0.6649 GB, free: 5.477 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002648/0.1813, allocations: 1.612 MB / 0.6664 GB, free: 3.859 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004869/0.1818, allocations: 226.9 kB / 0.6666 GB, free: 3.621 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001209/0.183, allocations: 0.6808 MB / 0.6673 GB, free: 2.938 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001128/0.1841, allocations: 0.8362 MB / 0.6681 GB, free: 2.098 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002199/0.1843, allocations: 124 kB / 0.6682 GB, free: 1.977 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006055/0.1849, allocations: 255.9 kB / 0.6685 GB, free: 1.727 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003285/0.1853, allocations: 334.6 kB / 0.6688 GB, free: 1.398 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006883/0.186, allocations: 0.6641 MB / 0.6695 GB, free: 0.7305 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002325/0.1883, allocations: 1.673 MB / 0.6711 GB, free: 15.05 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.1883, allocations: 0 / 0.6711 GB, free: 15.05 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.1883, allocations: 3.938 kB / 0.6711 GB, free: 15.05 MB / 478.1 MB Notification: Performance of Transformations before backend: time 3.278e-05/0.1883, allocations: 3.938 kB / 0.6711 GB, free: 15.04 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.01031/0.1986, allocations: 2.785 MB / 0.6738 GB, free: 12.2 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.844e-05/0.1987, allocations: 8.031 kB / 0.6738 GB, free: 12.2 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005476/0.2042, allocations: 0.7874 MB / 0.6746 GB, free: 11.41 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002093/0.2062, allocations: 0.8345 MB / 0.6754 GB, free: 10.53 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003364/0.2066, allocations: 260.2 kB / 0.6757 GB, free: 10.23 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001844/0.2068, allocations: 84 kB / 0.6757 GB, free: 10.15 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002427/0.2092, allocations: 1.09 MB / 0.6768 GB, free: 9.051 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.455e-05/0.2092, allocations: 3.938 kB / 0.6768 GB, free: 9.047 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000105/0.2093, allocations: 32 kB / 0.6768 GB, free: 9.016 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.909e-05/0.2093, allocations: 19.98 kB / 0.6769 GB, free: 8.996 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002316/0.2117, allocations: 0.9838 MB / 0.6778 GB, free: 8.012 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.007926/0.2196, allocations: 3.739 MB / 0.6815 GB, free: 4.105 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008086/0.2277, allocations: 2 MB / 0.6834 GB, free: 2.082 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001769/0.2294, allocations: 0.6137 MB / 0.684 GB, free: 1.465 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001131/0.2296, allocations: 24.97 kB / 0.684 GB, free: 1.441 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001873/0.2314, allocations: 0.8216 MB / 0.6848 GB, free: 0.5977 MB / 478.1 MB Notification: Performance of pre-optimization done (n=96): time 2.545e-06/0.2314, allocations: 0 / 0.6848 GB, free: 0.5977 MB / 478.1 MB Notification: Performance of matching and sorting (n=96): time 0.03096/0.2624, allocations: 6.897 MB / 0.6916 GB, free: 9.676 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001133/0.2625, allocations: 123.7 kB / 0.6917 GB, free: 9.531 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002028/0.2645, allocations: 1.083 MB / 0.6928 GB, free: 8.434 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003267/0.2649, allocations: 41.7 kB / 0.6928 GB, free: 8.387 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004724/0.2653, allocations: 0.4975 MB / 0.6933 GB, free: 7.883 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004717/0.2658, allocations: 368.9 kB / 0.6936 GB, free: 7.52 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005796/0.2664, allocations: 291.5 kB / 0.6939 GB, free: 7.23 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001416/0.2665, allocations: 305.1 kB / 0.6942 GB, free: 6.93 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001804/0.2683, allocations: 0.7613 MB / 0.6949 GB, free: 6.168 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001967/0.2703, allocations: 0.9382 MB / 0.6959 GB, free: 5.188 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.4612/0.7315, allocations: 5.565 MB / 0.7013 GB, free: 42.68 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.406e-05/0.7315, allocations: 1.703 kB / 0.7013 GB, free: 42.68 MB / 494.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01629/0.7478, allocations: 4.331 MB / 0.7055 GB, free: 42.51 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.548e-05/0.7479, allocations: 59.19 kB / 0.7056 GB, free: 42.45 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.245e-05/0.7479, allocations: 2.812 kB / 0.7056 GB, free: 42.45 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006545/0.7545, allocations: 1.501 MB / 0.7071 GB, free: 42.44 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001893/0.7564, allocations: 295.5 kB / 0.7073 GB, free: 42.42 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02293/0.7793, allocations: 8.178 MB / 0.7153 GB, free: 38.78 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002341/0.7816, allocations: 206.2 kB / 0.7155 GB, free: 38.75 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001684/0.7818, allocations: 56.81 kB / 0.7156 GB, free: 38.73 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.000768/0.7826, allocations: 309.3 kB / 0.7159 GB, free: 38.49 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000258/0.7828, allocations: 131.4 kB / 0.716 GB, free: 38.42 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01401/0.7968, allocations: 3.843 MB / 0.7197 GB, free: 37.5 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.125e-05/0.7969, allocations: 13.56 kB / 0.7198 GB, free: 37.5 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.236e-05/0.7969, allocations: 11.03 kB / 0.7198 GB, free: 37.49 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.366e-05/0.7969, allocations: 3.281 kB / 0.7198 GB, free: 37.49 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.01578/0.8127, allocations: 5.397 MB / 0.725 GB, free: 35.22 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.738e-05/0.8127, allocations: 4.484 kB / 0.725 GB, free: 35.22 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007211/0.8134, allocations: 103.6 kB / 0.7251 GB, free: 35.2 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005906/0.8193, allocations: 1.595 MB / 0.7267 GB, free: 34.5 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002181/0.8196, allocations: 22.95 kB / 0.7267 GB, free: 34.48 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01905/0.8386, allocations: 9.429 MB / 0.7359 GB, free: 28.05 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.8386, allocations: 7.938 kB / 0.7359 GB, free: 28.04 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01374/0.8524, allocations: 4.706 MB / 0.7405 GB, free: 23.63 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000585/0.853, allocations: 162.1 kB / 0.7407 GB, free: 23.49 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000175/0.8531, allocations: 19.94 kB / 0.7407 GB, free: 23.47 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001155/0.8543, allocations: 103.9 kB / 0.7408 GB, free: 23.37 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000634/0.8549, allocations: 208.6 kB / 0.741 GB, free: 23.16 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.156e-05/0.855, allocations: 24 kB / 0.741 GB, free: 23.14 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0009669/0.856, allocations: 0.7274 MB / 0.7417 GB, free: 22.41 MB / 494.1 MB Notification: Performance of sort global known variables: time 8e-08/0.856, allocations: 2.812 kB / 0.7417 GB, free: 22.41 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001589/0.8575, allocations: 479.2 kB / 0.7422 GB, free: 21.95 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.0002851/0.8578, allocations: 134.2 kB / 0.7423 GB, free: 21.81 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.005942/0.8638, allocations: 2.373 MB / 0.7446 GB, free: 19.39 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.868e-06/0.8638, allocations: 0 / 0.7446 GB, free: 19.39 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004149/0.8679, allocations: 1.543 MB / 0.7462 GB, free: 17.82 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001173/0.8691, allocations: 113.1 kB / 0.7463 GB, free: 17.71 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003896/0.873, allocations: 2.341 MB / 0.7485 GB, free: 15.38 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004701/0.8735, allocations: 1.12 MB / 0.7496 GB, free: 14.23 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003519/0.8738, allocations: 91.41 kB / 0.7497 GB, free: 14.14 MB / 494.1 MB Notification: Performance of SimCode: time 1.643e-06/0.8738, allocations: 0 / 0.7497 GB, free: 14.14 MB / 494.1 MB Notification: Performance of Templates: time 0.03096/0.9048, allocations: 23.76 MB / 0.7729 GB, free: 6.383 MB / 0.4981 GB " [Timeout remaining time 659] make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.makefile [Timeout 660] (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 & ./OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 10.413055718876421] Failed to read output from testmodel.py, exit status != 0: 0.914269229862839 0.930859585 0.7392154360000001 Calling exit ... <OMPython.OMCSessionZMQ object at 0x7f4b13c85810>