Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Tests.Controls.PSAT.OEL.AVRTypeII_OEL_Test.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.Tests.Controls.PSAT.OEL.AVRTypeII_OEL_Test,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Tests.Controls.PSAT.OEL.AVRTypeII_OEL_Test") translateModel(OpenIPSL.Tests.Controls.PSAT.OEL.AVRTypeII_OEL_Test,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Tests.Controls.PSAT.OEL.AVRTypeII_OEL_Test") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009663/0.0009664, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.216/1.216, allocations: 222.9 MB / 238.8 MB, free: 4.762 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.001095/0.001095, allocations: 192.5 kB / 289.1 MB, free: 2.512 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4318/0.4318, allocations: 78.52 MB / 417.8 MB, free: 3.426 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001179/0.001179, allocations: 75.89 kB / 496.8 MB, free: 6.867 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1088, allocations: 68.18 MB / 0.5517 GB, free: 2.641 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Controls.PSAT.OEL.AVRTypeII_OEL_Test): time 0.2175/0.3263, allocations: 7.323 MB / 0.5589 GB, free: 35.69 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003549/0.3299, allocations: 2.175 MB / 0.561 GB, free: 35.1 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005853/0.3305, allocations: 15.75 kB / 0.561 GB, free: 35.1 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006125/0.3311, allocations: 199.5 kB / 0.5612 GB, free: 35.09 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001363/0.3326, allocations: 0.6861 MB / 0.5619 GB, free: 34.94 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 generator.xq <> generator.x1q, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.001251/0.3338, allocations: 0.6936 MB / 0.5625 GB, free: 34.85 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001116/0.3349, allocations: 1.634 MB / 0.5641 GB, free: 34.77 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003841/0.3353, allocations: 363.9 kB / 0.5645 GB, free: 34.69 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00055/0.3359, allocations: 0.6365 MB / 0.5651 GB, free: 34.52 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005894/0.3365, allocations: 0.7933 MB / 0.5659 GB, free: 34.3 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001416/0.3366, allocations: 77.66 kB / 0.5659 GB, free: 34.3 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003767/0.337, allocations: 212.3 kB / 0.5661 GB, free: 34.29 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001925/0.3372, allocations: 296.3 kB / 0.5664 GB, free: 34.2 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003981/0.3376, allocations: 0.6598 MB / 0.5671 GB, free: 33.94 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009838/0.3386, allocations: 1.737 MB / 0.5688 GB, free: 33.54 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.3386, allocations: 2.594 kB / 0.5688 GB, free: 33.54 MB / 430.1 MB Notification: Performance of FrontEnd: time 6.52e-07/0.3386, allocations: 0.9062 kB / 0.5688 GB, free: 33.54 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.268e-05/0.3387, allocations: 0 / 0.5688 GB, free: 33.54 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: 219 * Number of variables: 219 Notification: Performance of Generate backend data structure: time 0.00781/0.3465, allocations: 2.839 MB / 0.5715 GB, free: 32.53 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.326e-05/0.3465, allocations: 8.656 kB / 0.5716 GB, free: 32.53 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00455/0.3511, allocations: 0.7997 MB / 0.5723 GB, free: 32.43 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001247/0.3523, allocations: 0.9318 MB / 0.5732 GB, free: 31.99 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002606/0.3526, allocations: 324.9 kB / 0.5736 GB, free: 31.73 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001505/0.3528, allocations: 92.34 kB / 0.5736 GB, free: 31.73 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002204/0.355, allocations: 1.292 MB / 0.5749 GB, free: 31.63 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.891e-05/0.355, allocations: 3.938 kB / 0.5749 GB, free: 31.63 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.788e-05/0.3551, allocations: 38.75 kB / 0.5749 GB, free: 31.63 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.351e-05/0.3551, allocations: 21 kB / 0.575 GB, free: 31.63 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002222/0.3574, allocations: 1.196 MB / 0.5761 GB, free: 31.61 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.005828/0.3632, allocations: 4.19 MB / 0.5802 GB, free: 29.51 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00281/0.366, allocations: 1.77 MB / 0.582 GB, free: 28.47 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001605/0.3676, allocations: 0.8587 MB / 0.5828 GB, free: 28.12 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001165/0.3678, allocations: 15.77 kB / 0.5828 GB, free: 28.12 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001771/0.3696, allocations: 0.959 MB / 0.5837 GB, free: 27.77 MB / 430.1 MB Notification: Performance of pre-optimization done (n=108): time 3.276e-06/0.3696, allocations: 0 / 0.5837 GB, free: 27.77 MB / 430.1 MB Notification: Performance of matching and sorting (n=108): time 0.03075/0.4003, allocations: 7.899 MB / 0.5915 GB, free: 26.21 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.581e-05/0.4004, allocations: 115 kB / 0.5916 GB, free: 26.08 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001693/0.4021, allocations: 1.044 MB / 0.5926 GB, free: 25.66 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000174/0.4023, allocations: 46.56 kB / 0.5926 GB, free: 25.61 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003359/0.4026, allocations: 0.5236 MB / 0.5931 GB, free: 25.2 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003802/0.403, allocations: 389.4 kB / 0.5935 GB, free: 24.89 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005308/0.4036, allocations: 243.7 kB / 0.5937 GB, free: 24.78 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.548e-05/0.4037, allocations: 358.5 kB / 0.5941 GB, free: 24.45 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001672/0.4053, allocations: 0.7888 MB / 0.5949 GB, free: 24.16 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001742/0.4071, allocations: 0.9456 MB / 0.5958 GB, free: 23.74 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02101/0.4281, allocations: 5.488 MB / 0.6011 GB, free: 22.05 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.213e-06/0.4282, allocations: 5.031 kB / 0.6011 GB, free: 22.04 MB / 430.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.01342/0.4416, allocations: 4.458 MB / 0.6055 GB, free: 20.88 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.106e-05/0.4417, allocations: 60.27 kB / 0.6056 GB, free: 20.82 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.423e-05/0.4417, allocations: 4.062 kB / 0.6056 GB, free: 20.82 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005525/0.4472, allocations: 1.736 MB / 0.6073 GB, free: 20.19 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001431/0.4487, allocations: 280.8 kB / 0.6075 GB, free: 20.12 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01741/0.4661, allocations: 8.327 MB / 0.6157 GB, free: 13.66 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001795/0.4679, allocations: 206.8 kB / 0.6159 GB, free: 13.46 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002165/0.4682, allocations: 47.98 kB / 0.6159 GB, free: 13.41 MB / 430.1 MB Warning: Assuming fixed start value for the following 3 variables: generator.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real generator.delta:VARIABLE(flow=false start = generator.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real generator.e1q:VARIABLE(start = generator.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: 12 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition2,$whenCondition1,oXL.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (141): * Single equations (assignments): 138 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(24,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0006469/0.4688, allocations: 307.4 kB / 0.6162 GB, free: 13.1 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002869/0.4691, allocations: 126.4 kB / 0.6163 GB, free: 12.98 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01271/0.4818, allocations: 4.404 MB / 0.6206 GB, free: 8.543 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.031e-05/0.4819, allocations: 8.875 kB / 0.6206 GB, free: 8.535 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.858e-06/0.4819, allocations: 4 kB / 0.6206 GB, free: 8.531 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.332e-05/0.4819, allocations: 8.5 kB / 0.6206 GB, free: 8.523 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01448/0.4964, allocations: 6.267 MB / 0.6268 GB, free: 2.121 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.849e-06/0.4964, allocations: 4.781 kB / 0.6268 GB, free: 2.117 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006811/0.4971, allocations: 127.8 kB / 0.6269 GB, free: 1.992 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005534/0.5027, allocations: 1.903 MB / 0.6287 GB, free: 88 kB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001596/0.5028, allocations: 25.62 kB / 0.6288 GB, free: 64 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02084/0.5237, allocations: 9.755 MB / 0.6383 GB, free: 6.02 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.5237, allocations: 0 / 0.6383 GB, free: 6.02 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01638/0.5401, allocations: 5.415 MB / 0.6436 GB, free: 0.5703 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004946/0.5407, allocations: 223.2 kB / 0.6438 GB, free: 340 kB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003935/0.5411, allocations: 29.75 kB / 0.6438 GB, free: 312 kB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0015/0.5426, allocations: 139.8 kB / 0.644 GB, free: 172 kB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008344/0.5434, allocations: 231.6 kB / 0.6442 GB, free: 15.95 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001296/0.5436, allocations: 28 kB / 0.6442 GB, free: 15.92 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001224/0.5448, allocations: 0.7045 MB / 0.6449 GB, free: 15.21 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5448, allocations: 0 / 0.6449 GB, free: 15.21 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00186/0.5467, allocations: 483.4 kB / 0.6453 GB, free: 14.73 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 9 (generator.delta,generator.w,generator.e1q,generator.e1d,exciter_Type_II.ExcitationSystem.x_scaled[1],exciter_Type_II.derivativeBlock.x,exciter_Type_II.firstOrder2.y,exciter_Type_II.simpleLagLim.state,oXL.limIntegrator.y) * 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 (67): * Single equations (assignments): 64 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(26,13), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003179/0.547, allocations: 136.9 kB / 0.6455 GB, free: 14.59 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006737/0.5538, allocations: 2.7 MB / 0.6481 GB, free: 11.86 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.5538, allocations: 0 / 0.6481 GB, free: 11.86 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004913/0.5587, allocations: 1.835 MB / 0.6499 GB, free: 9.984 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001197/0.5599, allocations: 126.3 kB / 0.65 GB, free: 9.863 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00521/0.5652, allocations: 2.968 MB / 0.6529 GB, free: 6.898 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007752/0.566, allocations: 1.148 MB / 0.654 GB, free: 5.715 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0005689/0.5666, allocations: 120.7 kB / 0.6542 GB, free: 5.598 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002996/0.5669, allocations: 71.42 kB / 0.6542 GB, free: 5.531 MB / 462.1 MB Notification: Performance of SimCode: time 1.833e-06/0.5669, allocations: 8 kB / 0.6542 GB, free: 5.523 MB / 462.1 MB Notification: Performance of Templates: time 0.03831/0.6052, allocations: 24.63 MB / 0.6783 GB, free: 13.07 MB / 494.1 MB make -j1 -f OpenIPSL_OpenIPSL.Tests.Controls.PSAT.OEL.AVRTypeII_OEL_Test.makefile (rm -f OpenIPSL_OpenIPSL.Tests.Controls.PSAT.OEL.AVRTypeII_OEL_Test.pipe ; mkfifo OpenIPSL_OpenIPSL.Tests.Controls.PSAT.OEL.AVRTypeII_OEL_Test.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Tests.Controls.PSAT.OEL.AVRTypeII_OEL_Test.pipe >> ../files/OpenIPSL_OpenIPSL.Tests.Controls.PSAT.OEL.AVRTypeII_OEL_Test.sim & ./OpenIPSL_OpenIPSL.Tests.Controls.PSAT.OEL.AVRTypeII_OEL_Test -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_OpenIPSL.Tests.Controls.PSAT.OEL.AVRTypeII_OEL_Test.pipe 2>&1)