Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.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.TwoAreaOld.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001046/0.001046, allocations: 107.3 kB / 15.33 MB, free: 0.5078 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.35/1.35, allocations: 222.9 MB / 239 MB, free: 4.73 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.001459/0.001459, allocations: 196.3 kB / 289.3 MB, free: 2.465 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4563/0.4563, allocations: 78.52 MB / 417.9 MB, free: 3.371 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001346/0.001346, allocations: 75.88 kB / 496.9 MB, free: 6.734 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1442/0.1455, allocations: 68.18 MB / 0.5519 GB, free: 2.516 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.2898/0.4354, allocations: 6.86 MB / 0.5586 GB, free: 35.98 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.00431/0.4398, allocations: 1.986 MB / 0.5605 GB, free: 35.44 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007735/0.4406, allocations: 10.91 kB / 0.5605 GB, free: 35.44 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007762/0.4414, allocations: 185.5 kB / 0.5607 GB, free: 35.43 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001753/0.4432, allocations: 0.7078 MB / 0.5614 GB, free: 35.28 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.001194/0.4444, allocations: 0.5861 MB / 0.562 GB, free: 35.2 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001373/0.4458, allocations: 1.573 MB / 0.5635 GB, free: 35.12 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004444/0.4463, allocations: 321.9 kB / 0.5638 GB, free: 35.07 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006626/0.4469, allocations: 0.6628 MB / 0.5645 GB, free: 34.93 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007465/0.4477, allocations: 0.8224 MB / 0.5653 GB, free: 34.73 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002021/0.4479, allocations: 122.6 kB / 0.5654 GB, free: 34.73 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005208/0.4484, allocations: 259.4 kB / 0.5656 GB, free: 34.72 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002727/0.4487, allocations: 333.3 kB / 0.5659 GB, free: 34.64 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004734/0.4492, allocations: 0.6738 MB / 0.5666 GB, free: 34.4 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001385/0.4506, allocations: 1.634 MB / 0.5682 GB, free: 34.03 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.4506, allocations: 0.6875 kB / 0.5682 GB, free: 34.03 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.4506, allocations: 0 / 0.5682 GB, free: 34.03 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.488e-05/0.4506, allocations: 0.8125 kB / 0.5682 GB, free: 34.03 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.008418/0.459, allocations: 2.688 MB / 0.5708 GB, free: 33.05 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.701e-05/0.4591, allocations: 11.62 kB / 0.5708 GB, free: 33.05 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004725/0.4638, allocations: 0.7744 MB / 0.5716 GB, free: 32.95 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001472/0.4653, allocations: 0.8898 MB / 0.5725 GB, free: 32.54 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002626/0.4656, allocations: 257.6 kB / 0.5727 GB, free: 32.35 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001591/0.4658, allocations: 85.81 kB / 0.5728 GB, free: 32.35 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001982/0.4678, allocations: 1.096 MB / 0.5739 GB, free: 32.26 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.011e-05/0.4678, allocations: 0 / 0.5739 GB, free: 32.26 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.055e-05/0.4679, allocations: 28.31 kB / 0.5739 GB, free: 32.26 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.553e-05/0.4679, allocations: 19.06 kB / 0.5739 GB, free: 32.26 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001754/0.4697, allocations: 0.9855 MB / 0.5749 GB, free: 32.25 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.005788/0.4755, allocations: 3.827 MB / 0.5786 GB, free: 30.53 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006826/0.4823, allocations: 2.372 MB / 0.5809 GB, free: 29.71 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001375/0.4837, allocations: 0.6779 MB / 0.5816 GB, free: 29.44 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001099/0.4838, allocations: 11.47 kB / 0.5816 GB, free: 29.44 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001559/0.4854, allocations: 0.8257 MB / 0.5824 GB, free: 29.12 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 4.198e-06/0.4854, allocations: 1.781 kB / 0.5824 GB, free: 29.12 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.02904/0.5145, allocations: 7.083 MB / 0.5893 GB, free: 27.73 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.363e-05/0.5146, allocations: 118.9 kB / 0.5894 GB, free: 27.6 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002074/0.5167, allocations: 1.083 MB / 0.5905 GB, free: 27.15 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002926/0.517, allocations: 47.22 kB / 0.5905 GB, free: 27.11 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003551/0.5173, allocations: 490.7 kB / 0.591 GB, free: 26.72 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004026/0.5177, allocations: 364.5 kB / 0.5913 GB, free: 26.44 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005506/0.5183, allocations: 286.7 kB / 0.5916 GB, free: 26.31 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.598e-05/0.5184, allocations: 301.1 kB / 0.5919 GB, free: 26.01 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001618/0.52, allocations: 0.7656 MB / 0.5926 GB, free: 25.73 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001698/0.5217, allocations: 0.9379 MB / 0.5936 GB, free: 25.29 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02424/0.5459, allocations: 5.601 MB / 0.599 GB, free: 23.54 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.37e-05/0.546, allocations: 1.438 kB / 0.599 GB, free: 23.54 MB / 430.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01408/0.5601, allocations: 4.336 MB / 0.6033 GB, free: 22.36 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.651e-05/0.5602, allocations: 64.08 kB / 0.6033 GB, free: 22.29 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.957e-05/0.5602, allocations: 3.734 kB / 0.6033 GB, free: 22.29 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005714/0.566, allocations: 1.505 MB / 0.6048 GB, free: 22.02 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001701/0.5677, allocations: 301.5 kB / 0.6051 GB, free: 21.99 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01859/0.5863, allocations: 8.262 MB / 0.6132 GB, free: 16.3 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00222/0.5886, allocations: 203.7 kB / 0.6134 GB, free: 16.11 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003417/0.5889, allocations: 59.97 kB / 0.6134 GB, free: 16.05 MB / 430.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.0008675/0.5898, allocations: 303.8 kB / 0.6137 GB, free: 15.74 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003958/0.5902, allocations: 130.3 kB / 0.6138 GB, free: 15.61 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01126/0.6015, allocations: 3.878 MB / 0.6176 GB, free: 11.7 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.052e-05/0.6016, allocations: 8 kB / 0.6176 GB, free: 11.7 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.593e-05/0.6016, allocations: 9.594 kB / 0.6176 GB, free: 11.69 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-05/0.6016, allocations: 7.922 kB / 0.6176 GB, free: 11.68 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 postOpt removeSimpleEquations (simulation): time 0.01288/0.6145, allocations: 5.455 MB / 0.623 GB, free: 6.117 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-05/0.6146, allocations: 0 / 0.623 GB, free: 6.117 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007297/0.6153, allocations: 95.91 kB / 0.6231 GB, free: 6.023 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004959/0.6203, allocations: 1.611 MB / 0.6246 GB, free: 4.406 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002239/0.6205, allocations: 25.25 kB / 0.6247 GB, free: 4.383 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01962/0.6402, allocations: 9.616 MB / 0.634 GB, free: 10.47 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.708e-06/0.6402, allocations: 2.016 kB / 0.634 GB, free: 10.47 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01431/0.6546, allocations: 4.729 MB / 0.6387 GB, free: 5.703 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006288/0.6552, allocations: 223.2 kB / 0.6389 GB, free: 5.465 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005183/0.6558, allocations: 24 kB / 0.6389 GB, free: 5.441 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00153/0.6573, allocations: 111.9 kB / 0.639 GB, free: 5.332 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007369/0.6581, allocations: 192.7 kB / 0.6392 GB, free: 5.141 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001481/0.6583, allocations: 28 kB / 0.6392 GB, free: 5.113 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001404/0.6597, allocations: 0.7331 MB / 0.6399 GB, free: 4.375 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.6597, allocations: 3.938 kB / 0.6399 GB, free: 4.371 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002089/0.6618, allocations: 471.5 kB / 0.6404 GB, free: 3.91 MB / 446.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 {(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.000369/0.6622, allocations: 136.1 kB / 0.6405 GB, free: 3.773 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006741/0.6689, allocations: 2.534 MB / 0.643 GB, free: 1.211 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.572e-06/0.669, allocations: 4.25 kB / 0.643 GB, free: 1.207 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004447/0.6734, allocations: 1.612 MB / 0.6446 GB, free: 15.56 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001796/0.6752, allocations: 119.1 kB / 0.6447 GB, free: 15.44 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005543/0.6808, allocations: 2.694 MB / 0.6473 GB, free: 12.75 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001037/0.6819, allocations: 1.12 MB / 0.6484 GB, free: 11.6 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0006421/0.6825, allocations: 124 kB / 0.6485 GB, free: 11.48 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003582/0.6829, allocations: 75.42 kB / 0.6486 GB, free: 11.41 MB / 462.1 MB Notification: Performance of SimCode: time 1.112e-06/0.6829, allocations: 0 / 0.6486 GB, free: 11.41 MB / 462.1 MB Notification: Performance of Templates: time 0.03899/0.7219, allocations: 22.7 MB / 0.6708 GB, free: 4.922 MB / 478.1 MB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.makefile (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.sim & ./OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe 2>&1)