Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_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.1.0-master/package.mo", uses=false) Using package OpenIPSL with version 3.1.0-dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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.ThirdOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001151/0.001151, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.285/1.285, allocations: 222.9 MB / 239 MB, free: 4.723 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.001375/0.001375, allocations: 196.4 kB / 289.3 MB, free: 2.465 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5397/0.5397, allocations: 91.89 MB / 431.3 MB, free: 9.438 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001445/0.001444, allocations: 75.88 kB / 0.5014 GB, free: 8.09 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4231/0.4246, allocations: 71.26 MB / 0.571 GB, free: 36.51 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII): time 0.00656/0.4312, allocations: 6.829 MB / 0.5776 GB, free: 32.57 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.005011/0.4363, allocations: 1.994 MB / 0.5796 GB, free: 31.28 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001367/0.4377, allocations: 15.75 kB / 0.5796 GB, free: 31.28 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000857/0.4386, allocations: 180.9 kB / 0.5798 GB, free: 31.21 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002299/0.4409, allocations: 0.7108 MB / 0.5805 GB, free: 30.75 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001258/0.4422, allocations: 0.5804 MB / 0.581 GB, free: 30.45 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001766/0.4439, allocations: 1.569 MB / 0.5826 GB, free: 29.68 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000487/0.4444, allocations: 329.8 kB / 0.5829 GB, free: 29.54 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001064/0.4455, allocations: 0.6475 MB / 0.5835 GB, free: 29.21 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008233/0.4463, allocations: 0.8305 MB / 0.5843 GB, free: 28.82 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001706/0.4465, allocations: 125.5 kB / 0.5844 GB, free: 28.81 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005625/0.4471, allocations: 258 kB / 0.5847 GB, free: 28.77 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002797/0.4474, allocations: 333.3 kB / 0.585 GB, free: 28.55 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005446/0.4479, allocations: 0.6679 MB / 0.5857 GB, free: 28.1 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001943/0.4499, allocations: 1.64 MB / 0.5873 GB, free: 27.36 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.463e-06/0.4499, allocations: 0 / 0.5873 GB, free: 27.36 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.4499, allocations: 0 / 0.5873 GB, free: 27.36 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.997e-05/0.4499, allocations: 0 / 0.5873 GB, free: 27.36 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: 189 * Number of variables: 189 Notification: Performance of Generate backend data structure: time 0.009692/0.4596, allocations: 2.689 MB / 0.5899 GB, free: 26.09 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.477e-05/0.4597, allocations: 8.594 kB / 0.5899 GB, free: 26.09 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005007/0.4647, allocations: 0.7752 MB / 0.5907 GB, free: 25.93 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001924/0.4667, allocations: 0.8904 MB / 0.5915 GB, free: 25.33 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003088/0.467, allocations: 261 kB / 0.5918 GB, free: 25.11 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002045/0.4672, allocations: 81.47 kB / 0.5919 GB, free: 25.08 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002296/0.4695, allocations: 1.085 MB / 0.5929 GB, free: 24.66 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.415e-05/0.4696, allocations: 0 / 0.5929 GB, free: 24.66 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.62e-05/0.4697, allocations: 31.06 kB / 0.5929 GB, free: 24.64 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.663e-05/0.4697, allocations: 22.47 kB / 0.593 GB, free: 24.64 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002096/0.4718, allocations: 0.9881 MB / 0.5939 GB, free: 24.3 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.007727/0.4796, allocations: 3.814 MB / 0.5977 GB, free: 22.1 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007904/0.4875, allocations: 2.366 MB / 0.6 GB, free: 21.27 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002111/0.4896, allocations: 0.6747 MB / 0.6006 GB, free: 21 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001421/0.4898, allocations: 12.58 kB / 0.6006 GB, free: 21 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002436/0.4923, allocations: 0.8228 MB / 0.6014 GB, free: 20.68 MB / 430.1 MB Notification: Performance of pre-optimization done (n=95): time 2.796e-06/0.4923, allocations: 1.406 kB / 0.6014 GB, free: 20.68 MB / 430.1 MB Notification: Performance of matching and sorting (n=95): time 0.03273/0.525, allocations: 7.185 MB / 0.6085 GB, free: 19.29 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.844e-05/0.5252, allocations: 123.4 kB / 0.6086 GB, free: 19.16 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002556/0.5277, allocations: 1.089 MB / 0.6096 GB, free: 18.71 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004764/0.5282, allocations: 50.53 kB / 0.6097 GB, free: 18.66 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004797/0.5287, allocations: 0.4902 MB / 0.6102 GB, free: 18.27 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005551/0.5293, allocations: 348.1 kB / 0.6105 GB, free: 18 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006291/0.5299, allocations: 283.3 kB / 0.6108 GB, free: 17.87 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.291e-05/0.53, allocations: 302.8 kB / 0.6111 GB, free: 17.57 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00183/0.5318, allocations: 0.756 MB / 0.6118 GB, free: 17.29 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001864/0.5337, allocations: 0.9279 MB / 0.6127 GB, free: 16.86 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02437/0.5581, allocations: 5.573 MB / 0.6181 GB, free: 13.91 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.421e-05/0.5582, allocations: 0 / 0.6181 GB, free: 13.91 MB / 430.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.01218/0.5704, allocations: 4.356 MB / 0.6224 GB, free: 9.527 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.961e-05/0.5705, allocations: 63.34 kB / 0.6225 GB, free: 9.453 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.83e-05/0.5705, allocations: 12 kB / 0.6225 GB, free: 9.441 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005268/0.5758, allocations: 1.584 MB / 0.624 GB, free: 7.855 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001499/0.5773, allocations: 287.6 kB / 0.6243 GB, free: 7.574 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01841/0.5957, allocations: 8.514 MB / 0.6326 GB, free: 14.91 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002495/0.5983, allocations: 198.8 kB / 0.6328 GB, free: 14.71 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001478/0.5984, allocations: 55.92 kB / 0.6328 GB, free: 14.66 MB / 446.1 MB Warning: Assuming fixed start value for the following 4 variables: order3.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order2.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 order3.delta:VARIABLE(flow=false start = order3.delta0 unit = "rad" fixed = true ) "Rotor angle" 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 (160): * Single equations (assignments): 157 * 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 {(19,14,24.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008198/0.5993, allocations: 304.2 kB / 0.6331 GB, free: 14.34 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003267/0.5996, allocations: 122.5 kB / 0.6333 GB, free: 14.22 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01266/0.6123, allocations: 3.873 MB / 0.637 GB, free: 10.32 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.11e-05/0.6123, allocations: 8 kB / 0.637 GB, free: 10.31 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.609e-05/0.6124, allocations: 8 kB / 0.637 GB, free: 10.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.214e-05/0.6124, allocations: 3.984 kB / 0.6371 GB, free: 10.3 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 postOpt removeSimpleEquations (simulation): time 0.01521/0.6276, allocations: 5.454 MB / 0.6424 GB, free: 4.734 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.17e-05/0.6277, allocations: 4 kB / 0.6424 GB, free: 4.73 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007151/0.6284, allocations: 95.89 kB / 0.6425 GB, free: 4.637 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005428/0.6339, allocations: 1.607 MB / 0.644 GB, free: 3.023 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000211/0.6341, allocations: 23.92 kB / 0.6441 GB, free: 3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02046/0.6546, allocations: 9.65 MB / 0.6535 GB, free: 9.055 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.6546, allocations: 4 kB / 0.6535 GB, free: 9.051 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01489/0.6695, allocations: 4.709 MB / 0.6581 GB, free: 4.309 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006456/0.6702, allocations: 231.3 kB / 0.6583 GB, free: 4.062 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002328/0.6705, allocations: 19.94 kB / 0.6583 GB, free: 4.043 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001243/0.6717, allocations: 103.9 kB / 0.6584 GB, free: 3.941 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006601/0.6724, allocations: 200.7 kB / 0.6586 GB, free: 3.742 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.165e-05/0.6725, allocations: 31.94 kB / 0.6587 GB, free: 3.711 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001113/0.6736, allocations: 0.7315 MB / 0.6594 GB, free: 2.973 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.944e-06/0.6736, allocations: 96 / 0.6594 GB, free: 2.973 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001593/0.6752, allocations: 483.5 kB / 0.6598 GB, free: 2.5 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 9 (order2.delta,order2.w,order3.delta,order3.w,order3.e1q,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 (63): * Single equations (assignments): 60 * 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 {(20,12,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003218/0.6755, allocations: 132 kB / 0.66 GB, free: 2.363 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006799/0.6823, allocations: 2.551 MB / 0.6624 GB, free: 15.77 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/0.6824, allocations: 0 / 0.6624 GB, free: 15.77 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004461/0.6869, allocations: 1.596 MB / 0.664 GB, free: 14.14 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001352/0.6882, allocations: 123.1 kB / 0.6641 GB, free: 14.03 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004449/0.6927, allocations: 2.642 MB / 0.6667 GB, free: 11.36 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006445/0.6934, allocations: 1.12 MB / 0.6678 GB, free: 10.2 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.000529/0.6939, allocations: 120 kB / 0.6679 GB, free: 10.08 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002578/0.6942, allocations: 79.42 kB / 0.668 GB, free: 10 MB / 478.1 MB Notification: Performance of SimCode: time 1.363e-06/0.6942, allocations: 0 / 0.668 GB, free: 10 MB / 478.1 MB Notification: Performance of Templates: time 0.03462/0.7288, allocations: 22.84 MB / 0.6903 GB, free: 3.195 MB / 494.1 MB make -j1 -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.makefile (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.sim & ./OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe 2>&1)