Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.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.Discretization.FourthOrder_AVRII_Continuous,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_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_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001211/0.001211, allocations: 112.6 kB / 16.37 MB, free: 6 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.328/1.328, allocations: 222.9 MB / 240 MB, free: 4.562 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.001447/0.001447, allocations: 184.5 kB / 290.3 MB, free: 2.293 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5094/0.5094, allocations: 91.9 MB / 432.4 MB, free: 9.191 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001632/0.001632, allocations: 71.89 kB / 0.5033 GB, free: 7 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.363/0.3647, allocations: 71.25 MB / 0.5729 GB, free: 37.23 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous): time 0.005441/0.3702, allocations: 6.594 MB / 0.5793 GB, free: 33.26 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003226/0.3734, allocations: 1.966 MB / 0.5812 GB, free: 31.87 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004942/0.3739, allocations: 14.84 kB / 0.5812 GB, free: 31.87 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005897/0.3745, allocations: 232.4 kB / 0.5815 GB, free: 31.74 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00154/0.3761, allocations: 0.8066 MB / 0.5823 GB, free: 31.22 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001023/0.3772, allocations: 0.6258 MB / 0.5829 GB, free: 30.91 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001098/0.3783, allocations: 1.583 MB / 0.5844 GB, free: 30.14 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003877/0.3787, allocations: 324 kB / 0.5847 GB, free: 30.01 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005648/0.3792, allocations: 0.6594 MB / 0.5854 GB, free: 29.68 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006124/0.3799, allocations: 0.8193 MB / 0.5862 GB, free: 29.29 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001425/0.38, allocations: 121.8 kB / 0.5863 GB, free: 29.29 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004011/0.3804, allocations: 254.4 kB / 0.5865 GB, free: 29.25 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002115/0.3806, allocations: 330.7 kB / 0.5868 GB, free: 29.04 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004036/0.381, allocations: 0.6709 MB / 0.5875 GB, free: 28.58 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001207/0.3823, allocations: 1.657 MB / 0.5891 GB, free: 27.84 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.89e-06/0.3823, allocations: 1.281 kB / 0.5891 GB, free: 27.84 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.3823, allocations: 7.234 kB / 0.5891 GB, free: 27.84 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.134e-05/0.3823, allocations: 0 / 0.5891 GB, free: 27.84 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.007589/0.3899, allocations: 2.679 MB / 0.5917 GB, free: 26.57 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.937e-05/0.39, allocations: 13.38 kB / 0.5917 GB, free: 26.56 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004836/0.3948, allocations: 0.78 MB / 0.5925 GB, free: 26.4 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001356/0.3962, allocations: 0.8777 MB / 0.5934 GB, free: 25.81 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002292/0.3964, allocations: 258.9 kB / 0.5936 GB, free: 25.59 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001518/0.3966, allocations: 85.56 kB / 0.5937 GB, free: 25.56 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001846/0.3984, allocations: 1.092 MB / 0.5948 GB, free: 25.14 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.878e-05/0.3985, allocations: 0 / 0.5948 GB, free: 25.14 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.099e-05/0.3985, allocations: 29.81 kB / 0.5948 GB, free: 25.11 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.939e-05/0.3986, allocations: 23.06 kB / 0.5948 GB, free: 25.11 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001819/0.4004, allocations: 0.9915 MB / 0.5958 GB, free: 24.78 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.006248/0.4066, allocations: 3.832 MB / 0.5995 GB, free: 22.57 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006817/0.4135, allocations: 2.362 MB / 0.6018 GB, free: 21.75 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001494/0.415, allocations: 0.6781 MB / 0.6025 GB, free: 21.48 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000113/0.4151, allocations: 24.84 kB / 0.6025 GB, free: 21.47 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001619/0.4168, allocations: 0.8225 MB / 0.6033 GB, free: 21.15 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 2.494e-06/0.4168, allocations: 0 / 0.6033 GB, free: 21.15 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.02704/0.4438, allocations: 7.083 MB / 0.6102 GB, free: 19.76 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.481e-05/0.4439, allocations: 121 kB / 0.6104 GB, free: 19.62 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001675/0.4456, allocations: 1.086 MB / 0.6114 GB, free: 19.18 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000136/0.4457, allocations: 41.58 kB / 0.6115 GB, free: 19.13 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002961/0.446, allocations: 498 kB / 0.6119 GB, free: 18.73 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002847/0.4463, allocations: 360.8 kB / 0.6123 GB, free: 18.42 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004635/0.4468, allocations: 285.4 kB / 0.6125 GB, free: 18.25 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.805e-05/0.4468, allocations: 302.1 kB / 0.6128 GB, free: 17.96 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001389/0.4482, allocations: 0.7628 MB / 0.6136 GB, free: 17.57 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001517/0.4498, allocations: 0.9338 MB / 0.6145 GB, free: 17.02 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02129/0.4711, allocations: 5.573 MB / 0.6199 GB, free: 13.73 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.198e-06/0.4711, allocations: 0 / 0.6199 GB, free: 13.73 MB / 430.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01128/0.4824, allocations: 4.332 MB / 0.6242 GB, free: 9.371 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.637e-05/0.4825, allocations: 59.41 kB / 0.6242 GB, free: 9.301 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.619e-05/0.4825, allocations: 4 kB / 0.6242 GB, free: 9.297 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004508/0.487, allocations: 1.516 MB / 0.6257 GB, free: 7.777 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001256/0.4883, allocations: 295.6 kB / 0.626 GB, free: 7.488 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0166/0.5049, allocations: 8.264 MB / 0.6341 GB, free: 15.06 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002142/0.5071, allocations: 198.8 kB / 0.6342 GB, free: 14.87 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001257/0.5072, allocations: 59.98 kB / 0.6343 GB, free: 14.81 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.0006137/0.5078, allocations: 304.3 kB / 0.6346 GB, free: 14.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002093/0.508, allocations: 130.3 kB / 0.6347 GB, free: 14.37 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01158/0.5196, allocations: 3.869 MB / 0.6385 GB, free: 10.47 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.08e-05/0.5197, allocations: 8 kB / 0.6385 GB, free: 10.46 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.149e-05/0.5197, allocations: 12 kB / 0.6385 GB, free: 10.45 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.291e-05/0.5197, allocations: 3.984 kB / 0.6385 GB, free: 10.45 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.01357/0.5333, allocations: 5.475 MB / 0.6439 GB, free: 4.863 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.047e-06/0.5333, allocations: 0 / 0.6439 GB, free: 4.863 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005975/0.5339, allocations: 95.91 kB / 0.644 GB, free: 4.77 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005074/0.539, allocations: 1.594 MB / 0.6455 GB, free: 3.168 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001385/0.5391, allocations: 24 kB / 0.6455 GB, free: 3.145 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0188/0.558, allocations: 9.63 MB / 0.6549 GB, free: 9.223 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.558, allocations: 0 / 0.6549 GB, free: 9.223 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01353/0.5715, allocations: 4.731 MB / 0.6596 GB, free: 4.457 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006205/0.5722, allocations: 223.3 kB / 0.6598 GB, free: 4.219 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001815/0.5724, allocations: 20.06 kB / 0.6598 GB, free: 4.199 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001112/0.5735, allocations: 111.9 kB / 0.6599 GB, free: 4.09 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006033/0.5741, allocations: 196.7 kB / 0.6601 GB, free: 3.898 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.039e-05/0.5742, allocations: 27.98 kB / 0.6601 GB, free: 3.871 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001042/0.5752, allocations: 0.7236 MB / 0.6608 GB, free: 3.141 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5752, allocations: 7.938 kB / 0.6608 GB, free: 3.133 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001478/0.5767, allocations: 479.5 kB / 0.6613 GB, free: 2.664 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.000297/0.577, allocations: 132 kB / 0.6614 GB, free: 2.527 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005687/0.5827, allocations: 2.513 MB / 0.6639 GB, free: 15.97 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.5828, allocations: 3.828 kB / 0.6639 GB, free: 15.97 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003959/0.5867, allocations: 1.582 MB / 0.6654 GB, free: 14.34 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001079/0.5878, allocations: 111.6 kB / 0.6655 GB, free: 14.23 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003752/0.5916, allocations: 2.249 MB / 0.6677 GB, free: 11.96 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006205/0.5922, allocations: 1.124 MB / 0.6688 GB, free: 10.8 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0004031/0.5926, allocations: 116.1 kB / 0.6689 GB, free: 10.68 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002394/0.5929, allocations: 83.41 kB / 0.669 GB, free: 10.6 MB / 478.1 MB Notification: Performance of SimCode: time 4.41e-07/0.5929, allocations: 0 / 0.669 GB, free: 10.6 MB / 478.1 MB Notification: Performance of Templates: time 0.03671/0.6296, allocations: 23.44 MB / 0.6919 GB, free: 3.199 MB / 494.1 MB make -j1 -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.makefile (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.sim & ./OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe 2>&1)