Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.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_Discrete,tolerance=0.001,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete") translateModel(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete,tolerance=0.001,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.08588/0.08588, allocations: 12.2 MB / 28.09 MB, free: 0.9219 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.001124/0.001124, allocations: 119.5 kB / 31.59 MB, free: 4.438 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.372/1.372, allocations: 205.1 MB / 240.1 MB, free: 11.58 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.001356/0.001356, allocations: 188.1 kB / 290.2 MB, free: 15.91 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.4261/0.4261, allocations: 78.5 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.002384/0.002384, allocations: 131.8 kB / 499.1 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3496/0.352, allocations: 68.04 MB / 0.5538 GB, free: 37.7 MB / 414.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.006124/0.3582, allocations: 6.544 MB / 0.5602 GB, free: 32.92 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.00285/0.3611, allocations: 1.858 MB / 0.562 GB, free: 31.59 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003858/0.3615, allocations: 8.781 kB / 0.562 GB, free: 31.59 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004227/0.362, allocations: 171.6 kB / 0.5622 GB, free: 31.52 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001363/0.3633, allocations: 0.6577 MB / 0.5628 GB, free: 31.09 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.0009596/0.3643, allocations: 0.5467 MB / 0.5634 GB, free: 30.8 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009026/0.3652, allocations: 1.369 MB / 0.5647 GB, free: 30.12 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003261/0.3655, allocations: 288.8 kB / 0.565 GB, free: 29.98 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004763/0.366, allocations: 0.5885 MB / 0.5655 GB, free: 29.69 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000549/0.3666, allocations: 0.7532 MB / 0.5663 GB, free: 29.33 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001208/0.3667, allocations: 105.2 kB / 0.5664 GB, free: 29.33 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003545/0.3671, allocations: 246.6 kB / 0.5666 GB, free: 29.29 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001734/0.3673, allocations: 297.6 kB / 0.5669 GB, free: 29.09 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000347/0.3676, allocations: 0.6138 MB / 0.5675 GB, free: 28.68 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008429/0.3685, allocations: 1.129 MB / 0.5686 GB, free: 28.24 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.399e-06/0.3685, allocations: 2.562 kB / 0.5686 GB, free: 28.24 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3685, allocations: 0 / 0.5686 GB, free: 28.24 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.138e-05/0.3685, allocations: 0 / 0.5686 GB, free: 28.24 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: 178 * Number of variables: 178 Notification: Performance of Generate backend data structure: time 0.007542/0.376, allocations: 2.485 MB / 0.571 GB, free: 27.09 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.3761, allocations: 18.52 kB / 0.5711 GB, free: 27.08 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004628/0.3807, allocations: 0.7572 MB / 0.5718 GB, free: 26.93 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0011/0.3819, allocations: 0.7993 MB / 0.5726 GB, free: 26.37 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002366/0.3821, allocations: 258 kB / 0.5728 GB, free: 26.15 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001425/0.3823, allocations: 77.88 kB / 0.5729 GB, free: 26.12 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002247/0.3845, allocations: 1.168 MB / 0.574 GB, free: 25.66 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.187e-05/0.3846, allocations: 7.062 kB / 0.574 GB, free: 25.66 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.385e-05/0.3846, allocations: 33.97 kB / 0.5741 GB, free: 25.63 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.564e-05/0.3847, allocations: 15.75 kB / 0.5741 GB, free: 25.63 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001725/0.3864, allocations: 0.9529 MB / 0.575 GB, free: 25.32 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.006092/0.3925, allocations: 3.537 MB / 0.5785 GB, free: 23.16 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007849/0.4004, allocations: 2.318 MB / 0.5807 GB, free: 22.36 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001709/0.4021, allocations: 0.6549 MB / 0.5814 GB, free: 22.1 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001161/0.4023, allocations: 12.52 kB / 0.5814 GB, free: 22.1 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.003e-05/0.4023, allocations: 48.39 kB / 0.5814 GB, free: 22.05 MB / 414.1 MB Notification: Performance of pre-optimization done (n=92): time 3.717e-06/0.4023, allocations: 0 / 0.5814 GB, free: 22.05 MB / 414.1 MB Notification: Performance of matching and sorting (n=92): time 0.02776/0.4301, allocations: 6.746 MB / 0.588 GB, free: 19.75 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000116/0.4303, allocations: 101 kB / 0.5881 GB, free: 19.65 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001668/0.4319, allocations: 0.9618 MB / 0.5891 GB, free: 19.1 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002707/0.4322, allocations: 44.95 kB / 0.5891 GB, free: 19.05 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003287/0.4326, allocations: 458.9 kB / 0.5895 GB, free: 18.65 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000459/0.433, allocations: 309.2 kB / 0.5898 GB, free: 18.38 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007359/0.4338, allocations: 265 kB / 0.5901 GB, free: 18.22 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 4.948e-05/0.4338, allocations: 301.1 kB / 0.5904 GB, free: 17.93 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001557/0.4354, allocations: 0.702 MB / 0.5911 GB, free: 17.57 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00159/0.437, allocations: 0.9161 MB / 0.592 GB, free: 16.97 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02231/0.4593, allocations: 5.079 MB / 0.5969 GB, free: 14.11 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.111e-05/0.4594, allocations: 4 kB / 0.5969 GB, free: 14.11 MB / 414.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01212/0.4715, allocations: 4.137 MB / 0.601 GB, free: 9.953 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.829e-05/0.4716, allocations: 12 kB / 0.601 GB, free: 9.941 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.729e-05/0.4716, allocations: 4 kB / 0.601 GB, free: 9.938 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004901/0.4766, allocations: 1.519 MB / 0.6025 GB, free: 8.414 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001191/0.4778, allocations: 259.6 kB / 0.6027 GB, free: 8.16 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01726/0.4951, allocations: 8.263 MB / 0.6108 GB, free: 15.75 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001816/0.4969, allocations: 182.9 kB / 0.6109 GB, free: 15.57 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002741/0.4972, allocations: 55.92 kB / 0.611 GB, free: 15.51 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: 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.0008388/0.4981, allocations: 274.5 kB / 0.6113 GB, free: 15.23 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001243/0.4993, allocations: 336.8 kB / 0.6116 GB, free: 14.89 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01177/0.5111, allocations: 3.592 MB / 0.6151 GB, free: 11.29 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.973e-05/0.5112, allocations: 12 kB / 0.6151 GB, free: 11.27 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.1e-05/0.5112, allocations: 8 kB / 0.6151 GB, free: 11.27 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.245e-05/0.5113, allocations: 3.984 kB / 0.6151 GB, free: 11.26 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.0156/0.5269, allocations: 5.122 MB / 0.6201 GB, free: 6.035 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.8e-05/0.527, allocations: 3.938 kB / 0.6201 GB, free: 6.031 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007021/0.5277, allocations: 107.9 kB / 0.6202 GB, free: 5.926 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005441/0.5331, allocations: 1.583 MB / 0.6218 GB, free: 4.336 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002636/0.5334, allocations: 16 kB / 0.6218 GB, free: 4.32 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02026/0.5537, allocations: 10.77 MB / 0.6323 GB, free: 9.199 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.746e-06/0.5538, allocations: 7.938 kB / 0.6323 GB, free: 9.191 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01472/0.5685, allocations: 4.616 MB / 0.6368 GB, free: 4.551 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005372/0.5691, allocations: 215.4 kB / 0.637 GB, free: 4.32 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004722/0.5696, allocations: 16 kB / 0.637 GB, free: 4.305 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001332/0.5709, allocations: 83.91 kB / 0.6371 GB, free: 4.223 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006766/0.5716, allocations: 176.8 kB / 0.6373 GB, free: 4.051 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001504/0.5718, allocations: 27.98 kB / 0.6373 GB, free: 4.023 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001199/0.573, allocations: 0.6395 MB / 0.6379 GB, free: 3.375 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.573, allocations: 0 / 0.6379 GB, free: 3.375 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001853/0.5749, allocations: 435.7 kB / 0.6384 GB, free: 2.949 MB / 446.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.0003712/0.5753, allocations: 139.1 kB / 0.6385 GB, free: 2.805 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006738/0.582, allocations: 2.319 MB / 0.6407 GB, free: 484 kB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.492e-06/0.5821, allocations: 0 / 0.6407 GB, free: 484 kB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004212/0.5863, allocations: 1.321 MB / 0.642 GB, free: 15.13 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002061/0.5884, allocations: 346.3 kB / 0.6424 GB, free: 14.78 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005045/0.5935, allocations: 2.493 MB / 0.6448 GB, free: 12.26 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008461/0.5943, allocations: 1.077 MB / 0.6459 GB, free: 11.15 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004264/0.5948, allocations: 75.42 kB / 0.6459 GB, free: 11.08 MB / 462.1 MB Notification: Performance of SimCode: time 9.32e-07/0.5948, allocations: 0 / 0.6459 GB, free: 11.08 MB / 462.1 MB Notification: Performance of Templates: time 0.03202/0.6268, allocations: 21.34 MB / 0.6668 GB, free: 5.703 MB / 478.1 MB make -j1 -f OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.makefile (rm -f OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; mkfifo OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; head -c 1048576 < OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe >> ../files/OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.sim & ./OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe 2>&1)