Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo", uses=false) Using package OpenIPSL with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo) Running command: translateModel(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous") translateModel(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.07604/0.07604, allocations: 12.2 MB / 28.08 MB, free: 1.344 MB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001077/0.001077, allocations: 119.4 kB / 31.59 MB, free: 4.574 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.43/1.43, allocations: 205.1 MB / 240.1 MB, free: 10.93 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001274/0.001274, allocations: 192.5 kB / 290.2 MB, free: 15.86 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.4375/0.4375, allocations: 78.51 MB / 418.8 MB, free: 31.75 MB / 318.1 MB Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: OpenIPSL requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00256/0.00256, allocations: 129.1 kB / 499.1 MB, free: 0.5547 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3232/0.3257, allocations: 68.04 MB / 0.5538 GB, free: 37.73 MB / 414.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous): time 0.00591/0.3317, allocations: 6.916 MB / 0.5606 GB, free: 32.68 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.003437/0.3352, allocations: 1.963 MB / 0.5625 GB, free: 31.27 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006845/0.3359, allocations: 15.34 kB / 0.5625 GB, free: 31.27 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006881/0.3366, allocations: 183.2 kB / 0.5627 GB, free: 31.19 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001666/0.3383, allocations: 0.7097 MB / 0.5634 GB, free: 30.73 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/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.001086/0.3394, allocations: 0.5887 MB / 0.5639 GB, free: 30.4 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00121/0.3406, allocations: 1.576 MB / 0.5655 GB, free: 29.62 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003754/0.341, allocations: 321.2 kB / 0.5658 GB, free: 29.48 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005756/0.3416, allocations: 0.656 MB / 0.5664 GB, free: 29.16 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006194/0.3422, allocations: 0.8188 MB / 0.5672 GB, free: 28.77 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001417/0.3423, allocations: 120.5 kB / 0.5673 GB, free: 28.77 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003978/0.3427, allocations: 273 kB / 0.5676 GB, free: 28.71 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002071/0.343, allocations: 329.1 kB / 0.5679 GB, free: 28.5 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004036/0.3434, allocations: 0.674 MB / 0.5686 GB, free: 28.05 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009138/0.3443, allocations: 1.272 MB / 0.5698 GB, free: 27.56 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.3443, allocations: 0 / 0.5698 GB, free: 27.56 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3443, allocations: 0 / 0.5698 GB, free: 27.56 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.365e-05/0.3443, allocations: 0 / 0.5698 GB, free: 27.56 MB / 414.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.007979/0.3523, allocations: 2.694 MB / 0.5724 GB, free: 26.28 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.49e-05/0.3524, allocations: 14.11 kB / 0.5725 GB, free: 26.27 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004688/0.3571, allocations: 0.7706 MB / 0.5732 GB, free: 26.12 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001363/0.3585, allocations: 0.8898 MB / 0.5741 GB, free: 25.52 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002162/0.3587, allocations: 255.1 kB / 0.5743 GB, free: 25.3 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001474/0.3588, allocations: 80.38 kB / 0.5744 GB, free: 25.28 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001906/0.3608, allocations: 1.088 MB / 0.5755 GB, free: 24.86 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.092e-05/0.3608, allocations: 0 / 0.5755 GB, free: 24.86 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.83e-05/0.3609, allocations: 33.06 kB / 0.5755 GB, free: 24.84 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.571e-05/0.3609, allocations: 19.59 kB / 0.5755 GB, free: 24.83 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001761/0.3627, allocations: 0.9927 MB / 0.5765 GB, free: 24.5 MB / 414.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.006633/0.3693, allocations: 3.819 MB / 0.5802 GB, free: 22.29 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007333/0.3767, allocations: 2.372 MB / 0.5825 GB, free: 21.46 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001655/0.3784, allocations: 0.678 MB / 0.5832 GB, free: 21.2 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001246/0.3785, allocations: 27.88 kB / 0.5832 GB, free: 21.18 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001757/0.3803, allocations: 0.8146 MB / 0.584 GB, free: 20.87 MB / 414.1 MB Notification: Performance of pre-optimization done (n=96): time 3.837e-06/0.3803, allocations: 0 / 0.584 GB, free: 20.87 MB / 414.1 MB Notification: Performance of matching and sorting (n=96): time 0.02874/0.409, allocations: 7.084 MB / 0.5909 GB, free: 17.96 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.733e-05/0.4091, allocations: 117.1 kB / 0.591 GB, free: 17.84 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001982/0.4111, allocations: 1.078 MB / 0.5921 GB, free: 17.23 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003712/0.4115, allocations: 51.2 kB / 0.5921 GB, free: 17.18 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003649/0.4119, allocations: 490.4 kB / 0.5926 GB, free: 16.75 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004303/0.4123, allocations: 362 kB / 0.593 GB, free: 16.44 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005875/0.4129, allocations: 289.3 kB / 0.5932 GB, free: 16.27 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 6.604e-05/0.413, allocations: 301.1 kB / 0.5935 GB, free: 15.97 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001666/0.4147, allocations: 0.7599 MB / 0.5943 GB, free: 15.59 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001732/0.4164, allocations: 0.9421 MB / 0.5952 GB, free: 15.03 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02249/0.4389, allocations: 5.605 MB / 0.6006 GB, free: 10.32 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.256e-05/0.439, allocations: 0 / 0.6006 GB, free: 10.32 MB / 414.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01191/0.4509, allocations: 4.336 MB / 0.6049 GB, free: 5.953 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.365e-05/0.451, allocations: 59.39 kB / 0.6049 GB, free: 5.883 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.605e-05/0.451, allocations: 4 kB / 0.6049 GB, free: 5.879 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004797/0.4558, allocations: 1.519 MB / 0.6064 GB, free: 4.355 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001464/0.4573, allocations: 295.6 kB / 0.6067 GB, free: 4.066 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01752/0.4749, allocations: 8.279 MB / 0.6148 GB, free: 11.64 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002171/0.4771, allocations: 194.8 kB / 0.615 GB, free: 11.45 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002956/0.4774, allocations: 59.97 kB / 0.615 GB, free: 11.39 MB / 430.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.0006832/0.4781, allocations: 299.6 kB / 0.6153 GB, free: 11.08 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002853/0.4784, allocations: 130.3 kB / 0.6154 GB, free: 10.95 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01249/0.4909, allocations: 3.869 MB / 0.6192 GB, free: 7.051 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.143e-05/0.4909, allocations: 16 kB / 0.6192 GB, free: 7.035 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.291e-05/0.491, allocations: 4 kB / 0.6192 GB, free: 7.031 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.377e-05/0.491, allocations: 3.984 kB / 0.6192 GB, free: 7.027 MB / 430.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.01511/0.5061, allocations: 5.455 MB / 0.6246 GB, free: 1.465 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.572e-05/0.5062, allocations: 4 kB / 0.6246 GB, free: 1.461 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006899/0.5069, allocations: 99.83 kB / 0.6247 GB, free: 1.363 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005539/0.5124, allocations: 1.622 MB / 0.6263 GB, free: 15.73 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002206/0.5127, allocations: 16 kB / 0.6263 GB, free: 15.72 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02017/0.5329, allocations: 9.611 MB / 0.6357 GB, free: 5.812 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.05e-06/0.5329, allocations: 8 kB / 0.6357 GB, free: 5.805 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01447/0.5474, allocations: 4.737 MB / 0.6403 GB, free: 1.035 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005228/0.548, allocations: 223.5 kB / 0.6405 GB, free: 0.7969 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004217/0.5484, allocations: 16 kB / 0.6405 GB, free: 0.7812 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001433/0.5499, allocations: 111.8 kB / 0.6406 GB, free: 0.6719 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007104/0.5506, allocations: 204.7 kB / 0.6408 GB, free: 480 kB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001376/0.5508, allocations: 23.98 kB / 0.6408 GB, free: 456 kB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00131/0.5521, allocations: 0.7274 MB / 0.6416 GB, free: 15.71 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5521, allocations: 0 / 0.6416 GB, free: 15.71 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001702/0.5538, allocations: 471.5 kB / 0.642 GB, free: 15.25 MB / 462.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.0003552/0.5542, allocations: 138.1 kB / 0.6421 GB, free: 15.11 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006556/0.5607, allocations: 2.552 MB / 0.6446 GB, free: 12.52 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.99e-06/0.5608, allocations: 0 / 0.6446 GB, free: 12.52 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004487/0.5653, allocations: 1.6 MB / 0.6462 GB, free: 10.88 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001574/0.5669, allocations: 123.7 kB / 0.6463 GB, free: 10.76 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004823/0.5717, allocations: 2.738 MB / 0.649 GB, free: 7.992 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000739/0.5725, allocations: 1.12 MB / 0.6501 GB, free: 6.844 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004292/0.5729, allocations: 87.41 kB / 0.6502 GB, free: 6.758 MB / 462.1 MB Notification: Performance of SimCode: time 7.01e-07/0.5729, allocations: 0 / 0.6502 GB, free: 6.758 MB / 462.1 MB Notification: Performance of Templates: time 0.03003/0.603, allocations: 23.42 MB / 0.673 GB, free: 15.32 MB / 494.1 MB make -j1 -f OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.makefile (rm -f OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; mkfifo OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; head -c 1048576 < OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe >> ../files/OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.sim & ./OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe 2>&1)