Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.conf.json 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/Modelica 4.0.0+maint.om/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/OpenIPSL 3.1.0-master/package.mo", uses=false) Using package OpenIPSL with version 3.1.0-dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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 with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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) Running command: translateModel(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous") translateModel(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00471/0.004712, allocations: 173.7 kB / 15.12 MB, free: 5.559 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.247/1.247, allocations: 223.2 MB / 239.1 MB, free: 1.77 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008291/0.0008288, allocations: 97.83 kB / 290.2 MB, free: 13.94 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4435/0.4435, allocations: 78.59 MB / 419.9 MB, free: 44.2 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00034/0.00034, allocations: 12 kB / 499.8 MB, free: 2.941 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3016/0.302, allocations: 69.35 MB / 0.5558 GB, free: 38.77 MB / 426.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous): time 0.00515/0.3072, allocations: 5.915 MB / 0.5616 GB, free: 37.58 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.0031/0.3103, allocations: 2.001 MB / 0.5635 GB, free: 36.16 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005267/0.3109, allocations: 15.38 kB / 0.5635 GB, free: 36.16 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000503/0.3114, allocations: 170.4 kB / 0.5637 GB, free: 36.08 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001432/0.3128, allocations: 0.7195 MB / 0.5644 GB, free: 35.61 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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.001095/0.3139, allocations: 0.5367 MB / 0.5649 GB, free: 35.35 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.001013/0.3149, allocations: 1.016 MB / 0.5659 GB, free: 34.8 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000357/0.3153, allocations: 279.8 kB / 0.5662 GB, free: 34.68 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000588/0.3159, allocations: 0.5688 MB / 0.5667 GB, free: 34.42 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006822/0.3166, allocations: 0.7243 MB / 0.5674 GB, free: 34.11 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001304/0.3167, allocations: 59.59 kB / 0.5675 GB, free: 34.11 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003671/0.3171, allocations: 173.9 kB / 0.5677 GB, free: 34.07 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001764/0.3173, allocations: 254 kB / 0.5679 GB, free: 33.93 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000178/0.3175, allocations: 235.2 kB / 0.5681 GB, free: 33.78 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008141/0.3183, allocations: 1.21 MB / 0.5693 GB, free: 33.42 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.064e-06/0.3183, allocations: 0 / 0.5693 GB, free: 33.42 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3183, allocations: 0 / 0.5693 GB, free: 33.42 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.264e-05/0.3183, allocations: 0 / 0.5693 GB, free: 33.42 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 198 * Number of variables: 198 Notification: Performance of Generate backend data structure: time 0.007402/0.3257, allocations: 2.523 MB / 0.5718 GB, free: 32.29 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.852e-05/0.3258, allocations: 8.156 kB / 0.5718 GB, free: 32.29 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004543/0.3303, allocations: 0.7879 MB / 0.5725 GB, free: 32.13 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001287/0.3316, allocations: 0.8648 MB / 0.5734 GB, free: 31.57 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002153/0.3319, allocations: 272.4 kB / 0.5736 GB, free: 31.34 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001379/0.332, allocations: 87.62 kB / 0.5737 GB, free: 31.31 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00226/0.3343, allocations: 1.451 MB / 0.5751 GB, free: 30.73 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.776e-05/0.3343, allocations: 0 / 0.5751 GB, free: 30.73 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.711e-05/0.3344, allocations: 41.14 kB / 0.5752 GB, free: 30.7 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.621e-05/0.3344, allocations: 18.78 kB / 0.5752 GB, free: 30.7 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001799/0.3362, allocations: 1.051 MB / 0.5762 GB, free: 30.36 MB / 426.7 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.004929/0.3412, allocations: 3.97 MB / 0.5801 GB, free: 27.88 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0104/0.3516, allocations: 3.098 MB / 0.5831 GB, free: 26.82 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001951/0.3518, allocations: 23.67 kB / 0.5832 GB, free: 26.82 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002192/0.354, allocations: 0.8008 MB / 0.5839 GB, free: 26.51 MB / 426.7 MB Notification: Performance of pre-optimization done (n=115): time 4.227e-06/0.354, allocations: 0 / 0.5839 GB, free: 26.51 MB / 426.7 MB Notification: Performance of matching and sorting (n=115): time 0.0431/0.3971, allocations: 8.641 MB / 0.5924 GB, free: 24.9 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001251/0.3973, allocations: 194.9 kB / 0.5926 GB, free: 24.7 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002164/0.3995, allocations: 1.078 MB / 0.5936 GB, free: 24.25 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002276/0.3997, allocations: 50.77 kB / 0.5937 GB, free: 24.2 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003676/0.4001, allocations: 483 kB / 0.5941 GB, free: 23.82 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003808/0.4005, allocations: 334.2 kB / 0.5944 GB, free: 23.57 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001408/0.4007, allocations: 35.38 kB / 0.5945 GB, free: 23.54 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001012/0.4008, allocations: 375 kB / 0.5948 GB, free: 23.21 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002533/0.4033, allocations: 0.8051 MB / 0.5956 GB, free: 22.93 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002805/0.4061, allocations: 1.149 MB / 0.5967 GB, free: 22.25 MB / 426.7 MB Notification: The given system is mixed-determined. [index = 2] Notification: Performance of analyzeInitialSystem (initialization): time 0.03348/0.4396, allocations: 6.059 MB / 0.6027 GB, free: 20.32 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-05/0.4397, allocations: 1.469 kB / 0.6027 GB, free: 20.32 MB / 426.7 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.02355/0.4633, allocations: 5.217 MB / 0.6078 GB, free: 19.04 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.713e-05/0.4634, allocations: 66.36 kB / 0.6078 GB, free: 18.97 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.508e-05/0.4634, allocations: 10.94 kB / 0.6078 GB, free: 18.97 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008504/0.4719, allocations: 1.852 MB / 0.6096 GB, free: 18.39 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001338/0.4733, allocations: 318.2 kB / 0.6099 GB, free: 18.12 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01812/0.4914, allocations: 9.241 MB / 0.619 GB, free: 8.82 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001831/0.4933, allocations: 230.7 kB / 0.6192 GB, free: 8.594 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001124/0.4934, allocations: 83.91 kB / 0.6193 GB, free: 8.512 MB / 426.7 MB Warning: Assuming fixed start value for the following 3 variables: order4.e1d:VARIABLE(start = order4.e1d0 unit = "1" fixed = true ) "d-axis transient voltage" type: Real order4.e1q:VARIABLE(start = order4.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real order4.delta:VARIABLE(flow=false start = order4.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real Warning: The initial conditions are over specified. The following 4 initial equations are redundant, so they are removed from the initialization sytem: $DER.aVRTypeII.firstOrder2.y = 0.0 $DER.aVRTypeII.derivativeBlock.x = 0.0 aVRTypeII.ExcitationSystem.y = 0.0 aVRTypeII.simpleLagLim.state = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.firstOrder2.y,aVRTypeII.ExcitationSystem.x_scaled[1],aVRTypeII.derivativeBlock.x,aVRTypeII.simpleLagLim.state) * Top-level inputs: 0 Notification: Strong component statistics for initialization (185): * Single equations (assignments): 182 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {18 14} Notification: Performance of prepare postOptimizeDAE: time 0.0005411/0.494, allocations: 340.3 kB / 0.6196 GB, free: 8.172 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001708/0.4957, allocations: 0.6924 MB / 0.6203 GB, free: 7.465 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01324/0.5089, allocations: 4.994 MB / 0.6251 GB, free: 2.445 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.105e-05/0.509, allocations: 16 kB / 0.6252 GB, free: 2.43 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/0.509, allocations: 8 kB / 0.6252 GB, free: 2.422 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.373e-05/0.509, allocations: 7.984 kB / 0.6252 GB, free: 2.414 MB / 426.7 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.01555/0.5245, allocations: 6.6 MB / 0.6316 GB, free: 11.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.075e-06/0.5246, allocations: 0 / 0.6316 GB, free: 11.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000548/0.5251, allocations: 111.8 kB / 0.6317 GB, free: 11.59 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006162/0.5313, allocations: 2.001 MB / 0.6337 GB, free: 9.574 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001079/0.5314, allocations: 27.98 kB / 0.6337 GB, free: 9.547 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02377/0.5552, allocations: 12.49 MB / 0.6459 GB, free: 12.66 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.5552, allocations: 4 kB / 0.6459 GB, free: 12.65 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01672/0.572, allocations: 6.069 MB / 0.6518 GB, free: 6.52 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000502/0.5725, allocations: 235.2 kB / 0.6521 GB, free: 6.27 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001917/0.5727, allocations: 31.98 kB / 0.6521 GB, free: 6.238 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001209/0.5739, allocations: 143.9 kB / 0.6522 GB, free: 6.098 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004656/0.5744, allocations: 180.7 kB / 0.6524 GB, free: 5.918 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.221e-05/0.5745, allocations: 35.98 kB / 0.6524 GB, free: 5.883 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00105/0.5755, allocations: 0.7199 MB / 0.6531 GB, free: 5.156 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5756, allocations: 0 / 0.6531 GB, free: 5.156 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001508/0.5771, allocations: 487.6 kB / 0.6536 GB, free: 4.68 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d) * Number of discrete variables: 2 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.ExcitationSystem.x_scaled[1],aVRTypeII.derivativeBlock.x,aVRTypeII.firstOrder2.y,aVRTypeII.simpleLagLim.state) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(20,23.0%) 12} * Non-linear torn systems: 1 {4 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002563/0.5773, allocations: 161.4 kB / 0.6537 GB, free: 4.516 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006515/0.5839, allocations: 2.853 MB / 0.6565 GB, free: 1.629 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.5839, allocations: 0 / 0.6565 GB, free: 1.629 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004217/0.5881, allocations: 1.596 MB / 0.6581 GB, free: 8 kB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001567/0.5897, allocations: 0.5758 MB / 0.6587 GB, free: 15.41 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003979/0.5937, allocations: 2.755 MB / 0.6613 GB, free: 12.62 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006215/0.5943, allocations: 1.179 MB / 0.6625 GB, free: 11.41 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0004437/0.5948, allocations: 124.9 kB / 0.6626 GB, free: 11.29 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002578/0.595, allocations: 83.41 kB / 0.6627 GB, free: 11.21 MB / 474.7 MB Notification: Performance of SimCode: time 5.11e-07/0.5951, allocations: 0 / 0.6627 GB, free: 11.21 MB / 474.7 MB Notification: Performance of Templates: time 0.03312/0.6282, allocations: 21.28 MB / 0.6835 GB, free: 5.969 MB / 490.7 MB make -j1 -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.makefile (rm -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe ; mkfifo OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe ; head -c 1048576 < OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe >> ../files/OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.sim & ./OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe 2>&1)