Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.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.TwoArea.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009232/0.0009237, allocations: 97.64 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.419/1.419, allocations: 223.3 MB / 239.4 MB, free: 5.504 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.001033/0.001033, allocations: 183 kB / 290.6 MB, free: 2.184 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.548/0.548, allocations: 91.93 MB / 433.6 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003934/0.0003934, allocations: 12 kB / 0.5048 GB, free: 7.258 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4428/0.4432, allocations: 72.47 MB / 0.5755 GB, free: 36.66 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII): time 0.01585/0.4591, allocations: 22.51 MB / 0.5975 GB, free: 20.18 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01473/0.4739, allocations: 5.118 MB / 0.6025 GB, free: 16.46 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006682/0.4806, allocations: 53.38 kB / 0.6026 GB, free: 16.46 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003729/0.4844, allocations: 0.6649 MB / 0.6032 GB, free: 16.2 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01061/0.495, allocations: 1.726 MB / 0.6049 GB, free: 14.99 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006338/0.5014, allocations: 1.92 MB / 0.6068 GB, free: 13.89 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01108/0.5125, allocations: 5.43 MB / 0.6121 GB, free: 11.15 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002649/0.5152, allocations: 1.131 MB / 0.6132 GB, free: 10.57 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004897/0.5201, allocations: 2.056 MB / 0.6152 GB, free: 9.582 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006144/0.5262, allocations: 2.685 MB / 0.6178 GB, free: 8.297 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002684/0.5289, allocations: 237.7 kB / 0.618 GB, free: 8.293 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004024/0.533, allocations: 372.1 kB / 0.6184 GB, free: 8.254 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001661/0.5347, allocations: 0.9336 MB / 0.6193 GB, free: 7.668 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005349/0.54, allocations: 2.387 MB / 0.6216 GB, free: 6.109 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01227/0.5523, allocations: 5.835 MB / 0.6273 GB, free: 3.836 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.037e-05/0.5524, allocations: 0.9688 kB / 0.6273 GB, free: 3.836 MB / 430.1 MB Notification: Performance of FrontEnd: time 4.398e-06/0.5524, allocations: 0 / 0.6273 GB, free: 3.836 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004345/0.5528, allocations: 0 / 0.6273 GB, free: 3.836 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: 893 * Number of variables: 893 Notification: Performance of Generate backend data structure: time 0.03544/0.5883, allocations: 8.401 MB / 0.6355 GB, free: 15.92 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.641e-05/0.5884, allocations: 9.062 kB / 0.6355 GB, free: 15.92 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02856/0.6169, allocations: 4.05 MB / 0.6395 GB, free: 12.01 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007812/0.6248, allocations: 2.647 MB / 0.6421 GB, free: 9.285 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001214/0.626, allocations: 0.9885 MB / 0.6431 GB, free: 8.16 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001816/0.6279, allocations: 359.8 kB / 0.6434 GB, free: 7.805 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01418/0.6421, allocations: 4.989 MB / 0.6483 GB, free: 2.785 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.099e-05/0.6422, allocations: 3.938 kB / 0.6483 GB, free: 2.781 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004308/0.6426, allocations: 140 kB / 0.6484 GB, free: 2.645 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.269e-05/0.6427, allocations: 84 kB / 0.6485 GB, free: 2.562 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01206/0.6548, allocations: 4.502 MB / 0.6529 GB, free: 14.05 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.04835/0.7032, allocations: 18.85 MB / 0.6713 GB, free: 10.03 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0152/0.7184, allocations: 5.738 MB / 0.6769 GB, free: 4.207 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007747/0.7262, allocations: 3.051 MB / 0.6799 GB, free: 1.148 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008995/0.7271, allocations: 66.91 kB / 0.6799 GB, free: 1.082 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.009867/0.737, allocations: 3.435 MB / 0.6833 GB, free: 13.61 MB / 494.1 MB Notification: Performance of pre-optimization done (n=383): time 1.047e-05/0.7371, allocations: 0 / 0.6833 GB, free: 13.61 MB / 494.1 MB Notification: Performance of matching and sorting (n=383): time 0.3334/1.07, allocations: 81.84 MB / 0.7632 GB, free: 11.57 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001141/1.071, allocations: 141.8 kB / 0.7633 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007236/1.078, allocations: 3.214 MB / 0.7665 GB, free: 8.172 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001258/1.079, allocations: 93.73 kB / 0.7666 GB, free: 8.074 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001747/1.081, allocations: 1.963 MB / 0.7685 GB, free: 6.098 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.002526/1.083, allocations: 1.313 MB / 0.7698 GB, free: 4.766 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007228/1.084, allocations: 350.7 kB / 0.7701 GB, free: 4.414 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001099/1.084, allocations: 305.1 kB / 0.7704 GB, free: 4.113 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006557/1.091, allocations: 2.847 MB / 0.7732 GB, free: 1.258 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.318/1.409, allocations: 3.472 MB / 0.7766 GB, free: 159.7 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.07957/1.488, allocations: 20.67 MB / 0.7967 GB, free: 156.5 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.046e-05/1.489, allocations: 4.438 kB / 0.7968 GB, free: 156.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=538) (initialization): time 0.06667/1.555, allocations: 21.03 MB / 0.8173 GB, free: 152.1 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001025/1.555, allocations: 71.06 kB / 0.8174 GB, free: 152.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.684e-05/1.555, allocations: 16 kB / 0.8174 GB, free: 152.1 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02717/1.583, allocations: 8.483 MB / 0.8257 GB, free: 145.6 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00423/1.587, allocations: 0.672 MB / 0.8263 GB, free: 145 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08228/1.669, allocations: 34.89 MB / 0.8604 GB, free: 111.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007931/1.677, allocations: 0.7536 MB / 0.8611 GB, free: 110.4 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001388/1.679, allocations: 156 kB / 0.8613 GB, free: 110.3 MB / 0.5606 GB Warning: Assuming fixed start value for the following 5 variables: order4.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3.delta:VARIABLE(flow=false start = order3.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order3.e1q:VARIABLE(start = order3.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real order4.delta:VARIABLE(flow=false start = order4.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * 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 (403): * Single equations (assignments): 400 * 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 {(92,44,5.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00297/1.682, allocations: 0.6686 MB / 0.8619 GB, free: 109.6 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001764/1.683, allocations: 455.3 kB / 0.8624 GB, free: 109.2 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05869/1.742, allocations: 20.64 MB / 0.8825 GB, free: 88.46 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.463e-05/1.742, allocations: 36 kB / 0.8826 GB, free: 88.43 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.515e-05/1.742, allocations: 28.69 kB / 0.8826 GB, free: 88.4 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001713/1.742, allocations: 19.94 kB / 0.8826 GB, free: 88.38 MB / 0.5606 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.06904/1.811, allocations: 25.64 MB / 0.9076 GB, free: 62.68 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.702e-05/1.812, allocations: 0 / 0.9076 GB, free: 62.68 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00254/1.814, allocations: 387.5 kB / 0.908 GB, free: 62.3 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02644/1.841, allocations: 8.688 MB / 0.9165 GB, free: 53.6 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001152/1.842, allocations: 71.98 kB / 0.9166 GB, free: 53.53 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07418/1.916, allocations: 32.72 MB / 0.9485 GB, free: 20.53 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/1.916, allocations: 1.781 kB / 0.9485 GB, free: 20.53 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06612/1.982, allocations: 24.26 MB / 0.9722 GB, free: 12.18 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002023/1.984, allocations: 0.5661 MB / 0.9728 GB, free: 11.59 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001939/1.986, allocations: 64 kB / 0.9728 GB, free: 11.53 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005552/1.992, allocations: 0.5074 MB / 0.9733 GB, free: 11.02 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003299/1.995, allocations: 0.7685 MB / 0.9741 GB, free: 10.25 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004611/1.995, allocations: 95.98 kB / 0.9742 GB, free: 10.16 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.003556/1.999, allocations: 2.109 MB / 0.9762 GB, free: 8.047 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.7e-07/1.999, allocations: 0 / 0.9762 GB, free: 8.047 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.007177/2.006, allocations: 1.798 MB / 0.978 GB, free: 6.246 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 11 (order3.delta,order3.w,order3.e1q,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 (247): * Single equations (assignments): 244 * 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 {(98,38,5.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007479/2.007, allocations: 188.8 kB / 0.9782 GB, free: 6.051 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.03008/2.037, allocations: 10.31 MB / 0.9882 GB, free: 11.69 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.17e-05/2.037, allocations: 0 / 0.9882 GB, free: 11.69 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.02385/2.061, allocations: 7.044 MB / 0.9951 GB, free: 4.605 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007925/2.069, allocations: 389.8 kB / 0.9955 GB, free: 4.223 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3236/2.393, allocations: 9.81 MB / 1.005 GB, free: 182.2 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001908/2.395, allocations: 2.442 MB / 1.007 GB, free: 181.4 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.001997/2.397, allocations: 373.9 kB / 1.008 GB, free: 181.4 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008665/2.397, allocations: 233.9 kB / 1.008 GB, free: 181.4 MB / 0.5919 GB Notification: Performance of SimCode: time 1.593e-06/2.397, allocations: 0 / 1.008 GB, free: 181.4 MB / 0.5919 GB Notification: Performance of Templates: time 0.1314/2.529, allocations: 80.18 MB / 1.086 GB, free: 132.6 MB / 0.5919 GB make -j1 -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.makefile (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.sim & ./OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe 2>&1)