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.001419/0.001419, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.376/1.376, allocations: 222.9 MB / 239.2 MB, free: 4.578 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.001314/0.001314, allocations: 192.5 kB / 289.5 MB, free: 2.297 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.499/0.499, allocations: 91.9 MB / 431.6 MB, free: 9.258 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002269/0.002269, allocations: 79.88 kB / 0.5019 GB, free: 7.73 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3386/0.3409, allocations: 71.26 MB / 0.5715 GB, free: 36.61 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous): time 0.006899/0.3479, allocations: 6.583 MB / 0.5779 GB, free: 32.82 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003345/0.3513, allocations: 1.968 MB / 0.5798 GB, free: 31.47 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004117/0.3517, allocations: 8.625 kB / 0.5798 GB, free: 31.47 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005666/0.3523, allocations: 243.8 kB / 0.5801 GB, free: 31.34 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001494/0.3538, allocations: 0.7993 MB / 0.5808 GB, free: 30.82 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00103/0.3548, allocations: 0.6368 MB / 0.5815 GB, free: 30.5 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0011/0.356, allocations: 1.577 MB / 0.583 GB, free: 29.72 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003891/0.3564, allocations: 322.3 kB / 0.5833 GB, free: 29.59 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005852/0.3569, allocations: 0.6494 MB / 0.5839 GB, free: 29.27 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006818/0.3576, allocations: 0.82 MB / 0.5847 GB, free: 28.88 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001661/0.3578, allocations: 120.8 kB / 0.5849 GB, free: 28.88 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004565/0.3583, allocations: 263.2 kB / 0.5851 GB, free: 28.84 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002309/0.3585, allocations: 328.5 kB / 0.5854 GB, free: 28.62 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004359/0.359, allocations: 0.6717 MB / 0.5861 GB, free: 28.17 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001209/0.3602, allocations: 1.628 MB / 0.5877 GB, free: 27.44 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.3602, allocations: 5.312 kB / 0.5877 GB, free: 27.43 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3602, allocations: 4 kB / 0.5877 GB, free: 27.43 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.634e-05/0.3602, allocations: 3.938 kB / 0.5877 GB, free: 27.43 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.008272/0.3685, allocations: 2.677 MB / 0.5903 GB, free: 26.16 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.04e-05/0.3686, allocations: 12.97 kB / 0.5903 GB, free: 26.16 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004862/0.3734, allocations: 0.7762 MB / 0.5911 GB, free: 26 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001478/0.3749, allocations: 0.8846 MB / 0.5919 GB, free: 25.4 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002459/0.3752, allocations: 257.5 kB / 0.5922 GB, free: 25.18 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001825/0.3754, allocations: 90.16 kB / 0.5923 GB, free: 25.15 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002024/0.3774, allocations: 1.085 MB / 0.5933 GB, free: 24.73 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.75e-05/0.3774, allocations: 0 / 0.5933 GB, free: 24.73 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.161e-05/0.3775, allocations: 35.19 kB / 0.5933 GB, free: 24.7 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.729e-05/0.3776, allocations: 18.28 kB / 0.5934 GB, free: 24.7 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001914/0.3795, allocations: 0.9882 MB / 0.5943 GB, free: 24.38 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.006958/0.3865, allocations: 3.855 MB / 0.5981 GB, free: 22.16 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007491/0.394, allocations: 2.365 MB / 0.6004 GB, free: 21.33 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001666/0.3957, allocations: 0.6764 MB / 0.6011 GB, free: 21.06 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001365/0.3958, allocations: 16.12 kB / 0.6011 GB, free: 21.06 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002007/0.3979, allocations: 0.8211 MB / 0.6019 GB, free: 20.74 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 5.841e-06/0.3979, allocations: 0 / 0.6019 GB, free: 20.74 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.03067/0.4286, allocations: 7.081 MB / 0.6088 GB, free: 19.35 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.869e-05/0.4287, allocations: 118.7 kB / 0.6089 GB, free: 19.22 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002103/0.4308, allocations: 1.081 MB / 0.61 GB, free: 18.77 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002403/0.431, allocations: 46.77 kB / 0.61 GB, free: 18.73 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003654/0.4314, allocations: 494 kB / 0.6105 GB, free: 18.34 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004358/0.4319, allocations: 356.8 kB / 0.6108 GB, free: 18.06 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006537/0.4325, allocations: 293.9 kB / 0.6111 GB, free: 17.93 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.306e-05/0.4326, allocations: 302.9 kB / 0.6114 GB, free: 17.63 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001702/0.4343, allocations: 0.7648 MB / 0.6121 GB, free: 17.34 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001802/0.4361, allocations: 0.9349 MB / 0.6131 GB, free: 16.87 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02436/0.4605, allocations: 5.586 MB / 0.6185 GB, free: 13.87 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.371e-05/0.4605, allocations: 3.984 kB / 0.6185 GB, free: 13.86 MB / 430.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01288/0.4734, allocations: 4.332 MB / 0.6227 GB, free: 9.504 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.757e-05/0.4735, allocations: 61.58 kB / 0.6228 GB, free: 9.434 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.775e-05/0.4736, allocations: 4 kB / 0.6228 GB, free: 9.43 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005168/0.4787, allocations: 1.513 MB / 0.6243 GB, free: 7.914 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001488/0.4803, allocations: 299.6 kB / 0.6246 GB, free: 7.621 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0179/0.4982, allocations: 8.276 MB / 0.6326 GB, free: 15.19 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002232/0.5005, allocations: 206.8 kB / 0.6328 GB, free: 14.98 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003069/0.5008, allocations: 55.97 kB / 0.6329 GB, free: 14.93 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.0008666/0.5017, allocations: 300.3 kB / 0.6332 GB, free: 14.62 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004338/0.5021, allocations: 130.3 kB / 0.6333 GB, free: 14.49 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01332/0.5154, allocations: 3.869 MB / 0.6371 GB, free: 10.59 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-05/0.5155, allocations: 8 kB / 0.6371 GB, free: 10.59 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.452e-05/0.5155, allocations: 11.94 kB / 0.6371 GB, free: 10.57 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.948e-05/0.5156, allocations: 3.984 kB / 0.6371 GB, free: 10.57 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.01645/0.532, allocations: 5.465 MB / 0.6424 GB, free: 4.992 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.615e-05/0.5321, allocations: 8.031 kB / 0.6425 GB, free: 4.984 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006966/0.5328, allocations: 107.8 kB / 0.6426 GB, free: 4.879 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006163/0.539, allocations: 1.586 MB / 0.6441 GB, free: 3.285 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003068/0.5393, allocations: 31.92 kB / 0.6441 GB, free: 3.254 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02218/0.5615, allocations: 9.642 MB / 0.6536 GB, free: 9.32 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.5616, allocations: 4 kB / 0.6536 GB, free: 9.316 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01538/0.5769, allocations: 4.725 MB / 0.6582 GB, free: 4.559 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005474/0.5775, allocations: 223.3 kB / 0.6584 GB, free: 4.32 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003972/0.5779, allocations: 16 kB / 0.6584 GB, free: 4.305 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001408/0.5794, allocations: 107.9 kB / 0.6585 GB, free: 4.199 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006498/0.58, allocations: 196.7 kB / 0.6587 GB, free: 4.004 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001118/0.5802, allocations: 27.98 kB / 0.6587 GB, free: 3.977 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001223/0.5814, allocations: 0.7274 MB / 0.6594 GB, free: 3.242 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.5814, allocations: 0 / 0.6594 GB, free: 3.242 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001647/0.583, allocations: 479.5 kB / 0.6599 GB, free: 2.773 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.0003015/0.5834, allocations: 141.4 kB / 0.66 GB, free: 2.629 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006849/0.5902, allocations: 2.544 MB / 0.6625 GB, free: 48 kB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.5902, allocations: 0 / 0.6625 GB, free: 48 kB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004535/0.5948, allocations: 1.586 MB / 0.6641 GB, free: 14.42 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001373/0.5962, allocations: 122.3 kB / 0.6642 GB, free: 14.31 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004435/0.6006, allocations: 2.269 MB / 0.6664 GB, free: 12.01 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008863/0.6016, allocations: 1.12 MB / 0.6675 GB, free: 10.86 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0006206/0.6022, allocations: 116 kB / 0.6676 GB, free: 10.74 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003817/0.6026, allocations: 79.41 kB / 0.6677 GB, free: 10.66 MB / 478.1 MB Notification: Performance of SimCode: time 6.01e-07/0.6026, allocations: 4 kB / 0.6677 GB, free: 10.66 MB / 478.1 MB Notification: Performance of Templates: time 0.04112/0.6437, allocations: 23.44 MB / 0.6906 GB, free: 3.254 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)