Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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/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 Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+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 Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001233/0.001233, allocations: 182.8 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.583/1.583, allocations: 205.1 MB / 221.8 MB, free: 8.484 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001063/0.001063, allocations: 107.9 kB / 269.2 MB, free: 8.441 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07953/0.07953, allocations: 12.6 MB / 329.1 MB, free: 12.4 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.302/0.302, allocations: 78.51 MB / 457.8 MB, free: 13.72 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001768/0.001768, allocations: 106 kB / 0.5254 GB, free: 19.7 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1562/0.158, allocations: 68.14 MB / 0.592 GB, free: 15.64 MB / 394.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII): time 0.01495/0.173, allocations: 14.51 MB / 0.6062 GB, free: 1.059 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.009277/0.1823, allocations: 3.582 MB / 0.6096 GB, free: 13.46 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004233/0.1866, allocations: 35.94 kB / 0.6097 GB, free: 13.43 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002776/0.1894, allocations: 429.1 kB / 0.6101 GB, free: 13.01 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006823/0.1963, allocations: 1.229 MB / 0.6113 GB, free: 11.78 MB / 410.7 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_1.xq <> order4_1.x1q, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.005033/0.2014, allocations: 1.417 MB / 0.6127 GB, free: 10.39 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.008632/0.21, allocations: 3.558 MB / 0.6162 GB, free: 6.816 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002391/0.2125, allocations: 0.802 MB / 0.6169 GB, free: 5.961 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003618/0.2161, allocations: 1.407 MB / 0.6183 GB, free: 4.547 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003842/0.22, allocations: 1.866 MB / 0.6201 GB, free: 2.672 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001711/0.2217, allocations: 172 kB / 0.6203 GB, free: 2.504 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002247/0.224, allocations: 303.9 kB / 0.6206 GB, free: 2.207 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001547/0.2256, allocations: 0.6569 MB / 0.6212 GB, free: 1.547 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003582/0.2292, allocations: 1.522 MB / 0.6227 GB, free: 16 kB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006264/0.2355, allocations: 3.81 MB / 0.6264 GB, free: 12.19 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.221e-06/0.2355, allocations: 0 / 0.6264 GB, free: 12.19 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2355, allocations: 0 / 0.6264 GB, free: 12.19 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001985/0.2357, allocations: 0 / 0.6264 GB, free: 12.19 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 523 * Number of variables: 523 Notification: Performance of Generate backend data structure: time 0.02649/0.2622, allocations: 6.583 MB / 0.6329 GB, free: 5.512 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.298e-05/0.2623, allocations: 11.98 kB / 0.6329 GB, free: 5.5 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01498/0.2773, allocations: 2.275 MB / 0.6351 GB, free: 3.219 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00559/0.2829, allocations: 1.87 MB / 0.6369 GB, free: 1.281 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008172/0.2838, allocations: 0.7253 MB / 0.6376 GB, free: 452 kB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000568/0.2844, allocations: 223.9 kB / 0.6378 GB, free: 228 kB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3501/0.6345, allocations: 3.023 MB / 0.6408 GB, free: 47.17 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.16e-05/0.6346, allocations: 0 / 0.6408 GB, free: 47.17 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002664/0.6348, allocations: 91.22 kB / 0.6409 GB, free: 47.11 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.921e-05/0.6349, allocations: 49.78 kB / 0.6409 GB, free: 47.11 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008031/0.643, allocations: 2.788 MB / 0.6437 GB, free: 46.18 MB / 426.7 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.02294/0.6659, allocations: 9.871 MB / 0.6533 GB, free: 41.17 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0117/0.6777, allocations: 4.2 MB / 0.6574 GB, free: 39.5 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004861/0.6826, allocations: 1.966 MB / 0.6593 GB, free: 38.59 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003815/0.683, allocations: 38.28 kB / 0.6593 GB, free: 38.59 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004949/0.688, allocations: 2.231 MB / 0.6615 GB, free: 37.3 MB / 426.7 MB Notification: Performance of pre-optimization done (n=248): time 4.549e-06/0.688, allocations: 0 / 0.6615 GB, free: 37.3 MB / 426.7 MB Notification: Performance of matching and sorting (n=248): time 0.108/0.796, allocations: 27.31 MB / 0.6882 GB, free: 15.87 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.429e-05/0.7961, allocations: 184.3 kB / 0.6884 GB, free: 15.65 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00335/0.7995, allocations: 2.273 MB / 0.6906 GB, free: 13.37 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008276/0.8003, allocations: 65.7 kB / 0.6907 GB, free: 13.3 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006834/0.801, allocations: 1.17 MB / 0.6918 GB, free: 12.13 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001008/0.8021, allocations: 0.8715 MB / 0.6926 GB, free: 11.27 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000966/0.803, allocations: 0.5657 MB / 0.6932 GB, free: 10.69 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 4.794e-05/0.8031, allocations: 305.1 kB / 0.6935 GB, free: 10.39 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003693/0.8068, allocations: 1.955 MB / 0.6954 GB, free: 8.434 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003895/0.8107, allocations: 2.322 MB / 0.6977 GB, free: 6.02 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0531/0.8638, allocations: 14.03 MB / 0.7114 GB, free: 7.766 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.482e-05/0.8639, allocations: 0 / 0.7114 GB, free: 7.766 MB / 442.7 MB Notification: Performance of matching and sorting (n=417) (initialization): time 0.04262/0.9065, allocations: 12.51 MB / 0.7236 GB, free: 11.2 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001241/0.9067, allocations: 114.8 kB / 0.7237 GB, free: 11.06 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.669e-05/0.9067, allocations: 8 kB / 0.7237 GB, free: 11.05 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01857/0.9253, allocations: 5.292 MB / 0.7289 GB, free: 5.754 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003236/0.9286, allocations: 0.5656 MB / 0.7294 GB, free: 5.188 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05789/0.9865, allocations: 21.31 MB / 0.7502 GB, free: 15.73 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004729/0.9912, allocations: 489 kB / 0.7507 GB, free: 15.25 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004858/0.9918, allocations: 120 kB / 0.7508 GB, free: 15.13 MB / 490.7 MB Warning: Assuming fixed start value for the following 7 variables: order3_2.delta:VARIABLE(flow=false start = order3_2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order3_2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3_2.e1q:VARIABLE(start = order3_2.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real order2.delta:VARIABLE(flow=false start = order2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order4_1.delta:VARIABLE(flow=false start = order4_1.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order4_1.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,$whenCondition4,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (330): * Single equations (assignments): 325 * Array equations: 0 * Algorithm blocks: 4 * 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 {(63,25,8.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001338/0.9931, allocations: 0.5319 MB / 0.7513 GB, free: 14.58 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006295/0.9937, allocations: 296.3 kB / 0.7516 GB, free: 14.29 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04205/1.036, allocations: 11.9 MB / 0.7632 GB, free: 2.336 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.926e-05/1.036, allocations: 27.94 kB / 0.7633 GB, free: 2.309 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.213e-05/1.036, allocations: 23.94 kB / 0.7633 GB, free: 2.285 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.612e-05/1.036, allocations: 14.7 kB / 0.7633 GB, free: 2.273 MB / 490.7 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.04725/1.083, allocations: 15.51 MB / 0.7784 GB, free: 2.613 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.88e-05/1.083, allocations: 0 / 0.7784 GB, free: 2.613 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001619/1.085, allocations: 251.6 kB / 0.7787 GB, free: 2.367 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01887/1.104, allocations: 5.248 MB / 0.7838 GB, free: 13.11 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006695/1.105, allocations: 51.98 kB / 0.7839 GB, free: 13.05 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05818/1.163, allocations: 22.68 MB / 0.806 GB, free: 5.953 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.406e-06/1.163, allocations: 4 kB / 0.806 GB, free: 5.949 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5755/1.738, allocations: 93.21 MB / 0.897 GB, free: 162.4 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001082/1.739, allocations: 409.3 kB / 0.8974 GB, free: 162.1 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008802/1.74, allocations: 51.59 kB / 0.8975 GB, free: 162 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003136/1.744, allocations: 299.8 kB / 0.8978 GB, free: 162 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00239/1.746, allocations: 0.5653 MB / 0.8983 GB, free: 161.9 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002448/1.746, allocations: 70.11 kB / 0.8984 GB, free: 161.9 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.002462/1.749, allocations: 1.499 MB / 0.8999 GB, free: 161.3 MB / 0.573 GB Notification: Performance of sort global known variables: time 3.51e-07/1.749, allocations: 3.812 kB / 0.8999 GB, free: 161.3 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.0059/1.755, allocations: 1.639 MB / 0.9015 GB, free: 161.1 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 17 (order3_2.delta,order3_2.w,order3_2.e1q,order2.delta,order2.w,order4_1.delta,order4_1.w,order4_1.e1q,order4_1.e1d,Exc1.ExcitationSystem.x_scaled[1],Exc1.derivativeBlock.x,Exc1.firstOrder2.y,Exc1.simpleLagLim.state,Exc2.ExcitationSystem.x_scaled[1],Exc2.derivativeBlock.x,Exc2.firstOrder2.y,Exc2.simpleLagLim.state) * Number of discrete variables: 4 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (157): * Single equations (assignments): 152 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(65,23,7.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,6), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005929/1.755, allocations: 167.4 kB / 0.9016 GB, free: 161 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01814/1.773, allocations: 6.627 MB / 0.9081 GB, free: 158.7 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.078e-05/1.773, allocations: 3.812 kB / 0.9081 GB, free: 158.7 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.01384/1.787, allocations: 4.395 MB / 0.9124 GB, free: 157 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002886/1.79, allocations: 266.8 kB / 0.9126 GB, free: 156.9 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0211/1.811, allocations: 10.07 MB / 0.9225 GB, free: 150.9 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002027/1.813, allocations: 1.922 MB / 0.9243 GB, free: 149.4 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.001429/1.815, allocations: 273.3 kB / 0.9246 GB, free: 149.2 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006299/1.816, allocations: 174.9 kB / 0.9248 GB, free: 149 MB / 0.573 GB Notification: Performance of SimCode: time 2.214e-06/1.816, allocations: 0 / 0.9248 GB, free: 149 MB / 0.573 GB Notification: Performance of Templates: time 0.1152/1.931, allocations: 86.05 MB / 1.009 GB, free: 67.67 MB / 0.573 GB make -j1 -f OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.makefile (rm -f OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.sim & ./OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe 2>&1)