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.00111/0.00111, allocations: 99.5 kB / 16.02 MB, free: 76 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.371/1.371, allocations: 223.3 MB / 240 MB, free: 5.348 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.001616/0.001616, allocations: 180.5 kB / 291.3 MB, free: 2.023 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5225/0.5225, allocations: 91.93 MB / 434.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003783/0.0003783, allocations: 12 kB / 0.5054 GB, free: 7.254 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3856/0.386, allocations: 72.47 MB / 0.5762 GB, free: 36.54 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous): time 0.00506/0.3911, allocations: 6.413 MB / 0.5824 GB, free: 32.32 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003418/0.3946, allocations: 2.008 MB / 0.5844 GB, free: 30.9 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004815/0.3951, allocations: 11.75 kB / 0.5844 GB, free: 30.9 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005881/0.3957, allocations: 187.8 kB / 0.5846 GB, free: 30.82 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001501/0.3972, allocations: 0.7087 MB / 0.5853 GB, free: 30.37 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001024/0.3982, allocations: 0.5778 MB / 0.5859 GB, free: 30.07 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.00122/0.3995, allocations: 1.501 MB / 0.5873 GB, free: 29.35 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004259/0.3999, allocations: 286.8 kB / 0.5876 GB, free: 29.22 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006593/0.4006, allocations: 0.5658 MB / 0.5881 GB, free: 28.97 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006256/0.4012, allocations: 0.7411 MB / 0.5889 GB, free: 28.64 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001197/0.4013, allocations: 61.64 kB / 0.5889 GB, free: 28.64 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003651/0.4017, allocations: 191.4 kB / 0.5891 GB, free: 28.59 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001913/0.4019, allocations: 260.2 kB / 0.5894 GB, free: 28.45 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004112/0.4023, allocations: 0.6298 MB / 0.59 GB, free: 28.02 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008655/0.4032, allocations: 1.225 MB / 0.5912 GB, free: 27.66 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.4032, allocations: 0 / 0.5912 GB, free: 27.66 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.993e-06/0.4032, allocations: 0 / 0.5912 GB, free: 27.66 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.363e-05/0.4032, allocations: 0 / 0.5912 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.007857/0.4111, allocations: 2.483 MB / 0.5936 GB, free: 26.54 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.401e-05/0.4111, allocations: 10.03 kB / 0.5936 GB, free: 26.54 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004939/0.4161, allocations: 0.7827 MB / 0.5944 GB, free: 26.38 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001391/0.4175, allocations: 0.8813 MB / 0.5952 GB, free: 25.79 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002702/0.4178, allocations: 270.1 kB / 0.5955 GB, free: 25.56 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001831/0.418, allocations: 89.72 kB / 0.5956 GB, free: 25.53 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002269/0.4202, allocations: 1.147 MB / 0.5967 GB, free: 25.11 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.086e-05/0.4203, allocations: 0 / 0.5967 GB, free: 25.11 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.646e-05/0.4204, allocations: 30.44 kB / 0.5967 GB, free: 25.09 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.282e-05/0.4204, allocations: 22.38 kB / 0.5967 GB, free: 25.08 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002055/0.4225, allocations: 1.049 MB / 0.5978 GB, free: 24.74 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.006876/0.4294, allocations: 3.944 MB / 0.6016 GB, free: 22.52 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008384/0.4378, allocations: 2.905 MB / 0.6045 GB, free: 21.63 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001676/0.4395, allocations: 0.7419 MB / 0.6052 GB, free: 21.36 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001116/0.4396, allocations: 19.83 kB / 0.6052 GB, free: 21.35 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001868/0.4415, allocations: 0.8801 MB / 0.6061 GB, free: 21.02 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 2.976e-06/0.4415, allocations: 4 kB / 0.6061 GB, free: 21.02 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.03363/0.4751, allocations: 8.664 MB / 0.6145 GB, free: 19.45 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.838e-05/0.4752, allocations: 126.5 kB / 0.6146 GB, free: 19.31 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002357/0.4776, allocations: 1.082 MB / 0.6157 GB, free: 18.86 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003131/0.4779, allocations: 42.7 kB / 0.6157 GB, free: 18.82 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004009/0.4783, allocations: 498.1 kB / 0.6162 GB, free: 18.43 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000415/0.4788, allocations: 357.2 kB / 0.6166 GB, free: 18.15 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002498/0.479, allocations: 145 kB / 0.6167 GB, free: 18.08 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 6.216e-05/0.4791, allocations: 303 kB / 0.617 GB, free: 17.79 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001776/0.4809, allocations: 0.8273 MB / 0.6178 GB, free: 17.4 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001868/0.4827, allocations: 0.9965 MB / 0.6188 GB, free: 16.84 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02273/0.5055, allocations: 6.005 MB / 0.6246 GB, free: 11.48 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.494e-05/0.5056, allocations: 0 / 0.6246 GB, free: 11.48 MB / 430.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01296/0.5185, allocations: 5.164 MB / 0.6297 GB, free: 6.285 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.819e-05/0.5186, allocations: 63.39 kB / 0.6297 GB, free: 6.211 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.427e-05/0.5186, allocations: 4 kB / 0.6297 GB, free: 6.207 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005225/0.5239, allocations: 1.798 MB / 0.6315 GB, free: 4.406 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001422/0.5253, allocations: 299.5 kB / 0.6318 GB, free: 4.113 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01863/0.544, allocations: 8.617 MB / 0.6402 GB, free: 11.34 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002097/0.5461, allocations: 234.8 kB / 0.6404 GB, free: 11.11 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001275/0.5462, allocations: 59.97 kB / 0.6405 GB, free: 11.05 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.0006701/0.5469, allocations: 301.5 kB / 0.6408 GB, free: 10.75 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002059/0.5471, allocations: 122.4 kB / 0.6409 GB, free: 10.63 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01415/0.5613, allocations: 4.725 MB / 0.6455 GB, free: 5.867 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.586e-05/0.5613, allocations: 12 kB / 0.6455 GB, free: 5.855 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.466e-05/0.5613, allocations: 11.94 kB / 0.6455 GB, free: 5.844 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.876e-05/0.5614, allocations: 3.984 kB / 0.6455 GB, free: 5.84 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.0162/0.5776, allocations: 6.317 MB / 0.6517 GB, free: 15.41 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-05/0.5776, allocations: 0 / 0.6517 GB, free: 15.41 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006576/0.5783, allocations: 99.83 kB / 0.6518 GB, free: 15.32 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006099/0.5844, allocations: 1.867 MB / 0.6536 GB, free: 13.44 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001736/0.5846, allocations: 23.98 kB / 0.6536 GB, free: 13.42 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02094/0.6056, allocations: 9.685 MB / 0.6631 GB, free: 3.453 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.6056, allocations: 7.984 kB / 0.6631 GB, free: 3.445 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0164/0.622, allocations: 5.647 MB / 0.6686 GB, free: 13.77 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006269/0.6227, allocations: 223.4 kB / 0.6688 GB, free: 13.53 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004413/0.6232, allocations: 16 kB / 0.6688 GB, free: 13.51 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00155/0.6247, allocations: 151.9 kB / 0.669 GB, free: 13.36 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006939/0.6254, allocations: 196.6 kB / 0.6692 GB, free: 13.17 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001237/0.6256, allocations: 28 kB / 0.6692 GB, free: 13.14 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001378/0.627, allocations: 0.7313 MB / 0.6699 GB, free: 12.4 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.627, allocations: 0 / 0.6699 GB, free: 12.4 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001876/0.6289, allocations: 475.4 kB / 0.6704 GB, free: 11.94 MB / 478.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.000336/0.6292, allocations: 135.2 kB / 0.6705 GB, free: 11.79 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007112/0.6363, allocations: 2.779 MB / 0.6732 GB, free: 8.98 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.6364, allocations: 0 / 0.6732 GB, free: 8.98 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0049/0.6413, allocations: 1.797 MB / 0.675 GB, free: 7.145 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001473/0.6428, allocations: 126.8 kB / 0.6751 GB, free: 7.023 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00495/0.6477, allocations: 2.809 MB / 0.6778 GB, free: 4.184 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008997/0.6486, allocations: 1.12 MB / 0.6789 GB, free: 3.031 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004439/0.6491, allocations: 87.41 kB / 0.679 GB, free: 2.945 MB / 478.1 MB Notification: Performance of SimCode: time 9.42e-07/0.6491, allocations: 0 / 0.679 GB, free: 2.945 MB / 478.1 MB Notification: Performance of Templates: time 0.04828/0.6974, allocations: 23.25 MB / 0.7017 GB, free: 11.71 MB / 0.4981 GB 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)