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.001763/0.001764, allocations: 106.6 kB / 16.27 MB, free: 5.984 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.382/1.382, allocations: 222.9 MB / 239.9 MB, free: 4.621 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.001399/0.0014, allocations: 203.5 kB / 290.2 MB, free: 2.332 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5174/0.5174, allocations: 91.9 MB / 432.3 MB, free: 9.316 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001482/0.001483, allocations: 87.86 kB / 0.5025 GB, free: 7.773 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3804/0.3819, allocations: 71.26 MB / 0.5721 GB, free: 36.76 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous): time 0.006858/0.3888, allocations: 6.581 MB / 0.5786 GB, free: 32.97 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003455/0.3923, allocations: 1.972 MB / 0.5805 GB, free: 31.6 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005901/0.3929, allocations: 11.34 kB / 0.5805 GB, free: 31.6 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006464/0.3936, allocations: 232.9 kB / 0.5807 GB, free: 31.47 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001645/0.3953, allocations: 0.803 MB / 0.5815 GB, free: 30.95 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001124/0.3964, allocations: 0.6345 MB / 0.5821 GB, free: 30.64 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001271/0.3977, allocations: 1.576 MB / 0.5837 GB, free: 29.86 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004047/0.3981, allocations: 330.9 kB / 0.584 GB, free: 29.72 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007097/0.3988, allocations: 0.6472 MB / 0.5846 GB, free: 29.4 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007205/0.3996, allocations: 0.827 MB / 0.5854 GB, free: 29 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001778/0.3998, allocations: 119.2 kB / 0.5855 GB, free: 29 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004979/0.4003, allocations: 262.1 kB / 0.5858 GB, free: 28.96 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002335/0.4005, allocations: 328.2 kB / 0.5861 GB, free: 28.75 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004513/0.401, allocations: 0.6658 MB / 0.5867 GB, free: 28.29 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001404/0.4024, allocations: 1.637 MB / 0.5883 GB, free: 27.56 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.4024, allocations: 0 / 0.5883 GB, free: 27.56 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.406e-06/0.4024, allocations: 0 / 0.5883 GB, free: 27.56 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.192e-05/0.4024, allocations: 3.938 kB / 0.5883 GB, free: 27.55 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.008691/0.4111, allocations: 2.685 MB / 0.591 GB, free: 26.28 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.126e-05/0.4112, allocations: 10.28 kB / 0.591 GB, free: 26.28 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004955/0.4161, allocations: 0.7748 MB / 0.5917 GB, free: 26.12 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001519/0.4177, allocations: 0.8879 MB / 0.5926 GB, free: 25.52 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002528/0.4179, allocations: 254.4 kB / 0.5928 GB, free: 25.31 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001641/0.4181, allocations: 87.44 kB / 0.5929 GB, free: 25.28 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002047/0.4202, allocations: 1.083 MB / 0.594 GB, free: 24.86 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.015e-05/0.4202, allocations: 5 kB / 0.594 GB, free: 24.86 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.123e-05/0.4203, allocations: 29.81 kB / 0.594 GB, free: 24.83 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.231e-05/0.4203, allocations: 18.97 kB / 0.594 GB, free: 24.83 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001995/0.4223, allocations: 0.9903 MB / 0.595 GB, free: 24.5 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.006845/0.4292, allocations: 3.854 MB / 0.5988 GB, free: 22.29 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007469/0.4367, allocations: 2.365 MB / 0.6011 GB, free: 21.46 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001546/0.4383, allocations: 0.6752 MB / 0.6017 GB, free: 21.19 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001008/0.4384, allocations: 21.56 kB / 0.6017 GB, free: 21.18 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001762/0.4401, allocations: 0.8162 MB / 0.6025 GB, free: 20.87 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 3.908e-06/0.4402, allocations: 0 / 0.6025 GB, free: 20.87 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.0303/0.4705, allocations: 7.091 MB / 0.6095 GB, free: 19.47 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.652e-05/0.4706, allocations: 118.2 kB / 0.6096 GB, free: 19.34 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001926/0.4725, allocations: 1.084 MB / 0.6106 GB, free: 18.89 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002683/0.4728, allocations: 43 kB / 0.6107 GB, free: 18.85 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003578/0.4732, allocations: 494 kB / 0.6112 GB, free: 18.46 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003865/0.4736, allocations: 357.5 kB / 0.6115 GB, free: 18.18 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005237/0.4741, allocations: 285.3 kB / 0.6118 GB, free: 18.05 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.904e-05/0.4742, allocations: 306.9 kB / 0.6121 GB, free: 17.75 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001681/0.4759, allocations: 0.7604 MB / 0.6128 GB, free: 17.47 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001782/0.4777, allocations: 0.9458 MB / 0.6137 GB, free: 17.02 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02359/0.5013, allocations: 5.587 MB / 0.6192 GB, free: 13.9 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.223e-05/0.5013, allocations: 0 / 0.6192 GB, free: 13.9 MB / 430.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01214/0.5135, allocations: 4.332 MB / 0.6234 GB, free: 9.543 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.904e-05/0.5136, allocations: 61.59 kB / 0.6235 GB, free: 9.473 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.66e-05/0.5136, allocations: 7.984 kB / 0.6235 GB, free: 9.465 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004947/0.5185, allocations: 1.512 MB / 0.625 GB, free: 7.949 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001499/0.5201, allocations: 299.6 kB / 0.6252 GB, free: 7.656 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01701/0.5371, allocations: 8.272 MB / 0.6333 GB, free: 15.23 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002367/0.5395, allocations: 202.8 kB / 0.6335 GB, free: 15.03 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001381/0.5397, allocations: 55.97 kB / 0.6336 GB, free: 14.97 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.0007396/0.5404, allocations: 312.3 kB / 0.6339 GB, free: 14.65 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002513/0.5407, allocations: 130.3 kB / 0.634 GB, free: 14.52 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01269/0.5534, allocations: 3.869 MB / 0.6378 GB, free: 10.62 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.015e-05/0.5534, allocations: 8 kB / 0.6378 GB, free: 10.62 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.733e-05/0.5535, allocations: 11.94 kB / 0.6378 GB, free: 10.61 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.629e-05/0.5535, allocations: 3.984 kB / 0.6378 GB, free: 10.6 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.01509/0.5686, allocations: 5.465 MB / 0.6431 GB, free: 5.023 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.717e-06/0.5686, allocations: 0 / 0.6431 GB, free: 5.023 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006101/0.5693, allocations: 103.8 kB / 0.6432 GB, free: 4.922 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005489/0.5748, allocations: 1.594 MB / 0.6448 GB, free: 3.32 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001616/0.5749, allocations: 23.94 kB / 0.6448 GB, free: 3.297 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02051/0.5955, allocations: 9.634 MB / 0.6542 GB, free: 9.371 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.078e-05/0.5955, allocations: 8.062 kB / 0.6542 GB, free: 9.363 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0147/0.6102, allocations: 4.729 MB / 0.6588 GB, free: 4.602 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006063/0.6109, allocations: 223.3 kB / 0.6591 GB, free: 4.363 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002227/0.6111, allocations: 24 kB / 0.6591 GB, free: 4.34 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001161/0.6123, allocations: 103.9 kB / 0.6592 GB, free: 4.238 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006046/0.6129, allocations: 196.9 kB / 0.6594 GB, free: 4.043 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.994e-05/0.613, allocations: 31.98 kB / 0.6594 GB, free: 4.012 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001126/0.6141, allocations: 0.7312 MB / 0.6601 GB, free: 3.273 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6141, allocations: 0 / 0.6601 GB, free: 3.273 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001548/0.6157, allocations: 475.5 kB / 0.6606 GB, free: 2.809 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.0003207/0.616, allocations: 144.5 kB / 0.6607 GB, free: 2.664 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006708/0.6227, allocations: 2.541 MB / 0.6632 GB, free: 88 kB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.6228, allocations: 0 / 0.6632 GB, free: 88 kB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004275/0.6271, allocations: 1.578 MB / 0.6647 GB, free: 14.47 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00104/0.6281, allocations: 120.1 kB / 0.6648 GB, free: 14.35 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0041/0.6322, allocations: 2.312 MB / 0.6671 GB, free: 12.01 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006585/0.6329, allocations: 1.12 MB / 0.6682 GB, free: 10.86 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003324/0.6332, allocations: 91.36 kB / 0.6683 GB, free: 10.77 MB / 478.1 MB Notification: Performance of SimCode: time 6.62e-07/0.6333, allocations: 0 / 0.6683 GB, free: 10.77 MB / 478.1 MB Notification: Performance of Templates: time 0.02871/0.662, allocations: 23.38 MB / 0.6911 GB, free: 3.402 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 -lv LOG_STATS > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe 2>&1)