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.006058/0.006058, allocations: 102.1 kB / 15.73 MB, free: 6.062 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.373/1.373, allocations: 222.9 MB / 239.4 MB, free: 4.559 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.001647/0.001647, allocations: 180.5 kB / 289.7 MB, free: 2.277 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.461/0.461, allocations: 78.52 MB / 418.4 MB, free: 3.191 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001514/0.001514, allocations: 75.88 kB / 0.5536 GB, free: 0.9805 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3125/0.314, allocations: 68.15 MB / 0.6202 GB, free: 9.621 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII): time 0.005519/0.3196, allocations: 6.703 MB / 0.6267 GB, free: 3.523 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003428/0.323, allocations: 2.017 MB / 0.6287 GB, free: 1.5 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004552/0.3235, allocations: 12 kB / 0.6287 GB, free: 1.488 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006158/0.3241, allocations: 241.9 kB / 0.6289 GB, free: 1.25 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001462/0.3256, allocations: 0.8268 MB / 0.6298 GB, free: 436 kB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001055/0.3267, allocations: 0.6439 MB / 0.6304 GB, free: 15.79 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001488/0.3282, allocations: 1.675 MB / 0.632 GB, free: 14.11 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000444/0.3286, allocations: 342.4 kB / 0.6323 GB, free: 13.76 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007593/0.3294, allocations: 0.6808 MB / 0.633 GB, free: 13.08 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009082/0.3303, allocations: 0.8713 MB / 0.6339 GB, free: 12.2 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000208/0.3305, allocations: 132 kB / 0.634 GB, free: 12.07 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004857/0.331, allocations: 271.8 kB / 0.6342 GB, free: 11.81 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000301/0.3313, allocations: 346.6 kB / 0.6346 GB, free: 11.47 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000543/0.3319, allocations: 0.703 MB / 0.6353 GB, free: 10.76 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001644/0.3335, allocations: 1.736 MB / 0.637 GB, free: 9.023 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.3336, allocations: 0 / 0.637 GB, free: 9.023 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3336, allocations: 3.938 kB / 0.637 GB, free: 9.02 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.612e-05/0.3336, allocations: 0 / 0.637 GB, free: 9.02 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.00929/0.3429, allocations: 2.823 MB / 0.6397 GB, free: 6.125 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.343, allocations: 12.03 kB / 0.6397 GB, free: 6.113 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005075/0.348, allocations: 0.7874 MB / 0.6405 GB, free: 5.324 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001723/0.3498, allocations: 0.9384 MB / 0.6414 GB, free: 4.332 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002927/0.3501, allocations: 260.2 kB / 0.6417 GB, free: 4.039 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001754/0.3503, allocations: 83.95 kB / 0.6417 GB, free: 3.957 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00228/0.3526, allocations: 1.114 MB / 0.6428 GB, free: 2.832 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.931e-05/0.3526, allocations: 0 / 0.6428 GB, free: 2.832 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001032/0.3527, allocations: 32 kB / 0.6429 GB, free: 2.801 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.642e-05/0.3527, allocations: 20 kB / 0.6429 GB, free: 2.781 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002088/0.3548, allocations: 1.007 MB / 0.6439 GB, free: 1.773 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.006807/0.3616, allocations: 3.9 MB / 0.6477 GB, free: 13.69 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007534/0.3692, allocations: 2.41 MB / 0.65 GB, free: 11.18 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00154/0.3708, allocations: 0.6879 MB / 0.6507 GB, free: 10.49 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001211/0.3709, allocations: 20.98 kB / 0.6507 GB, free: 10.47 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001712/0.3726, allocations: 0.8386 MB / 0.6515 GB, free: 9.613 MB / 462.1 MB Notification: Performance of pre-optimization done (n=98): time 2.705e-06/0.3726, allocations: 0 / 0.6515 GB, free: 9.613 MB / 462.1 MB Notification: Performance of matching and sorting (n=98): time 0.02834/0.401, allocations: 7.09 MB / 0.6585 GB, free: 2.465 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.681e-05/0.4011, allocations: 123.8 kB / 0.6586 GB, free: 2.32 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001973/0.4031, allocations: 1.139 MB / 0.6597 GB, free: 1.168 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001715/0.4033, allocations: 45.7 kB / 0.6597 GB, free: 1.117 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000413/0.4037, allocations: 0.5015 MB / 0.6602 GB, free: 0.6094 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004588/0.4042, allocations: 380.8 kB / 0.6606 GB, free: 240 kB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006458/0.4048, allocations: 303.5 kB / 0.6609 GB, free: 15.93 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.029e-05/0.4049, allocations: 305.1 kB / 0.6612 GB, free: 15.63 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001715/0.4066, allocations: 0.7964 MB / 0.6619 GB, free: 14.84 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001937/0.4086, allocations: 0.9655 MB / 0.6629 GB, free: 13.83 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02596/0.4346, allocations: 5.926 MB / 0.6687 GB, free: 7.816 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.128e-06/0.4346, allocations: 0 / 0.6687 GB, free: 7.816 MB / 478.1 MB Notification: Performance of matching and sorting (n=204) (initialization): time 0.01487/0.4495, allocations: 4.52 MB / 0.6731 GB, free: 3.266 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.349e-05/0.4496, allocations: 63.41 kB / 0.6732 GB, free: 3.191 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.313e-05/0.4496, allocations: 0 / 0.6732 GB, free: 3.191 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006565/0.4562, allocations: 1.662 MB / 0.6748 GB, free: 1.527 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001574/0.4578, allocations: 295.6 kB / 0.6751 GB, free: 1.238 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02188/0.4797, allocations: 8.632 MB / 0.6835 GB, free: 8.449 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002485/0.4822, allocations: 211.1 kB / 0.6837 GB, free: 8.242 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004112/0.4827, allocations: 55.97 kB / 0.6837 GB, free: 8.188 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.001382/0.4841, allocations: 308.2 kB / 0.684 GB, free: 7.867 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006249/0.4847, allocations: 139.2 kB / 0.6842 GB, free: 7.73 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01361/0.4983, allocations: 3.924 MB / 0.688 GB, free: 3.773 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.378e-05/0.4984, allocations: 8 kB / 0.688 GB, free: 3.766 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.778e-05/0.4984, allocations: 8 kB / 0.688 GB, free: 3.758 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.688e-05/0.4984, allocations: 3.984 kB / 0.688 GB, free: 3.754 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.01575/0.5142, allocations: 5.553 MB / 0.6934 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-05/0.5142, allocations: 3.938 kB / 0.6934 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009918/0.5152, allocations: 111.8 kB / 0.6936 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007784/0.523, allocations: 1.587 MB / 0.6951 GB, free: 12.39 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001884/0.5233, allocations: 23.98 kB / 0.6951 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02847/0.5517, allocations: 9.639 MB / 0.7045 GB, free: 2.438 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/0.5518, allocations: 0 / 0.7045 GB, free: 2.438 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02014/0.5719, allocations: 4.818 MB / 0.7092 GB, free: 13.59 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005179/0.5725, allocations: 236 kB / 0.7095 GB, free: 13.34 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003595/0.5729, allocations: 19.94 kB / 0.7095 GB, free: 13.32 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001405/0.5743, allocations: 107.9 kB / 0.7096 GB, free: 13.21 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006613/0.575, allocations: 196.7 kB / 0.7098 GB, free: 13.02 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001168/0.5751, allocations: 31.98 kB / 0.7098 GB, free: 12.98 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001406/0.5765, allocations: 0.7713 MB / 0.7106 GB, free: 12.21 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.41e-07/0.5765, allocations: 0 / 0.7106 GB, free: 12.21 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001741/0.5783, allocations: 495.6 kB / 0.711 GB, free: 11.72 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.0003224/0.5786, allocations: 136.3 kB / 0.7112 GB, free: 11.58 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007431/0.586, allocations: 2.625 MB / 0.7137 GB, free: 8.91 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 7.414e-06/0.5861, allocations: 0 / 0.7137 GB, free: 8.91 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004845/0.5909, allocations: 1.626 MB / 0.7153 GB, free: 7.246 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001716/0.5927, allocations: 128.7 kB / 0.7154 GB, free: 7.125 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005273/0.5979, allocations: 2.457 MB / 0.7178 GB, free: 4.637 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000805/0.5988, allocations: 1.136 MB / 0.7189 GB, free: 3.473 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0005019/0.5993, allocations: 124.2 kB / 0.7191 GB, free: 3.348 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003602/0.5996, allocations: 83.41 kB / 0.7191 GB, free: 3.27 MB / 0.5137 GB Notification: Performance of SimCode: time 9.42e-07/0.5997, allocations: 0 / 0.7191 GB, free: 3.27 MB / 0.5137 GB Notification: Performance of Templates: time 0.04008/0.6397, allocations: 24.73 MB / 0.7433 GB, free: 10.55 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)