Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_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.TwoAreaOld.ThirdOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001135/0.001135, allocations: 108.7 kB / 16.41 MB, free: 6.027 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.334/1.334, allocations: 222.9 MB / 240.1 MB, free: 4.566 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.001423/0.001423, allocations: 188.4 kB / 290.4 MB, free: 2.281 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5571/0.5571, allocations: 91.9 MB / 432.4 MB, free: 9.203 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001461/0.001461, allocations: 81.78 kB / 0.5734 GB, free: 33.68 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.146/0.1474, allocations: 71.28 MB / 0.643 GB, free: 3.605 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII): time 0.006975/0.1545, allocations: 6.527 MB / 0.6494 GB, free: 13.05 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.004418/0.1589, allocations: 1.954 MB / 0.6513 GB, free: 11.09 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001176/0.1601, allocations: 8 kB / 0.6513 GB, free: 11.08 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001043/0.1612, allocations: 238 kB / 0.6515 GB, free: 10.85 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002739/0.164, allocations: 0.8042 MB / 0.6523 GB, free: 10.04 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001538/0.1656, allocations: 0.6228 MB / 0.6529 GB, free: 9.426 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002262/0.1678, allocations: 1.581 MB / 0.6545 GB, free: 7.84 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006407/0.1685, allocations: 326.4 kB / 0.6548 GB, free: 7.512 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001141/0.1696, allocations: 0.6613 MB / 0.6554 GB, free: 6.848 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00121/0.1709, allocations: 0.8206 MB / 0.6562 GB, free: 6.023 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004067/0.1713, allocations: 127.9 kB / 0.6563 GB, free: 5.898 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000761/0.1721, allocations: 259.9 kB / 0.6566 GB, free: 5.645 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000415/0.1725, allocations: 326.6 kB / 0.6569 GB, free: 5.324 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009139/0.1734, allocations: 0.668 MB / 0.6576 GB, free: 4.652 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0021/0.1755, allocations: 1.662 MB / 0.6592 GB, free: 2.984 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.92e-06/0.1755, allocations: 4 kB / 0.6592 GB, free: 2.98 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1755, allocations: 0 / 0.6592 GB, free: 2.98 MB / 462.1 MB Notification: Performance of Transformations before backend: time 6.787e-05/0.1756, allocations: 0 / 0.6592 GB, free: 2.98 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 189 * Number of variables: 189 Notification: Performance of Generate backend data structure: time 0.009928/0.1856, allocations: 2.68 MB / 0.6618 GB, free: 236 kB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.846e-05/0.1856, allocations: 12.03 kB / 0.6618 GB, free: 224 kB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005314/0.1909, allocations: 0.7748 MB / 0.6626 GB, free: 15.44 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001882/0.1928, allocations: 0.8902 MB / 0.6634 GB, free: 14.5 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003255/0.1932, allocations: 256.2 kB / 0.6637 GB, free: 14.21 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002795/0.1935, allocations: 87.98 kB / 0.6638 GB, free: 14.12 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002522/0.196, allocations: 1.083 MB / 0.6648 GB, free: 13.03 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.94e-05/0.1961, allocations: 0 / 0.6648 GB, free: 13.03 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001033/0.1962, allocations: 24 kB / 0.6648 GB, free: 13 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.988e-05/0.1962, allocations: 23.98 kB / 0.6649 GB, free: 12.98 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002109/0.1983, allocations: 0.9916 MB / 0.6658 GB, free: 11.99 MB / 478.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.00726/0.2056, allocations: 3.797 MB / 0.6695 GB, free: 8.008 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007436/0.2131, allocations: 2.365 MB / 0.6719 GB, free: 5.547 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001487/0.2146, allocations: 0.6761 MB / 0.6725 GB, free: 4.867 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001213/0.2147, allocations: 16.98 kB / 0.6725 GB, free: 4.852 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001757/0.2165, allocations: 0.8215 MB / 0.6733 GB, free: 4.012 MB / 478.1 MB Notification: Performance of pre-optimization done (n=95): time 3.387e-06/0.2165, allocations: 0 / 0.6733 GB, free: 4.012 MB / 478.1 MB Notification: Performance of matching and sorting (n=95): time 0.02921/0.2457, allocations: 7.186 MB / 0.6803 GB, free: 12.76 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.507e-05/0.2458, allocations: 115.8 kB / 0.6805 GB, free: 12.62 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001797/0.2476, allocations: 1.099 MB / 0.6815 GB, free: 11.51 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002571/0.2479, allocations: 49.64 kB / 0.6816 GB, free: 11.46 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00041/0.2483, allocations: 492.8 kB / 0.682 GB, free: 10.97 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004979/0.2488, allocations: 351.1 kB / 0.6824 GB, free: 10.62 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006629/0.2495, allocations: 279.4 kB / 0.6827 GB, free: 10.34 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.362e-05/0.2496, allocations: 305.1 kB / 0.6829 GB, free: 10.04 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001619/0.2512, allocations: 0.7535 MB / 0.6837 GB, free: 9.289 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001748/0.253, allocations: 0.9304 MB / 0.6846 GB, free: 8.32 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02366/0.2767, allocations: 5.552 MB / 0.69 GB, free: 2.684 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.121e-05/0.2767, allocations: 0 / 0.69 GB, free: 2.684 MB / 494.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.01435/0.2911, allocations: 4.364 MB / 0.6943 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.241e-05/0.2912, allocations: 59.34 kB / 0.6943 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.697e-05/0.2912, allocations: 4 kB / 0.6943 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005823/0.2971, allocations: 1.584 MB / 0.6959 GB, free: 12.63 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001411/0.2985, allocations: 287.5 kB / 0.6962 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02038/0.3189, allocations: 8.508 MB / 0.7045 GB, free: 3.688 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001973/0.3209, allocations: 198.8 kB / 0.7046 GB, free: 3.492 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002819/0.3212, allocations: 55.92 kB / 0.7047 GB, free: 3.438 MB / 0.4981 GB Warning: Assuming fixed start value for the following 4 variables: order3.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 order3.delta:VARIABLE(flow=false start = order3.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 (160): * Single equations (assignments): 157 * 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 {(19,14,24.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008172/0.3221, allocations: 304.1 kB / 0.705 GB, free: 3.121 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003702/0.3225, allocations: 122.5 kB / 0.7051 GB, free: 3 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01279/0.3353, allocations: 3.869 MB / 0.7089 GB, free: 15.11 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.146e-05/0.3353, allocations: 8 kB / 0.7089 GB, free: 15.1 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.182e-05/0.3353, allocations: 8 kB / 0.7089 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.516e-05/0.3354, allocations: 3.984 kB / 0.7089 GB, free: 15.09 MB / 0.5137 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.01597/0.3514, allocations: 5.459 MB / 0.7142 GB, free: 9.512 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.45e-05/0.3514, allocations: 0 / 0.7142 GB, free: 9.512 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000647/0.3521, allocations: 95.89 kB / 0.7143 GB, free: 9.418 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005738/0.3578, allocations: 1.611 MB / 0.7159 GB, free: 7.801 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002127/0.3581, allocations: 24 kB / 0.7159 GB, free: 7.777 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02081/0.3789, allocations: 9.638 MB / 0.7253 GB, free: 13.84 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.3789, allocations: 0 / 0.7253 GB, free: 13.84 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01492/0.3939, allocations: 4.727 MB / 0.73 GB, free: 9.082 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005329/0.3945, allocations: 223.3 kB / 0.7302 GB, free: 8.844 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003955/0.3949, allocations: 23.94 kB / 0.7302 GB, free: 8.82 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001366/0.3962, allocations: 107.9 kB / 0.7303 GB, free: 8.715 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006576/0.3969, allocations: 192.7 kB / 0.7305 GB, free: 8.523 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001236/0.3971, allocations: 28 kB / 0.7305 GB, free: 8.496 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00127/0.3983, allocations: 0.7354 MB / 0.7312 GB, free: 7.754 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.563e-06/0.3984, allocations: 96 / 0.7312 GB, free: 7.754 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001706/0.4001, allocations: 475.5 kB / 0.7317 GB, free: 7.289 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 9 (order2.delta,order2.w,order3.delta,order3.w,order3.e1q,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 (63): * Single equations (assignments): 60 * 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.000347/0.4004, allocations: 136 kB / 0.7318 GB, free: 7.148 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.006506/0.4069, allocations: 2.529 MB / 0.7343 GB, free: 4.578 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.407, allocations: 0 / 0.7343 GB, free: 4.578 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004473/0.4115, allocations: 1.595 MB / 0.7358 GB, free: 2.945 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00133/0.4128, allocations: 114 kB / 0.7359 GB, free: 2.832 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004527/0.4174, allocations: 2.247 MB / 0.7381 GB, free: 0.5547 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008036/0.4182, allocations: 1.12 MB / 0.7392 GB, free: 15.41 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004334/0.4186, allocations: 87.41 kB / 0.7393 GB, free: 15.32 MB / 0.545 GB Notification: Performance of SimCode: time 7.02e-07/0.4187, allocations: 0 / 0.7393 GB, free: 15.32 MB / 0.545 GB Notification: Performance of Templates: time 0.03722/0.4559, allocations: 23.5 MB / 0.7623 GB, free: 7.805 MB / 0.5606 GB make -j1 -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.makefile (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.sim & ./OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe 2>&1)