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.09367/0.09367, allocations: 12.6 MB / 28.23 MB, free: 84 kB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001099/0.001099, allocations: 111.4 kB / 31.83 MB, free: 3.406 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.424/1.424, allocations: 205.1 MB / 240.4 MB, free: 12.36 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.001628/0.001628, allocations: 180.5 kB / 290.7 MB, free: 13.38 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.4925/0.4925, allocations: 78.51 MB / 419.3 MB, free: 11.23 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.002576/0.002576, allocations: 132.9 kB / 0.5559 GB, free: 28.54 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1615/0.1641, allocations: 68.13 MB / 0.6224 GB, free: 15.39 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII): time 0.007126/0.1713, allocations: 6.554 MB / 0.6288 GB, free: 8.805 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.003891/0.1752, allocations: 1.916 MB / 0.6307 GB, free: 6.883 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004356/0.1757, allocations: 8 kB / 0.6307 GB, free: 6.875 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007141/0.1764, allocations: 245.9 kB / 0.6309 GB, free: 6.633 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00186/0.1783, allocations: 0.8525 MB / 0.6317 GB, free: 5.781 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001228/0.1795, allocations: 0.6306 MB / 0.6324 GB, free: 5.156 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.00155/0.1811, allocations: 1.585 MB / 0.6339 GB, free: 3.566 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004593/0.1816, allocations: 322.4 kB / 0.6342 GB, free: 3.238 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006873/0.1823, allocations: 0.6574 MB / 0.6349 GB, free: 2.578 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008502/0.1831, allocations: 0.8245 MB / 0.6357 GB, free: 1.75 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000172/0.1833, allocations: 120 kB / 0.6358 GB, free: 1.633 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005007/0.1838, allocations: 263.8 kB / 0.636 GB, free: 1.375 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002613/0.1841, allocations: 322.7 kB / 0.6363 GB, free: 1.059 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005056/0.1846, allocations: 0.6718 MB / 0.637 GB, free: 392 kB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001652/0.1863, allocations: 1.665 MB / 0.6386 GB, free: 14.71 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.1863, allocations: 4 kB / 0.6386 GB, free: 14.71 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1863, allocations: 0 / 0.6386 GB, free: 14.71 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.358e-05/0.1863, allocations: 4 kB / 0.6386 GB, free: 14.7 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.008042/0.1944, allocations: 2.726 MB / 0.6413 GB, free: 11.91 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.605e-05/0.1944, allocations: 11.98 kB / 0.6413 GB, free: 11.9 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00486/0.1993, allocations: 0.7913 MB / 0.6421 GB, free: 11.11 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001675/0.201, allocations: 0.8951 MB / 0.6429 GB, free: 10.16 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003414/0.2013, allocations: 252.2 kB / 0.6432 GB, free: 9.871 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001761/0.2015, allocations: 91.83 kB / 0.6433 GB, free: 9.781 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002049/0.2036, allocations: 1.09 MB / 0.6443 GB, free: 8.68 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.878e-05/0.2036, allocations: 0 / 0.6443 GB, free: 8.68 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.497e-05/0.2037, allocations: 32 kB / 0.6444 GB, free: 8.648 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.677e-05/0.2037, allocations: 20 kB / 0.6444 GB, free: 8.629 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001908/0.2057, allocations: 0.9838 MB / 0.6454 GB, free: 7.645 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.006031/0.2117, allocations: 3.809 MB / 0.6491 GB, free: 3.656 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007031/0.2187, allocations: 2.366 MB / 0.6514 GB, free: 1.199 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00125/0.22, allocations: 0.6761 MB / 0.652 GB, free: 0.5195 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.186e-05/0.2201, allocations: 20.97 kB / 0.6521 GB, free: 0.5 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001492/0.2216, allocations: 0.8138 MB / 0.6529 GB, free: 15.67 MB / 478.1 MB Notification: Performance of pre-optimization done (n=95): time 2.675e-06/0.2216, allocations: 0 / 0.6529 GB, free: 15.67 MB / 478.1 MB Notification: Performance of matching and sorting (n=95): time 0.02728/0.2489, allocations: 7.195 MB / 0.6599 GB, free: 8.41 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001234/0.2491, allocations: 119.8 kB / 0.66 GB, free: 8.27 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001963/0.2511, allocations: 1.091 MB / 0.6611 GB, free: 7.164 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001458/0.2512, allocations: 41.7 kB / 0.6611 GB, free: 7.117 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003815/0.2516, allocations: 0.4937 MB / 0.6616 GB, free: 6.617 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003697/0.252, allocations: 372.9 kB / 0.6619 GB, free: 6.25 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004593/0.2525, allocations: 283.5 kB / 0.6622 GB, free: 5.969 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.497e-05/0.2526, allocations: 301.1 kB / 0.6625 GB, free: 5.672 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001497/0.2541, allocations: 0.7535 MB / 0.6632 GB, free: 4.918 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001558/0.2556, allocations: 0.9303 MB / 0.6641 GB, free: 3.945 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02194/0.2776, allocations: 5.556 MB / 0.6696 GB, free: 14.3 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.008e-05/0.2776, allocations: 0 / 0.6696 GB, free: 14.3 MB / 494.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.01278/0.2904, allocations: 4.364 MB / 0.6738 GB, free: 9.914 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.297e-05/0.2905, allocations: 67.34 kB / 0.6739 GB, free: 9.836 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.063e-05/0.2906, allocations: 4 kB / 0.6739 GB, free: 9.832 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00537/0.2959, allocations: 1.587 MB / 0.6754 GB, free: 8.242 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001395/0.2974, allocations: 283.6 kB / 0.6757 GB, free: 7.965 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01933/0.3167, allocations: 8.511 MB / 0.684 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002208/0.319, allocations: 207.2 kB / 0.6842 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003087/0.3193, allocations: 55.92 kB / 0.6843 GB, free: 15.04 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.0009856/0.3203, allocations: 292.3 kB / 0.6846 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004475/0.3207, allocations: 135.2 kB / 0.6847 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01253/0.3333, allocations: 3.877 MB / 0.6885 GB, free: 10.7 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.492e-05/0.3333, allocations: 12 kB / 0.6885 GB, free: 10.69 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.554e-05/0.3334, allocations: 8 kB / 0.6885 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.404e-05/0.3334, allocations: 3.984 kB / 0.6885 GB, free: 10.68 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.01461/0.348, allocations: 5.456 MB / 0.6938 GB, free: 5.109 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.728e-06/0.348, allocations: 4 kB / 0.6938 GB, free: 5.105 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005476/0.3486, allocations: 99.83 kB / 0.6939 GB, free: 5.008 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005332/0.3539, allocations: 1.607 MB / 0.6955 GB, free: 3.395 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001116/0.3541, allocations: 16 kB / 0.6955 GB, free: 3.379 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01992/0.374, allocations: 9.656 MB / 0.7049 GB, free: 9.434 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.374, allocations: 0 / 0.7049 GB, free: 9.434 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01461/0.3886, allocations: 4.735 MB / 0.7096 GB, free: 4.664 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006105/0.3893, allocations: 236 kB / 0.7098 GB, free: 4.414 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003817/0.3897, allocations: 19.94 kB / 0.7098 GB, free: 4.395 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001376/0.3911, allocations: 107.9 kB / 0.7099 GB, free: 4.289 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006863/0.3918, allocations: 196.7 kB / 0.7101 GB, free: 4.094 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001065/0.3919, allocations: 24 kB / 0.7101 GB, free: 4.07 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001464/0.3934, allocations: 0.7315 MB / 0.7108 GB, free: 3.332 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.21e-07/0.3934, allocations: 4 kB / 0.7108 GB, free: 3.328 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.00194/0.3953, allocations: 475.7 kB / 0.7113 GB, free: 2.863 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.0003687/0.3957, allocations: 135.1 kB / 0.7114 GB, free: 2.719 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.006435/0.4021, allocations: 2.528 MB / 0.7139 GB, free: 148 kB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.438e-06/0.4022, allocations: 0 / 0.7139 GB, free: 148 kB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.3462/0.7484, allocations: 1.593 MB / 0.7154 GB, free: 85.96 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001195/0.7496, allocations: 122.5 kB / 0.7156 GB, free: 85.96 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004196/0.7538, allocations: 2.219 MB / 0.7177 GB, free: 85.1 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007629/0.7546, allocations: 1.119 MB / 0.7188 GB, free: 84.39 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0004253/0.755, allocations: 121.6 kB / 0.7189 GB, free: 84.38 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002722/0.7553, allocations: 79.42 kB / 0.719 GB, free: 84.37 MB / 0.5137 GB Notification: Performance of SimCode: time 9.32e-07/0.7553, allocations: 1.156 kB / 0.719 GB, free: 84.37 MB / 0.5137 GB Notification: Performance of Templates: time 0.04438/0.7997, allocations: 23.84 MB / 0.7423 GB, free: 76.6 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)