Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_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.0.1/package.mo", uses=false) Using package OpenIPSL with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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.TwoAreaOld.SixthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001366/0.001366, allocations: 105.1 kB / 16.41 MB, free: 6.41 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.385/1.385, allocations: 222.9 MB / 240.1 MB, free: 4.547 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.001725/0.001726, allocations: 191.4 kB / 290.4 MB, free: 2.266 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4903/0.4903, allocations: 78.53 MB / 419.1 MB, free: 3.113 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001715/0.001715, allocations: 83.81 kB / 0.5543 GB, free: 0.9219 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3588/0.3605, allocations: 68.17 MB / 0.6209 GB, free: 9.738 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII): time 0.006136/0.3667, allocations: 6.7 MB / 0.6274 GB, free: 3.484 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004122/0.3708, allocations: 2.005 MB / 0.6294 GB, free: 1.473 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001159/0.372, allocations: 15.94 kB / 0.6294 GB, free: 1.457 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009666/0.373, allocations: 245.9 kB / 0.6296 GB, free: 1.215 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00264/0.3757, allocations: 0.822 MB / 0.6304 GB, free: 404 kB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001574/0.3773, allocations: 0.645 MB / 0.6311 GB, free: 15.75 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002536/0.3798, allocations: 1.675 MB / 0.6327 GB, free: 14.07 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007167/0.3806, allocations: 334.4 kB / 0.633 GB, free: 13.73 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0013/0.3819, allocations: 0.6886 MB / 0.6337 GB, free: 13.04 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001393/0.3833, allocations: 0.8713 MB / 0.6345 GB, free: 12.17 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004391/0.3837, allocations: 132 kB / 0.6347 GB, free: 12.04 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008918/0.3846, allocations: 271.8 kB / 0.6349 GB, free: 11.77 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005845/0.3852, allocations: 346.6 kB / 0.6352 GB, free: 11.43 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001218/0.3865, allocations: 0.6991 MB / 0.6359 GB, free: 10.73 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002626/0.3891, allocations: 1.734 MB / 0.6376 GB, free: 8.996 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.3891, allocations: 0 / 0.6376 GB, free: 8.996 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3891, allocations: 7.938 kB / 0.6376 GB, free: 8.988 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.772e-05/0.3892, allocations: 0 / 0.6376 GB, free: 8.988 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.01057/0.3998, allocations: 2.774 MB / 0.6403 GB, free: 6.145 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.894e-05/0.3998, allocations: 8.031 kB / 0.6403 GB, free: 6.137 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005456/0.4053, allocations: 0.7826 MB / 0.6411 GB, free: 5.352 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002194/0.4075, allocations: 0.9257 MB / 0.642 GB, free: 4.371 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000351/0.4079, allocations: 260.1 kB / 0.6423 GB, free: 4.078 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003804/0.4083, allocations: 91.91 kB / 0.6424 GB, free: 3.988 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002844/0.4112, allocations: 1.11 MB / 0.6434 GB, free: 2.867 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.024e-05/0.4112, allocations: 4 kB / 0.6434 GB, free: 2.863 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001402/0.4114, allocations: 28 kB / 0.6435 GB, free: 2.836 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.99e-05/0.4114, allocations: 20 kB / 0.6435 GB, free: 2.816 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002294/0.4137, allocations: 1.003 MB / 0.6445 GB, free: 1.812 MB / 446.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.008107/0.4218, allocations: 3.887 MB / 0.6483 GB, free: 13.75 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00787/0.4297, allocations: 2.412 MB / 0.6506 GB, free: 11.24 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00169/0.4315, allocations: 0.6957 MB / 0.6513 GB, free: 10.54 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001476/0.4316, allocations: 20.97 kB / 0.6513 GB, free: 10.52 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002017/0.4336, allocations: 0.8402 MB / 0.6521 GB, free: 9.66 MB / 462.1 MB Notification: Performance of pre-optimization done (n=98): time 3.477e-06/0.4337, allocations: 0 / 0.6521 GB, free: 9.66 MB / 462.1 MB Notification: Performance of matching and sorting (n=98): time 0.03022/0.4639, allocations: 7.085 MB / 0.6591 GB, free: 2.516 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.483e-05/0.464, allocations: 119.8 kB / 0.6592 GB, free: 2.375 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002087/0.4661, allocations: 1.139 MB / 0.6603 GB, free: 1.223 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002985/0.4664, allocations: 45.7 kB / 0.6603 GB, free: 1.172 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004545/0.4669, allocations: 0.4969 MB / 0.6608 GB, free: 0.668 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005672/0.4675, allocations: 366.9 kB / 0.6612 GB, free: 312 kB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007715/0.4683, allocations: 299.4 kB / 0.6614 GB, free: 8 kB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001184/0.4684, allocations: 305.1 kB / 0.6617 GB, free: 15.71 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001797/0.4702, allocations: 0.8003 MB / 0.6625 GB, free: 14.91 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001885/0.4721, allocations: 0.9655 MB / 0.6635 GB, free: 13.9 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02694/0.4991, allocations: 5.926 MB / 0.6692 GB, free: 7.887 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.796e-05/0.4991, allocations: 0 / 0.6692 GB, free: 7.887 MB / 478.1 MB Notification: Performance of matching and sorting (n=204) (initialization): time 0.01625/0.5154, allocations: 4.512 MB / 0.6737 GB, free: 3.344 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.49e-05/0.5155, allocations: 59.41 kB / 0.6737 GB, free: 3.273 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.772e-05/0.5156, allocations: 0 / 0.6737 GB, free: 3.273 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006834/0.5224, allocations: 1.666 MB / 0.6753 GB, free: 1.605 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001661/0.5241, allocations: 295.6 kB / 0.6756 GB, free: 1.316 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02253/0.5467, allocations: 8.619 MB / 0.684 GB, free: 8.539 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002319/0.549, allocations: 210.6 kB / 0.6842 GB, free: 8.332 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003853/0.5495, allocations: 59.97 kB / 0.6843 GB, free: 8.273 MB / 494.1 MB Warning: Assuming fixed start value for the following 4 variables: order6.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 order6.delta:VARIABLE(flow=false start = order6.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 (171): * Single equations (assignments): 168 * 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 {(20,14,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001002/0.5505, allocations: 308.2 kB / 0.6846 GB, free: 7.953 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000456/0.5509, allocations: 130.4 kB / 0.6847 GB, free: 7.824 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01354/0.5645, allocations: 3.92 MB / 0.6885 GB, free: 3.871 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.117e-05/0.5646, allocations: 15.94 kB / 0.6886 GB, free: 3.855 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.873e-05/0.5646, allocations: 8 kB / 0.6886 GB, free: 3.848 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.174e-05/0.5646, allocations: 3.984 kB / 0.6886 GB, free: 3.844 MB / 494.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 postOpt removeSimpleEquations (simulation): time 0.0169/0.5815, allocations: 5.553 MB / 0.694 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.588e-05/0.5816, allocations: 0 / 0.694 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008265/0.5824, allocations: 107.8 kB / 0.6941 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006048/0.5885, allocations: 1.591 MB / 0.6956 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003026/0.5889, allocations: 27.98 kB / 0.6957 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02199/0.6109, allocations: 9.611 MB / 0.7051 GB, free: 2.551 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.6109, allocations: 4 kB / 0.7051 GB, free: 2.547 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01598/0.6269, allocations: 4.809 MB / 0.7098 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005315/0.6275, allocations: 231.2 kB / 0.71 GB, free: 13.46 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004607/0.628, allocations: 19.94 kB / 0.71 GB, free: 13.44 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001576/0.6296, allocations: 111.9 kB / 0.7101 GB, free: 13.33 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007196/0.6303, allocations: 196.7 kB / 0.7103 GB, free: 13.13 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001488/0.6305, allocations: 23.98 kB / 0.7103 GB, free: 13.11 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001376/0.6319, allocations: 0.7752 MB / 0.7111 GB, free: 12.33 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.91e-07/0.6319, allocations: 0 / 0.7111 GB, free: 12.33 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.002032/0.6339, allocations: 491.6 kB / 0.7115 GB, free: 11.85 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 12 (order2.delta,order2.w,order6.delta,order6.w,order6.e1q,order6.e1d,order6.e2q,order6.e2d,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 (66): * Single equations (assignments): 63 * 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.0004001/0.6343, allocations: 139 kB / 0.7117 GB, free: 11.7 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007357/0.6417, allocations: 2.617 MB / 0.7142 GB, free: 9.043 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 6.823e-06/0.6417, allocations: 0 / 0.7142 GB, free: 9.043 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004834/0.6466, allocations: 1.623 MB / 0.7158 GB, free: 7.383 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001637/0.6482, allocations: 118.1 kB / 0.7159 GB, free: 7.27 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005193/0.6535, allocations: 2.46 MB / 0.7183 GB, free: 4.777 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008496/0.6543, allocations: 1.132 MB / 0.7194 GB, free: 3.617 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005738/0.6549, allocations: 91.41 kB / 0.7195 GB, free: 3.531 MB / 0.5137 GB Notification: Performance of SimCode: time 1.343e-06/0.655, allocations: 0 / 0.7195 GB, free: 3.531 MB / 0.5137 GB Notification: Performance of Templates: time 0.03659/0.6916, allocations: 24.33 MB / 0.7433 GB, free: 11.2 MB / 0.545 GB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.makefile (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.sim & ./OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.pipe 2>&1)