Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_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.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.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_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.001469/0.001469, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.363/1.363, allocations: 222.9 MB / 239.2 MB, free: 4.609 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.001443/0.001443, allocations: 196.4 kB / 289.5 MB, free: 2.32 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5254/0.5254, allocations: 91.89 MB / 431.6 MB, free: 9.273 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001693/0.001694, allocations: 75.89 kB / 0.5019 GB, free: 7.754 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3786/0.3803, allocations: 71.26 MB / 0.5715 GB, free: 37.22 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.00662/0.387, allocations: 6.579 MB / 0.5779 GB, free: 33.17 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003625/0.3907, allocations: 1.962 MB / 0.5798 GB, free: 31.79 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005992/0.3913, allocations: 13.44 kB / 0.5798 GB, free: 31.79 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007186/0.3921, allocations: 239.8 kB / 0.58 GB, free: 31.65 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001755/0.3938, allocations: 0.7996 MB / 0.5808 GB, free: 31.14 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001168/0.395, allocations: 0.6315 MB / 0.5814 GB, free: 30.82 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0014/0.3964, allocations: 1.581 MB / 0.583 GB, free: 30.04 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004479/0.3969, allocations: 327.1 kB / 0.5833 GB, free: 29.91 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007385/0.3976, allocations: 0.6435 MB / 0.5839 GB, free: 29.59 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009319/0.3986, allocations: 0.8243 MB / 0.5847 GB, free: 29.2 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002386/0.3988, allocations: 123.3 kB / 0.5848 GB, free: 29.2 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005945/0.3994, allocations: 259.8 kB / 0.5851 GB, free: 29.15 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003173/0.3998, allocations: 331.6 kB / 0.5854 GB, free: 28.94 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005102/0.4003, allocations: 0.6664 MB / 0.5861 GB, free: 28.48 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001409/0.4017, allocations: 1.632 MB / 0.5877 GB, free: 27.75 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.4017, allocations: 1.25 kB / 0.5877 GB, free: 27.75 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.4017, allocations: 0 / 0.5877 GB, free: 27.75 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.886e-05/0.4017, allocations: 0 / 0.5877 GB, free: 27.75 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.008746/0.4105, allocations: 2.691 MB / 0.5903 GB, free: 26.47 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.257e-05/0.4105, allocations: 7.406 kB / 0.5903 GB, free: 26.47 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00505/0.4156, allocations: 0.7837 MB / 0.5911 GB, free: 26.3 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001651/0.4173, allocations: 0.8795 MB / 0.5919 GB, free: 25.71 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003314/0.4176, allocations: 257.5 kB / 0.5922 GB, free: 25.5 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002154/0.4178, allocations: 85.44 kB / 0.5922 GB, free: 25.46 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00248/0.4203, allocations: 1.095 MB / 0.5933 GB, free: 25.04 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.787e-05/0.4204, allocations: 4 kB / 0.5933 GB, free: 25.04 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001052/0.4205, allocations: 26.31 kB / 0.5933 GB, free: 25.02 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.69e-05/0.4205, allocations: 22.17 kB / 0.5934 GB, free: 25.02 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002252/0.4228, allocations: 0.9858 MB / 0.5943 GB, free: 24.69 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.007972/0.4308, allocations: 3.851 MB / 0.5981 GB, free: 22.48 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007948/0.4387, allocations: 2.366 MB / 0.6004 GB, free: 21.64 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001476/0.4402, allocations: 0.6796 MB / 0.6011 GB, free: 21.38 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.686e-05/0.4403, allocations: 12.11 kB / 0.6011 GB, free: 21.38 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00176/0.4421, allocations: 0.8221 MB / 0.6019 GB, free: 21.05 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 3.286e-06/0.4421, allocations: 0 / 0.6019 GB, free: 21.05 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.03049/0.4726, allocations: 7.085 MB / 0.6088 GB, free: 19.66 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.536e-05/0.4727, allocations: 118.9 kB / 0.6089 GB, free: 19.53 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001966/0.4747, allocations: 1.085 MB / 0.61 GB, free: 19.08 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002726/0.475, allocations: 45.83 kB / 0.61 GB, free: 19.04 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003683/0.4753, allocations: 494.2 kB / 0.6105 GB, free: 18.65 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003818/0.4757, allocations: 357.4 kB / 0.6108 GB, free: 18.37 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005472/0.4763, allocations: 290.2 kB / 0.6111 GB, free: 18.24 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.556e-05/0.4764, allocations: 302.2 kB / 0.6114 GB, free: 17.94 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001755/0.4781, allocations: 0.7646 MB / 0.6121 GB, free: 17.66 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001753/0.4799, allocations: 0.9381 MB / 0.613 GB, free: 17.12 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02352/0.5034, allocations: 5.594 MB / 0.6185 GB, free: 14.04 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.199e-05/0.5035, allocations: 0 / 0.6185 GB, free: 14.04 MB / 430.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01237/0.5158, allocations: 4.332 MB / 0.6227 GB, free: 9.684 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.103e-05/0.5159, allocations: 59.41 kB / 0.6228 GB, free: 9.613 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.217e-05/0.5159, allocations: 4 kB / 0.6228 GB, free: 9.609 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00512/0.5211, allocations: 1.513 MB / 0.6243 GB, free: 8.094 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001388/0.5225, allocations: 295.6 kB / 0.6246 GB, free: 7.805 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0182/0.5407, allocations: 8.276 MB / 0.6326 GB, free: 15.37 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002057/0.5428, allocations: 202.8 kB / 0.6328 GB, free: 15.17 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002254/0.543, allocations: 55.97 kB / 0.6329 GB, free: 15.12 MB / 446.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.0007711/0.5438, allocations: 302 kB / 0.6332 GB, free: 14.81 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004026/0.5442, allocations: 134.3 kB / 0.6333 GB, free: 14.68 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01356/0.5578, allocations: 3.865 MB / 0.6371 GB, free: 10.78 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.783e-05/0.5578, allocations: 11.98 kB / 0.6371 GB, free: 10.77 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.856e-05/0.5579, allocations: 8 kB / 0.6371 GB, free: 10.76 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.282e-05/0.5579, allocations: 11.91 kB / 0.6371 GB, free: 10.75 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.01623/0.5741, allocations: 5.461 MB / 0.6424 GB, free: 5.176 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.237e-06/0.5742, allocations: 0 / 0.6424 GB, free: 5.176 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006412/0.5749, allocations: 103.9 kB / 0.6425 GB, free: 5.074 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005802/0.5807, allocations: 1.59 MB / 0.6441 GB, free: 3.477 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001838/0.5809, allocations: 27.98 kB / 0.6441 GB, free: 3.449 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02192/0.6028, allocations: 9.65 MB / 0.6535 GB, free: 9.508 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/0.6029, allocations: 4 kB / 0.6535 GB, free: 9.504 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01547/0.6183, allocations: 4.721 MB / 0.6582 GB, free: 4.75 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006781/0.6191, allocations: 223.3 kB / 0.6584 GB, free: 4.512 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005033/0.6196, allocations: 20 kB / 0.6584 GB, free: 4.492 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001528/0.6211, allocations: 103.9 kB / 0.6585 GB, free: 4.391 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007188/0.6219, allocations: 200.9 kB / 0.6587 GB, free: 4.191 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001353/0.622, allocations: 31.98 kB / 0.6587 GB, free: 4.16 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001391/0.6234, allocations: 0.7312 MB / 0.6594 GB, free: 3.422 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.6234, allocations: 0 / 0.6594 GB, free: 3.422 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001933/0.6254, allocations: 479.5 kB / 0.6599 GB, free: 2.953 MB / 462.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 {(19,13,24.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000373/0.6258, allocations: 133.4 kB / 0.66 GB, free: 2.816 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007217/0.633, allocations: 2.54 MB / 0.6625 GB, free: 244 kB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/0.633, allocations: 3.938 kB / 0.6625 GB, free: 240 kB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00465/0.6377, allocations: 1.59 MB / 0.664 GB, free: 14.6 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001509/0.6392, allocations: 120.1 kB / 0.6642 GB, free: 14.49 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004669/0.6439, allocations: 2.274 MB / 0.6664 GB, free: 12.2 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008386/0.6448, allocations: 1.12 MB / 0.6675 GB, free: 11.04 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0006624/0.6454, allocations: 124 kB / 0.6676 GB, free: 10.92 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003381/0.6458, allocations: 83.41 kB / 0.6677 GB, free: 10.84 MB / 478.1 MB Notification: Performance of SimCode: time 8.22e-07/0.6458, allocations: 0 / 0.6677 GB, free: 10.84 MB / 478.1 MB Notification: Performance of Templates: time 0.03993/0.6857, allocations: 23.42 MB / 0.6905 GB, free: 3.438 MB / 494.1 MB make -j1 -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.makefile (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.sim & ./OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe 2>&1)