Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Tests.Controls.PSAT.OEL.AVRTypeII_OEL_Test.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) 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 3.2.3+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 2.0.0/package.mo", uses=false) Using package OpenIPSL with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Running command: translateModel(OpenIPSL.Tests.Controls.PSAT.OEL.AVRTypeII_OEL_Test,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_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_2.0.0_OpenIPSL.Tests.Controls.PSAT.OEL.AVRTypeII_OEL_Test") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1678/0.1678, allocations: 12.6 MB / 28.1 MB, free: 184 kB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00177/0.00177, allocations: 107.5 kB / 31.7 MB, free: 3.492 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.58/1.58, allocations: 205.1 MB / 240.3 MB, free: 12.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001326/0.001326, allocations: 192.4 kB / 290.5 MB, free: 13.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.4371/0.4371, allocations: 78.5 MB / 419.1 MB, free: 11.35 MB / 302.1 MB Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: OpenIPSL requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.004429/0.00443, allocations: 143.8 kB / 499.8 MB, free: 10.82 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4266/0.431, allocations: 68.11 MB / 0.5546 GB, free: 32.49 MB / 398.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Controls.PSAT.OEL.AVRTypeII_OEL_Test): time 0.007973/0.4391, allocations: 7.031 MB / 0.5614 GB, free: 27.36 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005353/0.4445, allocations: 2.088 MB / 0.5635 GB, free: 25.8 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00191/0.4464, allocations: 17.28 kB / 0.5635 GB, free: 25.8 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001069/0.4475, allocations: 259.7 kB / 0.5637 GB, free: 25.58 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002497/0.45, allocations: 0.7734 MB / 0.5645 GB, free: 24.95 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/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.001867/0.4519, allocations: 0.7578 MB / 0.5652 GB, free: 24.38 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002573/0.4545, allocations: 1.718 MB / 0.5669 GB, free: 23.34 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008137/0.4553, allocations: 405.2 kB / 0.5673 GB, free: 23.1 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001583/0.4569, allocations: 0.6987 MB / 0.568 GB, free: 22.67 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001118/0.458, allocations: 0.8494 MB / 0.5688 GB, free: 22.07 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003022/0.4583, allocations: 131.8 kB / 0.5689 GB, free: 22.07 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009455/0.4593, allocations: 265.7 kB / 0.5692 GB, free: 22.01 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003792/0.4597, allocations: 349.9 kB / 0.5695 GB, free: 21.71 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008052/0.4605, allocations: 0.7153 MB / 0.5702 GB, free: 21.16 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002155/0.4627, allocations: 1.791 MB / 0.572 GB, free: 19.8 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.126e-06/0.4627, allocations: 1.25 kB / 0.572 GB, free: 19.8 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.697e-06/0.4627, allocations: 0 / 0.572 GB, free: 19.8 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.858e-05/0.4627, allocations: 3.938 kB / 0.572 GB, free: 19.8 MB / 398.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.009688/0.4724, allocations: 2.845 MB / 0.5748 GB, free: 18.01 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.419e-05/0.4725, allocations: 13.64 kB / 0.5748 GB, free: 18.01 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005201/0.4777, allocations: 0.7952 MB / 0.5755 GB, free: 17.68 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00164/0.4794, allocations: 0.9169 MB / 0.5764 GB, free: 16.93 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003341/0.4797, allocations: 334.1 kB / 0.5768 GB, free: 16.61 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001572/0.4799, allocations: 95.84 kB / 0.5769 GB, free: 16.52 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00232/0.4822, allocations: 1.291 MB / 0.5781 GB, free: 15.2 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.101e-05/0.4822, allocations: 0 / 0.5781 GB, free: 15.2 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001043/0.4823, allocations: 36 kB / 0.5781 GB, free: 15.17 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.777e-05/0.4824, allocations: 20 kB / 0.5782 GB, free: 15.15 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002295/0.4847, allocations: 1.202 MB / 0.5793 GB, free: 13.95 MB / 398.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.005974/0.4907, allocations: 4.176 MB / 0.5834 GB, free: 9.609 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003062/0.4937, allocations: 1.78 MB / 0.5852 GB, free: 7.699 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001539/0.4953, allocations: 0.8562 MB / 0.586 GB, free: 6.836 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001208/0.4954, allocations: 16.98 kB / 0.586 GB, free: 6.82 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001812/0.4973, allocations: 0.9607 MB / 0.5869 GB, free: 5.844 MB / 398.1 MB Notification: Performance of pre-optimization done (n=108): time 3.096e-06/0.4973, allocations: 0 / 0.5869 GB, free: 5.844 MB / 398.1 MB Notification: Performance of matching and sorting (n=108): time 0.03223/0.5295, allocations: 7.897 MB / 0.5947 GB, free: 13.88 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001042/0.5297, allocations: 115.8 kB / 0.5948 GB, free: 13.74 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001973/0.5317, allocations: 1.041 MB / 0.5958 GB, free: 12.69 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003311/0.532, allocations: 45.73 kB / 0.5958 GB, free: 12.64 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004304/0.5325, allocations: 0.5284 MB / 0.5963 GB, free: 12.1 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004619/0.5329, allocations: 386.5 kB / 0.5967 GB, free: 11.72 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004751/0.5334, allocations: 243.5 kB / 0.5969 GB, free: 11.48 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001626/0.5336, allocations: 357.9 kB / 0.5973 GB, free: 11.12 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001754/0.5353, allocations: 0.7886 MB / 0.5981 GB, free: 10.33 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001873/0.5372, allocations: 0.9406 MB / 0.599 GB, free: 9.355 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02244/0.5597, allocations: 5.512 MB / 0.6044 GB, free: 3.762 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.105e-05/0.5597, allocations: 3.938 kB / 0.6044 GB, free: 3.758 MB / 414.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.01496/0.5747, allocations: 4.459 MB / 0.6087 GB, free: 15.27 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.383e-05/0.5748, allocations: 63.41 kB / 0.6088 GB, free: 15.2 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.353e-05/0.5749, allocations: 0 / 0.6088 GB, free: 15.2 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006296/0.5812, allocations: 1.75 MB / 0.6105 GB, free: 13.44 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001653/0.5829, allocations: 279.6 kB / 0.6108 GB, free: 13.17 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02236/0.6052, allocations: 9.052 MB / 0.6196 GB, free: 3.969 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00214/0.6074, allocations: 202.8 kB / 0.6198 GB, free: 3.77 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003079/0.6077, allocations: 51.98 kB / 0.6198 GB, free: 3.719 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.0008674/0.6086, allocations: 299.7 kB / 0.6201 GB, free: 3.41 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004514/0.6091, allocations: 134.3 kB / 0.6203 GB, free: 3.277 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0157/0.6248, allocations: 4.401 MB / 0.6245 GB, free: 14.85 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.802e-05/0.6249, allocations: 12 kB / 0.6246 GB, free: 14.84 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.6249, allocations: 0 / 0.6246 GB, free: 14.84 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.019e-05/0.6249, allocations: 11.97 kB / 0.6246 GB, free: 14.82 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01877/0.6437, allocations: 6.267 MB / 0.6307 GB, free: 8.422 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.05e-05/0.6437, allocations: 0 / 0.6307 GB, free: 8.422 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007427/0.6445, allocations: 127.8 kB / 0.6308 GB, free: 8.297 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006997/0.6515, allocations: 1.907 MB / 0.6327 GB, free: 6.383 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002364/0.6518, allocations: 23.98 kB / 0.6327 GB, free: 6.359 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02566/0.6774, allocations: 10.72 MB / 0.6432 GB, free: 11.34 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.232e-06/0.6775, allocations: 0 / 0.6432 GB, free: 11.34 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0184/0.6959, allocations: 5.435 MB / 0.6485 GB, free: 5.875 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000619/0.6966, allocations: 219.2 kB / 0.6487 GB, free: 5.641 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000483/0.6971, allocations: 27.98 kB / 0.6487 GB, free: 5.613 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001769/0.6989, allocations: 135.8 kB / 0.6488 GB, free: 5.48 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009415/0.6998, allocations: 236.6 kB / 0.6491 GB, free: 5.25 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001509/0.7, allocations: 28 kB / 0.6491 GB, free: 5.223 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001532/0.7015, allocations: 0.7083 MB / 0.6498 GB, free: 4.508 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.7016, allocations: 0 / 0.6498 GB, free: 4.508 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002262/0.7038, allocations: 483.4 kB / 0.6502 GB, free: 4.035 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.0004541/0.7043, allocations: 135.9 kB / 0.6504 GB, free: 3.891 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008757/0.7131, allocations: 2.769 MB / 0.6531 GB, free: 1.086 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/0.7131, allocations: 0 / 0.6531 GB, free: 1.086 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006108/0.7192, allocations: 1.891 MB / 0.6549 GB, free: 15.15 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001568/0.7208, allocations: 126.5 kB / 0.655 GB, free: 15.03 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006324/0.7271, allocations: 2.513 MB / 0.6575 GB, free: 12.49 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008736/0.728, allocations: 1.151 MB / 0.6586 GB, free: 11.31 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0005436/0.7286, allocations: 112.3 kB / 0.6587 GB, free: 11.2 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003227/0.7289, allocations: 87.41 kB / 0.6588 GB, free: 11.11 MB / 478.1 MB Notification: Performance of SimCode: time 1.002e-06/0.7289, allocations: 0 / 0.6588 GB, free: 11.11 MB / 478.1 MB Notification: Performance of Templates: time 0.04859/0.7775, allocations: 27.34 MB / 0.6855 GB, free: 15.78 MB / 0.4981 GB make -j1 -f OpenIPSL_2.0.0_OpenIPSL.Tests.Controls.PSAT.OEL.AVRTypeII_OEL_Test.makefile (rm -f OpenIPSL_2.0.0_OpenIPSL.Tests.Controls.PSAT.OEL.AVRTypeII_OEL_Test.pipe ; mkfifo OpenIPSL_2.0.0_OpenIPSL.Tests.Controls.PSAT.OEL.AVRTypeII_OEL_Test.pipe ; head -c 1048576 < OpenIPSL_2.0.0_OpenIPSL.Tests.Controls.PSAT.OEL.AVRTypeII_OEL_Test.pipe >> ../files/OpenIPSL_2.0.0_OpenIPSL.Tests.Controls.PSAT.OEL.AVRTypeII_OEL_Test.sim & ./OpenIPSL_2.0.0_OpenIPSL.Tests.Controls.PSAT.OEL.AVRTypeII_OEL_Test -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_2.0.0_OpenIPSL.Tests.Controls.PSAT.OEL.AVRTypeII_OEL_Test.pipe 2>&1)