Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.conf.json 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/Modelica 4.0.0+maint.om/package.mo", uses=false) 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/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001296/0.001296, allocations: 182.9 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.191/1.191, allocations: 222.9 MB / 239.7 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009258/0.0009259, allocations: 104.3 kB / 289.9 MB, free: 10.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.3967/0.3967, allocations: 78.5 MB / 418.5 MB, free: 8.496 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001147/0.001147, allocations: 67.89 kB / 497.5 MB, free: 10.26 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2494/0.2506, allocations: 68.16 MB / 0.5524 GB, free: 19.87 MB / 378.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII): time 0.004888/0.2555, allocations: 6.809 MB / 0.5591 GB, free: 13.03 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002821/0.2584, allocations: 1.994 MB / 0.561 GB, free: 11.03 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003867/0.2588, allocations: 12 kB / 0.561 GB, free: 11.02 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004767/0.2593, allocations: 190.8 kB / 0.5612 GB, free: 10.83 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001255/0.2605, allocations: 0.7091 MB / 0.5619 GB, free: 10.12 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009063/0.2614, allocations: 0.5995 MB / 0.5625 GB, free: 9.531 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008643/0.2623, allocations: 1.502 MB / 0.5639 GB, free: 8.023 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003074/0.2626, allocations: 301.2 kB / 0.5642 GB, free: 7.719 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000422/0.2631, allocations: 0.5949 MB / 0.5648 GB, free: 7.121 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005296/0.2636, allocations: 0.7737 MB / 0.5656 GB, free: 6.344 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001176/0.2637, allocations: 72 kB / 0.5656 GB, free: 6.273 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003337/0.2641, allocations: 207.8 kB / 0.5658 GB, free: 6.07 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001718/0.2642, allocations: 278.7 kB / 0.5661 GB, free: 5.797 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003385/0.2646, allocations: 0.621 MB / 0.5667 GB, free: 5.172 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008702/0.2655, allocations: 1.594 MB / 0.5683 GB, free: 3.574 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.2655, allocations: 0 / 0.5683 GB, free: 3.574 MB / 378.7 MB Notification: Performance of FrontEnd: time 8.12e-07/0.2655, allocations: 4 kB / 0.5683 GB, free: 3.57 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.014e-05/0.2655, allocations: 0 / 0.5683 GB, free: 3.57 MB / 378.7 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.007426/0.2729, allocations: 2.684 MB / 0.5709 GB, free: 0.8203 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.407e-05/0.273, allocations: 12.03 kB / 0.5709 GB, free: 0.8086 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004327/0.2773, allocations: 0.7787 MB / 0.5717 GB, free: 28 kB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001341/0.2787, allocations: 0.8824 MB / 0.5725 GB, free: 15.09 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002433/0.2789, allocations: 260.2 kB / 0.5728 GB, free: 14.8 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001386/0.2791, allocations: 88 kB / 0.5729 GB, free: 14.71 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001928/0.281, allocations: 1.086 MB / 0.5739 GB, free: 13.61 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.557e-05/0.281, allocations: 0 / 0.5739 GB, free: 13.61 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.068e-05/0.2811, allocations: 24 kB / 0.5739 GB, free: 13.59 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.461e-05/0.2811, allocations: 20 kB / 0.574 GB, free: 13.57 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001916/0.2831, allocations: 0.9993 MB / 0.5749 GB, free: 12.57 MB / 394.7 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.005818/0.2889, allocations: 3.808 MB / 0.5787 GB, free: 8.582 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007254/0.2962, allocations: 2.364 MB / 0.581 GB, free: 6.125 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001464/0.2976, allocations: 0.6776 MB / 0.5816 GB, free: 5.441 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001048/0.2978, allocations: 12.98 kB / 0.5816 GB, free: 5.43 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001568/0.2993, allocations: 0.8176 MB / 0.5824 GB, free: 4.594 MB / 394.7 MB Notification: Performance of pre-optimization done (n=95): time 3.677e-06/0.2994, allocations: 4 kB / 0.5824 GB, free: 4.59 MB / 394.7 MB Notification: Performance of matching and sorting (n=95): time 0.02829/0.3277, allocations: 7.186 MB / 0.5895 GB, free: 13.34 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.612e-05/0.3278, allocations: 123.8 kB / 0.5896 GB, free: 13.19 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001472/0.3292, allocations: 1.087 MB / 0.5906 GB, free: 12.09 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001343/0.3294, allocations: 45.7 kB / 0.5907 GB, free: 12.04 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003182/0.3297, allocations: 496.8 kB / 0.5912 GB, free: 11.55 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003041/0.33, allocations: 359 kB / 0.5915 GB, free: 11.19 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000451/0.3305, allocations: 283.3 kB / 0.5918 GB, free: 10.91 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.545e-05/0.3306, allocations: 309.1 kB / 0.5921 GB, free: 10.61 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00149/0.3321, allocations: 0.7613 MB / 0.5928 GB, free: 9.844 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001591/0.3337, allocations: 0.9186 MB / 0.5937 GB, free: 8.883 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02235/0.356, allocations: 5.557 MB / 0.5991 GB, free: 3.242 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.295e-06/0.3561, allocations: 0 / 0.5991 GB, free: 3.242 MB / 410.7 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.01303/0.3691, allocations: 4.364 MB / 0.6034 GB, free: 14.85 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.659e-05/0.3692, allocations: 63.34 kB / 0.6034 GB, free: 14.77 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.56e-05/0.3692, allocations: 8 kB / 0.6035 GB, free: 14.77 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005593/0.3748, allocations: 1.584 MB / 0.605 GB, free: 13.18 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001303/0.3761, allocations: 275.6 kB / 0.6053 GB, free: 12.91 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01837/0.3945, allocations: 7.843 MB / 0.6129 GB, free: 4.922 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00181/0.3964, allocations: 198.7 kB / 0.6131 GB, free: 4.727 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002195/0.3966, allocations: 59.97 kB / 0.6132 GB, free: 4.668 MB / 426.7 MB 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.0006793/0.3973, allocations: 299.4 kB / 0.6135 GB, free: 4.363 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002846/0.3976, allocations: 126.4 kB / 0.6136 GB, free: 4.238 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01297/0.4106, allocations: 3.869 MB / 0.6174 GB, free: 344 kB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.828e-05/0.4106, allocations: 8 kB / 0.6174 GB, free: 336 kB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.638e-05/0.4107, allocations: 8 kB / 0.6174 GB, free: 328 kB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.267e-05/0.4107, allocations: 3.984 kB / 0.6174 GB, free: 324 kB / 426.7 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.01505/0.4257, allocations: 5.45 MB / 0.6227 GB, free: 10.76 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.093e-05/0.4258, allocations: 0 / 0.6227 GB, free: 10.76 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000612/0.4264, allocations: 99.83 kB / 0.6228 GB, free: 10.66 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005622/0.4321, allocations: 1.614 MB / 0.6244 GB, free: 9.039 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001701/0.4323, allocations: 16 kB / 0.6244 GB, free: 9.023 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0188/0.4511, allocations: 8.791 MB / 0.633 GB, free: 15.95 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.4511, allocations: 0 / 0.633 GB, free: 15.95 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.09102/0.5421, allocations: 33.02 MB / 0.6652 GB, free: 14.41 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003251/0.5425, allocations: 223.3 kB / 0.6654 GB, free: 14.17 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000269/0.5428, allocations: 24 kB / 0.6654 GB, free: 14.15 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001228/0.544, allocations: 107.8 kB / 0.6655 GB, free: 14.04 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006203/0.5447, allocations: 188.7 kB / 0.6657 GB, free: 13.86 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001073/0.5448, allocations: 28.17 kB / 0.6658 GB, free: 13.83 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001109/0.5459, allocations: 0.7354 MB / 0.6665 GB, free: 13.09 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.5459, allocations: 7.875 kB / 0.6665 GB, free: 13.08 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001938/0.5478, allocations: 0.6519 MB / 0.6671 GB, free: 12.43 MB / 490.7 MB 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.0002985/0.5482, allocations: 135.2 kB / 0.6672 GB, free: 12.29 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.006225/0.5544, allocations: 2.517 MB / 0.6697 GB, free: 9.727 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.5544, allocations: 0 / 0.6697 GB, free: 9.727 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004271/0.5587, allocations: 1.6 MB / 0.6713 GB, free: 8.09 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001043/0.5597, allocations: 112 kB / 0.6714 GB, free: 7.984 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007874/0.5676, allocations: 4.068 MB / 0.6753 GB, free: 3.844 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007763/0.5684, allocations: 1.16 MB / 0.6765 GB, free: 2.656 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.000566/0.569, allocations: 124 kB / 0.6766 GB, free: 2.531 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003679/0.5694, allocations: 79.42 kB / 0.6767 GB, free: 2.453 MB / 490.7 MB Notification: Performance of SimCode: time 6.11e-07/0.5694, allocations: 0 / 0.6767 GB, free: 2.453 MB / 490.7 MB Notification: Performance of Templates: time 0.2413/0.8107, allocations: 31.78 MB / 0.7077 GB, free: 98.76 MB / 490.7 MB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.makefile (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.sim & ./OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe 2>&1)