Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.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.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07749/0.07749, allocations: 12.59 MB / 28.22 MB, free: 1.086 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.0009925/0.0009927, allocations: 119.3 kB / 31.84 MB, free: 4.023 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.277/1.277, allocations: 205.1 MB / 240.4 MB, free: 12.37 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.001515/0.001515, allocations: 195.3 kB / 290.7 MB, free: 13.39 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.4341/0.4341, allocations: 78.51 MB / 419.3 MB, free: 11.26 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.002617/0.002617, allocations: 135.3 kB / 0.5559 GB, free: 28.61 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1184/0.121, allocations: 68.12 MB / 0.6224 GB, free: 15.43 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII): time 0.007084/0.1281, allocations: 6.569 MB / 0.6288 GB, free: 8.828 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.003933/0.1321, allocations: 1.912 MB / 0.6307 GB, free: 6.91 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001018/0.1332, allocations: 19.94 kB / 0.6307 GB, free: 6.891 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008062/0.134, allocations: 234 kB / 0.6309 GB, free: 6.66 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001969/0.136, allocations: 0.8501 MB / 0.6317 GB, free: 5.809 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001222/0.1372, allocations: 0.6313 MB / 0.6324 GB, free: 5.184 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001398/0.1386, allocations: 1.577 MB / 0.6339 GB, free: 3.602 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004274/0.1391, allocations: 326.4 kB / 0.6342 GB, free: 3.27 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006778/0.1397, allocations: 0.6574 MB / 0.6349 GB, free: 2.609 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007798/0.1405, allocations: 0.8245 MB / 0.6357 GB, free: 1.781 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001637/0.1407, allocations: 124 kB / 0.6358 GB, free: 1.66 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004146/0.1411, allocations: 259.8 kB / 0.636 GB, free: 1.406 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002613/0.1414, allocations: 318.7 kB / 0.6363 GB, free: 1.094 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005176/0.1419, allocations: 0.6757 MB / 0.637 GB, free: 424 kB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001409/0.1433, allocations: 1.662 MB / 0.6386 GB, free: 14.75 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.1434, allocations: 0 / 0.6386 GB, free: 14.75 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1434, allocations: 0 / 0.6386 GB, free: 14.75 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.897e-05/0.1434, allocations: 0 / 0.6386 GB, free: 14.75 MB / 462.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.008487/0.1519, allocations: 2.688 MB / 0.6412 GB, free: 11.99 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/0.1519, allocations: 11.98 kB / 0.6413 GB, free: 11.98 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005096/0.157, allocations: 0.771 MB / 0.642 GB, free: 11.21 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00149/0.1585, allocations: 0.898 MB / 0.6429 GB, free: 10.25 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000317/0.1589, allocations: 256.2 kB / 0.6431 GB, free: 9.965 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001757/0.1591, allocations: 87.94 kB / 0.6432 GB, free: 9.879 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002315/0.1614, allocations: 1.079 MB / 0.6443 GB, free: 8.789 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.991e-05/0.1614, allocations: 0 / 0.6443 GB, free: 8.789 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001051/0.1615, allocations: 31.98 kB / 0.6443 GB, free: 8.758 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.06e-05/0.1616, allocations: 23.98 kB / 0.6443 GB, free: 8.734 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002082/0.1636, allocations: 0.9877 MB / 0.6453 GB, free: 7.746 MB / 462.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.006465/0.1701, allocations: 3.8 MB / 0.649 GB, free: 3.766 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007439/0.1776, allocations: 2.37 MB / 0.6513 GB, free: 1.305 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001319/0.1789, allocations: 0.6762 MB / 0.652 GB, free: 0.625 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.518e-05/0.179, allocations: 16.98 kB / 0.652 GB, free: 0.6094 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001583/0.1806, allocations: 0.8099 MB / 0.6528 GB, free: 15.78 MB / 478.1 MB Notification: Performance of pre-optimization done (n=95): time 2.936e-06/0.1806, allocations: 0 / 0.6528 GB, free: 15.78 MB / 478.1 MB Notification: Performance of matching and sorting (n=95): time 0.03018/0.2108, allocations: 7.19 MB / 0.6598 GB, free: 8.527 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.942e-05/0.2109, allocations: 119.8 kB / 0.6599 GB, free: 8.387 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001616/0.2125, allocations: 1.095 MB / 0.661 GB, free: 7.277 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001905/0.2127, allocations: 45.7 kB / 0.661 GB, free: 7.227 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003643/0.2131, allocations: 496.8 kB / 0.6615 GB, free: 6.734 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003379/0.2134, allocations: 343.1 kB / 0.6618 GB, free: 6.395 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004631/0.2139, allocations: 283.4 kB / 0.6621 GB, free: 6.113 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 8.898e-05/0.214, allocations: 305.1 kB / 0.6624 GB, free: 5.812 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001579/0.2156, allocations: 0.7613 MB / 0.6631 GB, free: 5.051 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00169/0.2173, allocations: 0.9265 MB / 0.664 GB, free: 4.082 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02341/0.2407, allocations: 5.552 MB / 0.6695 GB, free: 14.45 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.436e-06/0.2408, allocations: 4 kB / 0.6695 GB, free: 14.44 MB / 494.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.01382/0.2546, allocations: 4.36 MB / 0.6737 GB, free: 10.05 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.96e-05/0.2547, allocations: 63.34 kB / 0.6738 GB, free: 9.98 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.211e-05/0.2547, allocations: 4 kB / 0.6738 GB, free: 9.977 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005926/0.2606, allocations: 1.587 MB / 0.6753 GB, free: 8.387 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001385/0.262, allocations: 279.6 kB / 0.6756 GB, free: 8.113 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02041/0.2825, allocations: 8.502 MB / 0.6839 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001929/0.2844, allocations: 198.7 kB / 0.6841 GB, free: 15.26 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001183/0.2845, allocations: 59.91 kB / 0.6841 GB, free: 15.2 MB / 0.4981 GB 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.0006413/0.2852, allocations: 304.2 kB / 0.6844 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001989/0.2854, allocations: 122.5 kB / 0.6846 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01312/0.2985, allocations: 3.873 MB / 0.6883 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.15e-05/0.2986, allocations: 8 kB / 0.6883 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.292e-05/0.2986, allocations: 8 kB / 0.6883 GB, free: 10.85 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.726e-05/0.2986, allocations: 3.984 kB / 0.6884 GB, free: 10.84 MB / 0.4981 GB 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.0147/0.3133, allocations: 5.463 MB / 0.6937 GB, free: 5.27 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.326e-06/0.3133, allocations: 0 / 0.6937 GB, free: 5.27 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005275/0.3139, allocations: 95.84 kB / 0.6938 GB, free: 5.176 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005561/0.3194, allocations: 1.61 MB / 0.6954 GB, free: 3.559 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.084e-05/0.3195, allocations: 23.98 kB / 0.6954 GB, free: 3.535 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02013/0.3397, allocations: 9.627 MB / 0.7048 GB, free: 9.617 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.3397, allocations: 0 / 0.7048 GB, free: 9.617 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01435/0.3541, allocations: 4.739 MB / 0.7094 GB, free: 4.844 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003807/0.3545, allocations: 219.3 kB / 0.7096 GB, free: 4.609 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001776/0.3546, allocations: 27.94 kB / 0.7096 GB, free: 4.582 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00112/0.3558, allocations: 107.9 kB / 0.7097 GB, free: 4.477 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000547/0.3563, allocations: 192.7 kB / 0.7099 GB, free: 4.285 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.315e-05/0.3564, allocations: 31.98 kB / 0.71 GB, free: 4.254 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001044/0.3575, allocations: 0.7315 MB / 0.7107 GB, free: 3.516 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.1e-07/0.3575, allocations: 0 / 0.7107 GB, free: 3.516 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001308/0.3588, allocations: 467.5 kB / 0.7111 GB, free: 3.059 MB / 0.5137 GB 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.0002695/0.3591, allocations: 147.1 kB / 0.7113 GB, free: 2.902 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.006222/0.3653, allocations: 2.528 MB / 0.7137 GB, free: 336 kB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.3653, allocations: 0 / 0.7137 GB, free: 336 kB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.2652/0.6305, allocations: 1.575 MB / 0.7153 GB, free: 86.42 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001614/0.6322, allocations: 118.8 kB / 0.7154 GB, free: 86.42 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005022/0.6372, allocations: 2.182 MB / 0.7175 GB, free: 85.61 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008738/0.6381, allocations: 1.12 MB / 0.7186 GB, free: 84.89 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0005432/0.6387, allocations: 119.1 kB / 0.7187 GB, free: 84.88 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002945/0.639, allocations: 80.69 kB / 0.7188 GB, free: 84.88 MB / 0.5137 GB Notification: Performance of SimCode: time 7.91e-07/0.639, allocations: 4.344 kB / 0.7188 GB, free: 84.88 MB / 0.5137 GB Notification: Performance of Templates: time 0.03961/0.6786, allocations: 23.83 MB / 0.7421 GB, free: 77.16 MB / 0.5137 GB make -j1 -f OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.makefile (rm -f OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe ; mkfifo OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe >> ../files/OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.sim & ./OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe 2>&1)