Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_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.0.1/package.mo", uses=false) Using package OpenIPSL with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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_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_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.004872/0.004872, allocations: 101.2 kB / 15.73 MB, free: 6.047 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.343/1.343, allocations: 222.9 MB / 239.4 MB, free: 4.559 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.001366/0.001366, allocations: 188.5 kB / 289.7 MB, free: 2.258 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4517/0.4517, allocations: 78.53 MB / 418.4 MB, free: 3.172 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001689/0.00169, allocations: 88.36 kB / 0.5536 GB, free: 0.9727 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3371/0.3388, allocations: 68.17 MB / 0.6202 GB, free: 9.746 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous): time 0.006029/0.3449, allocations: 6.562 MB / 0.6266 GB, free: 3.652 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003576/0.3485, allocations: 1.958 MB / 0.6285 GB, free: 1.688 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001009/0.3495, allocations: 12 kB / 0.6285 GB, free: 1.676 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008416/0.3504, allocations: 242 kB / 0.6288 GB, free: 1.438 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002095/0.3525, allocations: 0.801 MB / 0.6296 GB, free: 0.6367 MB / 430.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/Electrical/Machines/PSAT/Order4.mo:25:3-30:9:writable] Warning: In relation order4.xq <> order4.x1q, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.001106/0.3536, allocations: 0.6291 MB / 0.6302 GB, free: 12 kB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001682/0.3553, allocations: 1.588 MB / 0.6317 GB, free: 14.42 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004385/0.3558, allocations: 322.4 kB / 0.632 GB, free: 14.09 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007306/0.3565, allocations: 0.6574 MB / 0.6327 GB, free: 13.43 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008315/0.3574, allocations: 0.8246 MB / 0.6335 GB, free: 12.6 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001548/0.3575, allocations: 120 kB / 0.6336 GB, free: 12.48 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004536/0.358, allocations: 259.9 kB / 0.6338 GB, free: 12.23 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002814/0.3583, allocations: 330.6 kB / 0.6342 GB, free: 11.91 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005459/0.3588, allocations: 0.6641 MB / 0.6348 GB, free: 11.24 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001632/0.3605, allocations: 1.668 MB / 0.6364 GB, free: 9.57 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.531e-06/0.3605, allocations: 0 / 0.6364 GB, free: 9.57 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3605, allocations: 3.938 kB / 0.6364 GB, free: 9.566 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.906e-05/0.3605, allocations: 0 / 0.6364 GB, free: 9.566 MB / 446.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.008376/0.3689, allocations: 2.688 MB / 0.6391 GB, free: 6.809 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.005e-05/0.3689, allocations: 8.031 kB / 0.6391 GB, free: 6.801 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005006/0.374, allocations: 0.7787 MB / 0.6398 GB, free: 6.02 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00157/0.3755, allocations: 0.8747 MB / 0.6407 GB, free: 5.09 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000279/0.3758, allocations: 260.2 kB / 0.6409 GB, free: 4.797 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001853/0.376, allocations: 91.84 kB / 0.641 GB, free: 4.707 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002236/0.3783, allocations: 1.09 MB / 0.6421 GB, free: 3.605 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.088e-05/0.3783, allocations: 0 / 0.6421 GB, free: 3.605 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.707e-05/0.3784, allocations: 32 kB / 0.6421 GB, free: 3.574 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.788e-05/0.3784, allocations: 16 kB / 0.6421 GB, free: 3.559 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002116/0.3806, allocations: 0.9916 MB / 0.6431 GB, free: 2.566 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 preOpt removeSimpleEquations (simulation): time 0.006953/0.3875, allocations: 3.804 MB / 0.6468 GB, free: 14.59 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006998/0.3945, allocations: 2.373 MB / 0.6491 GB, free: 12.12 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001404/0.396, allocations: 0.6801 MB / 0.6498 GB, free: 11.44 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001257/0.3961, allocations: 16.98 kB / 0.6498 GB, free: 11.42 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001611/0.3977, allocations: 0.8215 MB / 0.6506 GB, free: 10.58 MB / 462.1 MB Notification: Performance of pre-optimization done (n=96): time 3.015e-06/0.3977, allocations: 0 / 0.6506 GB, free: 10.58 MB / 462.1 MB Notification: Performance of matching and sorting (n=96): time 0.02832/0.4261, allocations: 7.081 MB / 0.6575 GB, free: 3.434 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.256e-05/0.4262, allocations: 123.8 kB / 0.6576 GB, free: 3.289 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001838/0.428, allocations: 1.083 MB / 0.6587 GB, free: 2.191 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001855/0.4282, allocations: 41.7 kB / 0.6587 GB, free: 2.145 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004148/0.4287, allocations: 488.8 kB / 0.6592 GB, free: 1.66 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00043/0.4291, allocations: 362.9 kB / 0.6596 GB, free: 1.301 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005998/0.4297, allocations: 287.5 kB / 0.6598 GB, free: 1.016 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.08e-05/0.4298, allocations: 305.1 kB / 0.6601 GB, free: 0.7148 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001573/0.4314, allocations: 0.7614 MB / 0.6609 GB, free: 15.95 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002162/0.4336, allocations: 0.9409 MB / 0.6618 GB, free: 14.97 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02288/0.4565, allocations: 5.579 MB / 0.6672 GB, free: 9.309 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.146e-05/0.4565, allocations: 0 / 0.6672 GB, free: 9.309 MB / 478.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01348/0.47, allocations: 4.336 MB / 0.6715 GB, free: 4.945 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001262/0.4702, allocations: 63.41 kB / 0.6715 GB, free: 4.871 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.476e-05/0.4702, allocations: 4 kB / 0.6715 GB, free: 4.867 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005388/0.4756, allocations: 1.516 MB / 0.673 GB, free: 3.348 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001524/0.4771, allocations: 299.6 kB / 0.6733 GB, free: 3.055 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01873/0.4959, allocations: 8.256 MB / 0.6814 GB, free: 10.64 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00182/0.4977, allocations: 206.8 kB / 0.6816 GB, free: 10.44 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002555/0.498, allocations: 55.97 kB / 0.6816 GB, free: 10.38 MB / 494.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.0006978/0.4987, allocations: 296.3 kB / 0.6819 GB, free: 10.08 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003146/0.499, allocations: 130.3 kB / 0.682 GB, free: 9.949 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01211/0.5112, allocations: 3.877 MB / 0.6858 GB, free: 6.035 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.368e-05/0.5112, allocations: 8 kB / 0.6858 GB, free: 6.027 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.021e-05/0.5112, allocations: 8 kB / 0.6858 GB, free: 6.02 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.603e-05/0.5113, allocations: 7.922 kB / 0.6858 GB, free: 6.012 MB / 494.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.01395/0.5252, allocations: 5.456 MB / 0.6912 GB, free: 460 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.989e-06/0.5253, allocations: 4 kB / 0.6912 GB, free: 456 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000592/0.5258, allocations: 99.84 kB / 0.6913 GB, free: 356 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005291/0.5312, allocations: 1.614 MB / 0.6928 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001492/0.5313, allocations: 20 kB / 0.6928 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0194/0.5507, allocations: 9.598 MB / 0.7022 GB, free: 4.824 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.5508, allocations: 0 / 0.7022 GB, free: 4.824 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01423/0.565, allocations: 4.739 MB / 0.7068 GB, free: 52 kB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004531/0.5655, allocations: 227.2 kB / 0.7071 GB, free: 15.81 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003191/0.5658, allocations: 23.98 kB / 0.7071 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001238/0.5671, allocations: 107.9 kB / 0.7072 GB, free: 15.68 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006984/0.5678, allocations: 196.7 kB / 0.7074 GB, free: 15.49 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001372/0.5679, allocations: 28 kB / 0.7074 GB, free: 15.46 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001266/0.5692, allocations: 0.7274 MB / 0.7081 GB, free: 14.73 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2e-07/0.5692, allocations: 0 / 0.7081 GB, free: 14.73 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001483/0.5707, allocations: 467.5 kB / 0.7086 GB, free: 14.27 MB / 0.5137 GB 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 {(21,11,21.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002781/0.571, allocations: 145.4 kB / 0.7087 GB, free: 14.12 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.005813/0.5768, allocations: 2.502 MB / 0.7111 GB, free: 11.57 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/0.5769, allocations: 4.125 kB / 0.7111 GB, free: 11.57 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004042/0.5809, allocations: 1.618 MB / 0.7127 GB, free: 9.914 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009949/0.5819, allocations: 114.6 kB / 0.7128 GB, free: 9.805 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003912/0.5858, allocations: 2.248 MB / 0.715 GB, free: 7.531 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006715/0.5865, allocations: 1.128 MB / 0.7161 GB, free: 6.371 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0004071/0.587, allocations: 112.1 kB / 0.7162 GB, free: 6.258 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002769/0.5872, allocations: 83.41 kB / 0.7163 GB, free: 6.176 MB / 0.5137 GB Notification: Performance of SimCode: time 8.22e-07/0.5872, allocations: 0 / 0.7163 GB, free: 6.176 MB / 0.5137 GB Notification: Performance of Templates: time 0.03968/0.6269, allocations: 23.68 MB / 0.7394 GB, free: 14.5 MB / 0.545 GB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.makefile (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.sim & ./OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe 2>&1)