Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/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/package.mo) Running command: translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.076/0.076, allocations: 12.2 MB / 28.08 MB, free: 0.918 MB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001192/0.001192, allocations: 117.2 kB / 31.59 MB, free: 4.43 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.371/1.371, allocations: 205.1 MB / 240.1 MB, free: 11.59 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.001331/0.001331, allocations: 188.5 kB / 290.2 MB, free: 15.93 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.5101/0.5101, allocations: 78.5 MB / 418.8 MB, free: 47.13 MB / 334.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.002839/0.00284, allocations: 131.8 kB / 499.1 MB, free: 4.387 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1595/0.1623, allocations: 68.04 MB / 0.5538 GB, free: 356 kB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.3236/0.4859, allocations: 6.908 MB / 0.5605 GB, free: 38.29 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.00465/0.4906, allocations: 1.955 MB / 0.5625 GB, free: 37.5 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001249/0.4919, allocations: 10.69 kB / 0.5625 GB, free: 37.5 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008736/0.4928, allocations: 187 kB / 0.5626 GB, free: 37.44 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002562/0.4955, allocations: 0.7042 MB / 0.5633 GB, free: 37 MB / 430.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 order4.xq <> order4.x1q, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.001549/0.497, allocations: 0.5884 MB / 0.5639 GB, free: 36.69 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.002518/0.4996, allocations: 1.576 MB / 0.5654 GB, free: 35.91 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006018/0.5002, allocations: 326.1 kB / 0.5658 GB, free: 35.77 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001402/0.5016, allocations: 0.6567 MB / 0.5664 GB, free: 35.45 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001199/0.5028, allocations: 0.826 MB / 0.5672 GB, free: 35.05 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002442/0.5031, allocations: 121 kB / 0.5673 GB, free: 35.05 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008323/0.5039, allocations: 266.9 kB / 0.5676 GB, free: 35 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004464/0.5044, allocations: 329.2 kB / 0.5679 GB, free: 34.79 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001001/0.5054, allocations: 0.6734 MB / 0.5685 GB, free: 34.33 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002241/0.5076, allocations: 1.279 MB / 0.5698 GB, free: 33.84 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.5076, allocations: 0 / 0.5698 GB, free: 33.84 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.347e-06/0.5077, allocations: 1.156 kB / 0.5698 GB, free: 33.84 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.804e-05/0.5077, allocations: 0 / 0.5698 GB, free: 33.84 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.009255/0.517, allocations: 2.693 MB / 0.5724 GB, free: 32.56 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.05e-05/0.517, allocations: 17.23 kB / 0.5724 GB, free: 32.56 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004862/0.5219, allocations: 0.7672 MB / 0.5732 GB, free: 32.41 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00166/0.5236, allocations: 0.8831 MB / 0.5741 GB, free: 31.81 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002422/0.5238, allocations: 259 kB / 0.5743 GB, free: 31.59 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001581/0.524, allocations: 82.03 kB / 0.5744 GB, free: 31.57 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001979/0.526, allocations: 1.088 MB / 0.5754 GB, free: 31.14 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.334e-05/0.526, allocations: 0 / 0.5754 GB, free: 31.14 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.357e-05/0.5261, allocations: 32.09 kB / 0.5755 GB, free: 31.12 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.829e-05/0.5262, allocations: 17.16 kB / 0.5755 GB, free: 31.12 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00181/0.528, allocations: 0.9882 MB / 0.5765 GB, free: 30.8 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.006178/0.5342, allocations: 3.827 MB / 0.5802 GB, free: 28.58 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006881/0.5411, allocations: 2.371 MB / 0.5825 GB, free: 27.76 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001448/0.5426, allocations: 0.6796 MB / 0.5832 GB, free: 27.49 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001161/0.5427, allocations: 22.98 kB / 0.5832 GB, free: 27.48 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001525/0.5442, allocations: 0.8206 MB / 0.584 GB, free: 27.17 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 3.236e-06/0.5442, allocations: 0 / 0.584 GB, free: 27.17 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.02715/0.5714, allocations: 7.08 MB / 0.5909 GB, free: 25.78 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.655e-05/0.5715, allocations: 118.8 kB / 0.591 GB, free: 25.65 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001939/0.5735, allocations: 1.077 MB / 0.5921 GB, free: 25.21 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003102/0.5738, allocations: 44.2 kB / 0.5921 GB, free: 25.17 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003255/0.5741, allocations: 499.5 kB / 0.5926 GB, free: 24.78 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003868/0.5745, allocations: 361.6 kB / 0.5929 GB, free: 24.49 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006123/0.5751, allocations: 289.5 kB / 0.5932 GB, free: 24.36 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 6.34e-05/0.5752, allocations: 306.1 kB / 0.5935 GB, free: 24.06 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001696/0.5769, allocations: 0.764 MB / 0.5943 GB, free: 23.78 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001804/0.5787, allocations: 0.9411 MB / 0.5952 GB, free: 23.34 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02461/0.6033, allocations: 5.596 MB / 0.6006 GB, free: 21.59 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-05/0.6034, allocations: 1.438 kB / 0.6006 GB, free: 21.59 MB / 430.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01555/0.619, allocations: 4.332 MB / 0.6049 GB, free: 20.41 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.141e-05/0.6191, allocations: 59.91 kB / 0.6049 GB, free: 20.35 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.19e-05/0.6191, allocations: 3.219 kB / 0.6049 GB, free: 20.35 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005864/0.625, allocations: 1.513 MB / 0.6064 GB, free: 19.8 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001826/0.6269, allocations: 297 kB / 0.6067 GB, free: 19.74 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02036/0.6473, allocations: 8.283 MB / 0.6148 GB, free: 14.07 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002314/0.6496, allocations: 198.8 kB / 0.615 GB, free: 13.88 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003787/0.65, allocations: 59.97 kB / 0.615 GB, free: 13.82 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.001042/0.6511, allocations: 305.2 kB / 0.6153 GB, free: 13.51 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004745/0.6516, allocations: 134.3 kB / 0.6154 GB, free: 13.38 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01179/0.6634, allocations: 3.861 MB / 0.6192 GB, free: 9.484 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.487e-05/0.6635, allocations: 8 kB / 0.6192 GB, free: 9.477 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.38e-05/0.6635, allocations: 8.688 kB / 0.6192 GB, free: 9.469 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.413e-05/0.6635, allocations: 7.969 kB / 0.6192 GB, free: 9.461 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.01472/0.6783, allocations: 5.461 MB / 0.6246 GB, free: 3.891 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.331e-05/0.6784, allocations: 0 / 0.6246 GB, free: 3.891 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008489/0.6792, allocations: 99.89 kB / 0.6247 GB, free: 3.793 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005248/0.6845, allocations: 1.616 MB / 0.6262 GB, free: 2.172 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002828/0.6848, allocations: 20 kB / 0.6263 GB, free: 2.152 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02067/0.7055, allocations: 9.608 MB / 0.6356 GB, free: 8.25 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.7056, allocations: 0 / 0.6356 GB, free: 8.25 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01515/0.7207, allocations: 4.738 MB / 0.6403 GB, free: 3.48 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006783/0.7215, allocations: 223.3 kB / 0.6405 GB, free: 3.242 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000542/0.722, allocations: 19.98 kB / 0.6405 GB, free: 3.223 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001554/0.7236, allocations: 107.9 kB / 0.6406 GB, free: 3.117 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007821/0.7244, allocations: 200.8 kB / 0.6408 GB, free: 2.918 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001561/0.7246, allocations: 24 kB / 0.6408 GB, free: 2.895 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001423/0.726, allocations: 0.7313 MB / 0.6415 GB, free: 2.156 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.726, allocations: 0 / 0.6415 GB, free: 2.156 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002226/0.7282, allocations: 471.5 kB / 0.642 GB, free: 1.695 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.0004404/0.7287, allocations: 137.6 kB / 0.6421 GB, free: 1.551 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00714/0.7359, allocations: 2.548 MB / 0.6446 GB, free: 14.97 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.154e-06/0.7359, allocations: 192 / 0.6446 GB, free: 14.97 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004594/0.7405, allocations: 1.606 MB / 0.6462 GB, free: 13.33 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00177/0.7423, allocations: 130 kB / 0.6463 GB, free: 13.21 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005731/0.7481, allocations: 2.734 MB / 0.649 GB, free: 10.45 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009096/0.749, allocations: 1.116 MB / 0.6501 GB, free: 9.309 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004621/0.7495, allocations: 91.41 kB / 0.6501 GB, free: 9.219 MB / 462.1 MB Notification: Performance of SimCode: time 7.11e-07/0.7495, allocations: 0 / 0.6501 GB, free: 9.219 MB / 462.1 MB Notification: Performance of Templates: time 0.03706/0.7866, allocations: 23.42 MB / 0.673 GB, free: 1.797 MB / 478.1 MB make -j1 -f OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.makefile (rm -f OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.sim & ./OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe 2>&1)