Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.conf.json 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 4.0.0+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 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 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.TwoAreaOld.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001422/0.001422, allocations: 104.3 kB / 16.35 MB, free: 5.824 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.311/1.311, allocations: 222.9 MB / 240 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001406/0.001406, allocations: 196.4 kB / 290.3 MB, free: 2.227 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4865/0.4865, allocations: 91.9 MB / 432.4 MB, free: 9.148 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001631/0.001631, allocations: 75.88 kB / 0.5033 GB, free: 6.953 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3363/0.338, allocations: 71.25 MB / 0.5729 GB, free: 37.02 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.005259/0.3433, allocations: 6.581 MB / 0.5793 GB, free: 33.07 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.002755/0.346, allocations: 1.963 MB / 0.5812 GB, free: 31.69 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003237/0.3464, allocations: 11.47 kB / 0.5812 GB, free: 31.69 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005406/0.3469, allocations: 242.6 kB / 0.5815 GB, free: 31.56 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001334/0.3483, allocations: 0.801 MB / 0.5822 GB, free: 31.04 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009834/0.3493, allocations: 0.6274 MB / 0.5828 GB, free: 30.73 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001069/0.3504, allocations: 1.591 MB / 0.5844 GB, free: 29.95 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000361/0.3507, allocations: 324.3 kB / 0.5847 GB, free: 29.82 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000544/0.3513, allocations: 0.6486 MB / 0.5853 GB, free: 29.5 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006451/0.3519, allocations: 0.8186 MB / 0.5861 GB, free: 29.11 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001363/0.3521, allocations: 121.4 kB / 0.5863 GB, free: 29.11 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003707/0.3525, allocations: 261.4 kB / 0.5865 GB, free: 29.07 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002066/0.3527, allocations: 333.6 kB / 0.5868 GB, free: 28.85 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003924/0.3531, allocations: 0.6729 MB / 0.5875 GB, free: 28.39 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001123/0.3542, allocations: 1.652 MB / 0.5891 GB, free: 27.66 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.3542, allocations: 0 / 0.5891 GB, free: 27.66 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3542, allocations: 0 / 0.5891 GB, free: 27.66 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.453e-05/0.3542, allocations: 1.469 kB / 0.5891 GB, free: 27.66 MB / 430.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.007272/0.3615, allocations: 2.688 MB / 0.5917 GB, free: 26.38 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.607e-05/0.3616, allocations: 8.75 kB / 0.5917 GB, free: 26.38 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004514/0.3661, allocations: 0.783 MB / 0.5925 GB, free: 26.21 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001213/0.3673, allocations: 0.8825 MB / 0.5934 GB, free: 25.62 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002136/0.3675, allocations: 257 kB / 0.5936 GB, free: 25.4 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000147/0.3677, allocations: 90.47 kB / 0.5937 GB, free: 25.37 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001746/0.3694, allocations: 1.088 MB / 0.5948 GB, free: 24.95 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.897e-05/0.3695, allocations: 3.984 kB / 0.5948 GB, free: 24.95 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.903e-05/0.3696, allocations: 27.06 kB / 0.5948 GB, free: 24.93 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.915e-05/0.3696, allocations: 17.94 kB / 0.5948 GB, free: 24.93 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001769/0.3713, allocations: 0.9847 MB / 0.5958 GB, free: 24.6 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 preOpt removeSimpleEquations (simulation): time 0.005929/0.3773, allocations: 3.837 MB / 0.5995 GB, free: 22.39 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006747/0.384, allocations: 2.374 MB / 0.6018 GB, free: 21.55 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00121/0.3853, allocations: 0.6817 MB / 0.6025 GB, free: 21.29 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001021/0.3854, allocations: 12.42 kB / 0.6025 GB, free: 21.29 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001462/0.3869, allocations: 0.8207 MB / 0.6033 GB, free: 20.96 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 2.084e-06/0.3869, allocations: 0 / 0.6033 GB, free: 20.96 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.02619/0.4131, allocations: 7.082 MB / 0.6102 GB, free: 19.57 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.267e-05/0.4131, allocations: 123.2 kB / 0.6103 GB, free: 19.44 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001625/0.4148, allocations: 1.081 MB / 0.6114 GB, free: 19 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001408/0.4149, allocations: 47.05 kB / 0.6114 GB, free: 18.95 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002953/0.4152, allocations: 493.1 kB / 0.6119 GB, free: 18.56 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002958/0.4155, allocations: 357.5 kB / 0.6123 GB, free: 18.27 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004541/0.416, allocations: 289.6 kB / 0.6125 GB, free: 18.1 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.6e-05/0.416, allocations: 310.2 kB / 0.6128 GB, free: 17.8 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001366/0.4174, allocations: 0.7596 MB / 0.6136 GB, free: 17.41 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001445/0.4189, allocations: 0.9373 MB / 0.6145 GB, free: 16.86 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0198/0.4387, allocations: 5.569 MB / 0.6199 GB, free: 13.71 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.877e-06/0.4387, allocations: 0 / 0.6199 GB, free: 13.71 MB / 430.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01066/0.4494, allocations: 4.332 MB / 0.6241 GB, free: 9.348 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.223e-05/0.4495, allocations: 63.39 kB / 0.6242 GB, free: 9.273 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.113e-05/0.4495, allocations: 7.984 kB / 0.6242 GB, free: 9.266 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004282/0.4538, allocations: 1.505 MB / 0.6257 GB, free: 7.758 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001258/0.455, allocations: 295.6 kB / 0.626 GB, free: 7.469 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01543/0.4705, allocations: 8.276 MB / 0.6341 GB, free: 15.04 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002048/0.4726, allocations: 198.8 kB / 0.6342 GB, free: 14.84 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001397/0.4727, allocations: 59.97 kB / 0.6343 GB, free: 14.78 MB / 446.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.0005953/0.4733, allocations: 307.3 kB / 0.6346 GB, free: 14.47 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002625/0.4736, allocations: 130.3 kB / 0.6347 GB, free: 14.34 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01143/0.485, allocations: 3.865 MB / 0.6385 GB, free: 10.45 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.434e-05/0.4851, allocations: 8 kB / 0.6385 GB, free: 10.44 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.27e-05/0.4851, allocations: 8 kB / 0.6385 GB, free: 10.43 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.399e-05/0.4851, allocations: 3.984 kB / 0.6385 GB, free: 10.43 MB / 446.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.01409/0.4992, allocations: 5.467 MB / 0.6438 GB, free: 4.848 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.015e-06/0.4993, allocations: 0 / 0.6438 GB, free: 4.848 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005546/0.4998, allocations: 99.89 kB / 0.6439 GB, free: 4.75 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004933/0.5048, allocations: 1.594 MB / 0.6455 GB, free: 3.148 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.742e-05/0.5049, allocations: 23.98 kB / 0.6455 GB, free: 3.125 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01848/0.5234, allocations: 9.632 MB / 0.6549 GB, free: 9.203 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.5234, allocations: 3.938 kB / 0.6549 GB, free: 9.199 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0134/0.5368, allocations: 4.731 MB / 0.6596 GB, free: 4.434 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005311/0.5374, allocations: 219.3 kB / 0.6598 GB, free: 4.199 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001698/0.5376, allocations: 24.06 kB / 0.6598 GB, free: 4.176 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001089/0.5387, allocations: 111.9 kB / 0.6599 GB, free: 4.066 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000577/0.5392, allocations: 196.8 kB / 0.6601 GB, free: 3.875 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.057e-05/0.5393, allocations: 28 kB / 0.6601 GB, free: 3.848 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001002/0.5403, allocations: 0.7274 MB / 0.6608 GB, free: 3.113 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5403, allocations: 0 / 0.6608 GB, free: 3.113 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001265/0.5416, allocations: 479.5 kB / 0.6613 GB, free: 2.645 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 {(19,13,24.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002802/0.5419, allocations: 136 kB / 0.6614 GB, free: 2.504 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005622/0.5475, allocations: 2.505 MB / 0.6638 GB, free: 15.96 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.075e-06/0.5476, allocations: 0 / 0.6638 GB, free: 15.96 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003829/0.5514, allocations: 1.586 MB / 0.6654 GB, free: 14.33 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009326/0.5523, allocations: 116.6 kB / 0.6655 GB, free: 14.21 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003667/0.556, allocations: 2.245 MB / 0.6677 GB, free: 11.95 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006324/0.5567, allocations: 1.124 MB / 0.6688 GB, free: 10.79 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0003975/0.5571, allocations: 124 kB / 0.6689 GB, free: 10.66 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002371/0.5573, allocations: 79.42 kB / 0.669 GB, free: 10.58 MB / 478.1 MB Notification: Performance of SimCode: time 8.32e-07/0.5573, allocations: 0 / 0.669 GB, free: 10.58 MB / 478.1 MB Notification: Performance of Templates: time 0.0329/0.5902, allocations: 23.43 MB / 0.6919 GB, free: 3.176 MB / 494.1 MB make -j1 -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.makefile (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.sim & ./OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe 2>&1)