Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.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.ThreeArea.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001586/0.001586, allocations: 108 kB / 15.6 MB, free: 132 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.634/1.634, allocations: 222.9 MB / 239.2 MB, free: 4.594 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.0013/0.0013, allocations: 200.4 kB / 289.5 MB, free: 2.309 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5332/0.5332, allocations: 91.89 MB / 431.6 MB, free: 9.246 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001582/0.001582, allocations: 83.88 kB / 0.5019 GB, free: 7.707 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3962/0.3978, allocations: 71.27 MB / 0.5715 GB, free: 36.64 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII): time 0.009586/0.4074, allocations: 13.71 MB / 0.5849 GB, free: 27.56 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.006941/0.4144, allocations: 3.48 MB / 0.5883 GB, free: 25.06 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002257/0.4167, allocations: 28.56 kB / 0.5883 GB, free: 25.06 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001288/0.4181, allocations: 0.5615 MB / 0.5888 GB, free: 24.75 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004588/0.4227, allocations: 1.411 MB / 0.5902 GB, free: 23.79 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003602/0.4263, allocations: 1.515 MB / 0.5917 GB, free: 23.02 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.00625/0.4326, allocations: 3.7 MB / 0.5953 GB, free: 21.16 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001505/0.4341, allocations: 0.8973 MB / 0.5962 GB, free: 20.7 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002563/0.4367, allocations: 1.514 MB / 0.5977 GB, free: 19.93 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002881/0.4396, allocations: 1.961 MB / 0.5996 GB, free: 18.96 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001074/0.4407, allocations: 284.2 kB / 0.5998 GB, free: 18.96 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001662/0.4423, allocations: 430.1 kB / 0.6002 GB, free: 18.92 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006304/0.443, allocations: 0.7641 MB / 0.601 GB, free: 18.41 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001788/0.4448, allocations: 1.631 MB / 0.6026 GB, free: 17.3 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004678/0.4495, allocations: 3.922 MB / 0.6064 GB, free: 15.48 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.4495, allocations: 1.188 kB / 0.6064 GB, free: 15.48 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.4495, allocations: 0 / 0.6064 GB, free: 15.48 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001346/0.4496, allocations: 0 / 0.6064 GB, free: 15.48 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: 523 * Number of variables: 523 Notification: Performance of Generate backend data structure: time 0.02577/0.4754, allocations: 6.58 MB / 0.6128 GB, free: 12.85 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.33e-05/0.4755, allocations: 9.5 kB / 0.6129 GB, free: 12.85 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01589/0.4914, allocations: 2.28 MB / 0.6151 GB, free: 12.4 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00469/0.4961, allocations: 1.867 MB / 0.6169 GB, free: 11.25 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006525/0.4968, allocations: 0.7232 MB / 0.6176 GB, free: 10.6 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000705/0.4975, allocations: 219.9 kB / 0.6178 GB, free: 10.52 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006327/0.5038, allocations: 3.029 MB / 0.6208 GB, free: 9.375 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.737e-05/0.5039, allocations: 3.938 kB / 0.6208 GB, free: 9.371 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002484/0.5042, allocations: 85.97 kB / 0.6209 GB, free: 9.305 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.741e-05/0.5042, allocations: 53.45 kB / 0.6209 GB, free: 9.301 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006358/0.5106, allocations: 2.78 MB / 0.6236 GB, free: 8.363 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.01738/0.528, allocations: 9.929 MB / 0.6333 GB, free: 14.52 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0108/0.5388, allocations: 4.188 MB / 0.6374 GB, free: 10.2 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004678/0.5435, allocations: 1.968 MB / 0.6393 GB, free: 8.223 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003132/0.5438, allocations: 37.97 kB / 0.6394 GB, free: 8.188 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004758/0.5486, allocations: 2.235 MB / 0.6416 GB, free: 5.934 MB / 446.1 MB Notification: Performance of pre-optimization done (n=248): time 4.177e-06/0.5486, allocations: 0 / 0.6416 GB, free: 5.934 MB / 446.1 MB Notification: Performance of matching and sorting (n=248): time 0.1225/0.6711, allocations: 28.17 MB / 0.6691 GB, free: 9.629 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001181/0.6713, allocations: 184.3 kB / 0.6692 GB, free: 9.41 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004694/0.676, allocations: 2.273 MB / 0.6715 GB, free: 7.117 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009563/0.677, allocations: 69.7 kB / 0.6715 GB, free: 7.043 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000979/0.6779, allocations: 1.164 MB / 0.6727 GB, free: 5.867 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00134/0.6793, allocations: 0.8704 MB / 0.6735 GB, free: 4.984 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001156/0.6805, allocations: 0.5657 MB / 0.6741 GB, free: 4.41 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.364e-05/0.6806, allocations: 305.1 kB / 0.6744 GB, free: 4.109 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004558/0.6851, allocations: 1.951 MB / 0.6763 GB, free: 2.156 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004949/0.6901, allocations: 2.318 MB / 0.6785 GB, free: 15.75 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.05697/0.7471, allocations: 14.07 MB / 0.6923 GB, free: 1.438 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.012e-05/0.7471, allocations: 4 kB / 0.6923 GB, free: 1.434 MB / 494.1 MB Notification: Performance of matching and sorting (n=417) (initialization): time 0.0467/0.7939, allocations: 12.51 MB / 0.7045 GB, free: 4.855 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.000111/0.794, allocations: 114.8 kB / 0.7046 GB, free: 4.719 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.318e-05/0.7941, allocations: 4 kB / 0.7046 GB, free: 4.715 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01964/0.8137, allocations: 5.304 MB / 0.7098 GB, free: 15.41 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003178/0.8169, allocations: 0.5656 MB / 0.7103 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06714/0.8841, allocations: 23.19 MB / 0.733 GB, free: 7.473 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00541/0.8895, allocations: 489.1 kB / 0.7335 GB, free: 6.992 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008827/0.8904, allocations: 112 kB / 0.7336 GB, free: 6.883 MB / 0.5294 GB 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.001997/0.8924, allocations: 0.5363 MB / 0.7341 GB, free: 6.328 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001106/0.8936, allocations: 300.3 kB / 0.7344 GB, free: 6.031 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04217/0.9357, allocations: 11.91 MB / 0.746 GB, free: 10.07 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.443e-05/0.9358, allocations: 24 kB / 0.746 GB, free: 10.05 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.48e-05/0.9359, allocations: 20 kB / 0.746 GB, free: 10.03 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.916e-05/0.936, allocations: 11.95 kB / 0.7461 GB, free: 10.02 MB / 0.545 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.0514/0.9874, allocations: 15.5 MB / 0.7612 GB, free: 10.34 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.357e-05/0.9875, allocations: 8 kB / 0.7612 GB, free: 10.34 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001655/0.9892, allocations: 243.6 kB / 0.7614 GB, free: 10.1 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01971/1.009, allocations: 5.255 MB / 0.7666 GB, free: 4.828 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001135/1.01, allocations: 51.98 kB / 0.7666 GB, free: 4.777 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2942/1.304, allocations: 24.96 MB / 0.791 GB, free: 159.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.868e-06/1.304, allocations: 0 / 0.791 GB, free: 159.5 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04799/1.352, allocations: 14.27 MB / 0.8049 GB, free: 155.8 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001359/1.354, allocations: 403.4 kB / 0.8053 GB, free: 155.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009055/1.355, allocations: 57.3 kB / 0.8054 GB, free: 155.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003327/1.358, allocations: 299.4 kB / 0.8056 GB, free: 155.5 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002094/1.36, allocations: 0.5772 MB / 0.8062 GB, free: 155.3 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002499/1.36, allocations: 64.91 kB / 0.8063 GB, free: 155.3 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002376/1.363, allocations: 1.5 MB / 0.8077 GB, free: 154.8 MB / 0.5606 GB Notification: Performance of sort global known variables: time 8.61e-07/1.363, allocations: 4 kB / 0.8077 GB, free: 154.8 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004301/1.367, allocations: 1.171 MB / 0.8089 GB, free: 154.6 MB / 0.5606 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.000509/1.368, allocations: 182.7 kB / 0.8091 GB, free: 154.5 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01995/1.388, allocations: 6.725 MB / 0.8156 GB, free: 152.1 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.905e-06/1.388, allocations: 0 / 0.8156 GB, free: 152.1 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01365/1.401, allocations: 4.406 MB / 0.8199 GB, free: 149.3 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003313/1.405, allocations: 270.2 kB / 0.8202 GB, free: 149 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009695/1.414, allocations: 5.391 MB / 0.8255 GB, free: 144 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001031/1.415, allocations: 1.811 MB / 0.8272 GB, free: 142.6 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.00122/1.417, allocations: 259.4 kB / 0.8275 GB, free: 142.4 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005251/1.417, allocations: 177.1 kB / 0.8276 GB, free: 142.2 MB / 0.5606 GB Notification: Performance of SimCode: time 7.52e-07/1.417, allocations: 0 / 0.8276 GB, free: 142.2 MB / 0.5606 GB Notification: Performance of Templates: time 0.08414/1.501, allocations: 63.02 MB / 0.8892 GB, free: 80.02 MB / 0.5606 GB make -j1 -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.makefile (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.sim & ./OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe 2>&1)