Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_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_Continuous,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_release_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_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008546/0.0008547, allocations: 181 kB / 15.45 MB, free: 6.23 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.223/1.223, allocations: 223.3 MB / 239.5 MB, free: 1.438 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.0007164/0.0007164, allocations: 94.05 kB / 290.7 MB, free: 13.79 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4126/0.4126, allocations: 78.61 MB / 420.4 MB, free: 44.03 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003449/0.0003449, allocations: 8.281 kB / 0.4888 GB, free: 2.547 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2929/0.2933, allocations: 69.35 MB / 0.5565 GB, free: 39.09 MB / 426.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous): time 0.005217/0.2986, allocations: 6.401 MB / 0.5628 GB, free: 36.29 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.00397/0.3026, allocations: 1.992 MB / 0.5647 GB, free: 35.5 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009173/0.3035, allocations: 11.38 kB / 0.5647 GB, free: 35.5 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006089/0.3041, allocations: 191.2 kB / 0.5649 GB, free: 35.43 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00191/0.3061, allocations: 0.7041 MB / 0.5656 GB, free: 35.12 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.001326/0.3074, allocations: 0.5881 MB / 0.5662 GB, free: 35.02 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.001667/0.3091, allocations: 1.497 MB / 0.5676 GB, free: 34.36 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004271/0.3095, allocations: 284.8 kB / 0.5679 GB, free: 34.22 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007927/0.3103, allocations: 0.5696 MB / 0.5684 GB, free: 33.96 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006417/0.311, allocations: 0.7441 MB / 0.5692 GB, free: 33.63 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001294/0.3111, allocations: 58.84 kB / 0.5692 GB, free: 33.63 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004346/0.3115, allocations: 193.2 kB / 0.5694 GB, free: 33.59 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001831/0.3117, allocations: 256.2 kB / 0.5697 GB, free: 33.45 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003719/0.3121, allocations: 0.6257 MB / 0.5703 GB, free: 33.02 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001/0.3131, allocations: 1.556 MB / 0.5718 GB, free: 32.45 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.87e-06/0.3131, allocations: 3.938 kB / 0.5718 GB, free: 32.45 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3131, allocations: 3.938 kB / 0.5718 GB, free: 32.44 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.226e-05/0.3132, allocations: 0 / 0.5718 GB, free: 32.44 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: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.007061/0.3202, allocations: 2.491 MB / 0.5742 GB, free: 31.32 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.885e-05/0.3203, allocations: 14.75 kB / 0.5742 GB, free: 31.31 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004618/0.3249, allocations: 0.78 MB / 0.575 GB, free: 31.16 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001328/0.3262, allocations: 0.8865 MB / 0.5759 GB, free: 30.56 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002106/0.3265, allocations: 269.1 kB / 0.5761 GB, free: 30.34 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001317/0.3266, allocations: 86.97 kB / 0.5762 GB, free: 30.3 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001748/0.3284, allocations: 1.151 MB / 0.5773 GB, free: 29.88 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.864e-05/0.3284, allocations: 0 / 0.5773 GB, free: 29.88 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.846e-05/0.3285, allocations: 29.84 kB / 0.5774 GB, free: 29.86 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.183e-05/0.3285, allocations: 17.41 kB / 0.5774 GB, free: 29.86 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001724/0.3302, allocations: 1.05 MB / 0.5784 GB, free: 29.52 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.005228/0.3355, allocations: 3.906 MB / 0.5822 GB, free: 27.3 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006542/0.342, allocations: 2.925 MB / 0.5851 GB, free: 26.41 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001238/0.3433, allocations: 0.7373 MB / 0.5858 GB, free: 26.13 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001036/0.3434, allocations: 15.38 kB / 0.5858 GB, free: 26.13 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001329/0.3447, allocations: 0.8757 MB / 0.5867 GB, free: 25.81 MB / 426.7 MB Notification: Performance of pre-optimization done (n=96): time 3.387e-06/0.3448, allocations: 0 / 0.5867 GB, free: 25.81 MB / 426.7 MB Notification: Performance of matching and sorting (n=96): time 0.02603/0.3708, allocations: 8.672 MB / 0.5951 GB, free: 24.23 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.446e-05/0.3709, allocations: 117.8 kB / 0.5952 GB, free: 24.1 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001699/0.3726, allocations: 1.082 MB / 0.5963 GB, free: 23.65 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002099/0.3728, allocations: 45.95 kB / 0.5963 GB, free: 23.61 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002779/0.3731, allocations: 490.3 kB / 0.5968 GB, free: 23.22 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003225/0.3734, allocations: 357.8 kB / 0.5972 GB, free: 22.95 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001857/0.3736, allocations: 153.9 kB / 0.5973 GB, free: 22.87 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 3.977e-05/0.3737, allocations: 301.1 kB / 0.5976 GB, free: 22.57 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001567/0.3753, allocations: 0.8318 MB / 0.5984 GB, free: 22.27 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001625/0.3769, allocations: 0.9975 MB / 0.5994 GB, free: 21.84 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02161/0.3985, allocations: 6.012 MB / 0.6052 GB, free: 20.05 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.037e-05/0.3986, allocations: 5.531 kB / 0.6053 GB, free: 20.05 MB / 426.7 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01348/0.4121, allocations: 5.168 MB / 0.6103 GB, free: 18.65 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.797e-05/0.4121, allocations: 61.86 kB / 0.6104 GB, free: 18.58 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.279e-05/0.4122, allocations: 0 / 0.6104 GB, free: 18.58 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004797/0.417, allocations: 1.792 MB / 0.6121 GB, free: 16.79 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001361/0.4183, allocations: 291.6 kB / 0.6124 GB, free: 16.51 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01587/0.4342, allocations: 8.62 MB / 0.6208 GB, free: 7.746 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001787/0.436, allocations: 238.8 kB / 0.621 GB, free: 7.512 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002729/0.4363, allocations: 63.95 kB / 0.6211 GB, free: 7.449 MB / 426.7 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.0007655/0.4371, allocations: 297.2 kB / 0.6214 GB, free: 7.145 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002946/0.4374, allocations: 130.4 kB / 0.6215 GB, free: 7.016 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01158/0.449, allocations: 4.724 MB / 0.6261 GB, free: 2.258 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.015e-05/0.449, allocations: 12 kB / 0.6261 GB, free: 2.246 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.507e-05/0.4491, allocations: 11.94 kB / 0.6261 GB, free: 2.234 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.227e-05/0.4491, allocations: 3.984 kB / 0.6261 GB, free: 2.23 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.01362/0.4627, allocations: 6.301 MB / 0.6323 GB, free: 11.82 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/0.4627, allocations: 0 / 0.6323 GB, free: 11.82 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005181/0.4633, allocations: 103.8 kB / 0.6324 GB, free: 11.72 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005298/0.4686, allocations: 1.899 MB / 0.6342 GB, free: 9.812 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001122/0.4687, allocations: 20 kB / 0.6343 GB, free: 9.793 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01812/0.4868, allocations: 9.652 MB / 0.6437 GB, free: 15.86 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.4869, allocations: 0 / 0.6437 GB, free: 15.86 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0142/0.5011, allocations: 5.647 MB / 0.6492 GB, free: 10.18 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004393/0.5015, allocations: 231.2 kB / 0.6494 GB, free: 9.93 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002373/0.5018, allocations: 20 kB / 0.6494 GB, free: 9.91 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001146/0.503, allocations: 144 kB / 0.6496 GB, free: 9.77 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005512/0.5035, allocations: 196.6 kB / 0.6498 GB, free: 9.574 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.573e-05/0.5036, allocations: 24.06 kB / 0.6498 GB, free: 9.551 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001045/0.5047, allocations: 0.7274 MB / 0.6505 GB, free: 8.816 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.5047, allocations: 0 / 0.6505 GB, free: 8.816 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001344/0.506, allocations: 475.5 kB / 0.651 GB, free: 8.352 MB / 458.7 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.0002396/0.5063, allocations: 135.2 kB / 0.6511 GB, free: 8.207 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005844/0.5121, allocations: 2.794 MB / 0.6538 GB, free: 5.379 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.5121, allocations: 4.188 kB / 0.6538 GB, free: 5.375 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004055/0.5162, allocations: 1.813 MB / 0.6556 GB, free: 3.527 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008528/0.5171, allocations: 123.9 kB / 0.6557 GB, free: 3.406 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003645/0.5207, allocations: 2.775 MB / 0.6584 GB, free: 0.6133 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006085/0.5213, allocations: 1.128 MB / 0.6595 GB, free: 15.45 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.00041/0.5218, allocations: 116.1 kB / 0.6596 GB, free: 15.34 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002489/0.522, allocations: 79.41 kB / 0.6597 GB, free: 15.26 MB / 474.7 MB Notification: Performance of SimCode: time 1.472e-06/0.522, allocations: 0 / 0.6597 GB, free: 15.26 MB / 474.7 MB Notification: Performance of Templates: time 0.03031/0.5523, allocations: 20.99 MB / 0.6802 GB, free: 10.3 MB / 490.7 MB make -j1 -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.makefile (rm -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; mkfifo OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; head -c 1048576 < OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe >> ../files/OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.sim & ./OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe 2>&1)