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/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: "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_ThirdOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_ThirdOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008021/0.0008021, allocations: 98.03 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.18/1.18, allocations: 223.3 MB / 239.4 MB, free: 5.512 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.000931/0.000931, allocations: 191.3 kB / 290.6 MB, free: 2.18 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.413/0.413, allocations: 78.55 MB / 420.3 MB, free: 4.219 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003189/0.0003189, allocations: 8 kB / 0.4888 GB, free: 5.902 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1094, allocations: 69.36 MB / 0.5565 GB, free: 0.5039 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII): time 0.1979/0.3073, allocations: 6.341 MB / 0.5627 GB, free: 35.9 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003158/0.3105, allocations: 1.98 MB / 0.5646 GB, free: 35.12 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001262/0.3118, allocations: 13.91 kB / 0.5646 GB, free: 35.12 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000726/0.3126, allocations: 189.6 kB / 0.5648 GB, free: 35.05 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001924/0.3145, allocations: 0.6978 MB / 0.5655 GB, free: 34.75 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001114/0.3156, allocations: 0.5888 MB / 0.5661 GB, free: 34.64 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001694/0.3173, allocations: 1.489 MB / 0.5675 GB, free: 34.31 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004044/0.3177, allocations: 285.9 kB / 0.5678 GB, free: 34.26 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007277/0.3185, allocations: 0.5732 MB / 0.5684 GB, free: 34.08 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008274/0.3193, allocations: 0.7397 MB / 0.5691 GB, free: 33.87 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002483/0.3196, allocations: 58.72 kB / 0.5691 GB, free: 33.87 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004867/0.3201, allocations: 188.2 kB / 0.5693 GB, free: 33.87 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002516/0.3203, allocations: 262.8 kB / 0.5696 GB, free: 33.78 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005756/0.3209, allocations: 0.6224 MB / 0.5702 GB, free: 33.5 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001362/0.3223, allocations: 1.557 MB / 0.5717 GB, free: 33.12 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.3223, allocations: 6.812 kB / 0.5717 GB, free: 33.12 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.3223, allocations: 1.219 kB / 0.5717 GB, free: 33.12 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.728e-05/0.3223, allocations: 0 / 0.5717 GB, free: 33.12 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: 189 * Number of variables: 189 Notification: Performance of Generate backend data structure: time 0.007384/0.3297, allocations: 2.491 MB / 0.5741 GB, free: 32.18 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.412e-05/0.3298, allocations: 12.62 kB / 0.5741 GB, free: 32.18 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002063/0.33, allocations: 126.8 kB / 0.5743 GB, free: 32.14 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004603/0.3346, allocations: 0.781 MB / 0.575 GB, free: 32.04 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001278/0.3359, allocations: 0.8787 MB / 0.5759 GB, free: 31.64 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002211/0.3361, allocations: 274 kB / 0.5761 GB, free: 31.44 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001683/0.3363, allocations: 85.88 kB / 0.5762 GB, free: 31.44 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002026/0.3383, allocations: 1.147 MB / 0.5773 GB, free: 31.34 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.776e-05/0.3384, allocations: 2.625 kB / 0.5773 GB, free: 31.34 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.395e-05/0.3384, allocations: 28.44 kB / 0.5774 GB, free: 31.34 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.217e-05/0.3385, allocations: 18.38 kB / 0.5774 GB, free: 31.34 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0019/0.3404, allocations: 1.051 MB / 0.5784 GB, free: 31.32 MB / 430.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.005454/0.3458, allocations: 3.904 MB / 0.5822 GB, free: 29.78 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007195/0.353, allocations: 2.905 MB / 0.5851 GB, free: 28.9 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001401/0.3545, allocations: 0.743 MB / 0.5858 GB, free: 28.62 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.927e-05/0.3545, allocations: 15.27 kB / 0.5858 GB, free: 28.61 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001504/0.3561, allocations: 0.8747 MB / 0.5867 GB, free: 28.29 MB / 430.1 MB Notification: Performance of pre-optimization done (n=95): time 3.006e-06/0.3561, allocations: 1.312 kB / 0.5867 GB, free: 28.29 MB / 430.1 MB Notification: Performance of matching and sorting (n=95): time 0.0293/0.3854, allocations: 8.799 MB / 0.5953 GB, free: 26.71 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.483e-05/0.3854, allocations: 122.1 kB / 0.5954 GB, free: 26.58 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001681/0.3871, allocations: 1.086 MB / 0.5964 GB, free: 26.13 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 9.339e-05/0.3872, allocations: 47.7 kB / 0.5965 GB, free: 26.09 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002839/0.3875, allocations: 497.4 kB / 0.597 GB, free: 25.7 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002547/0.3878, allocations: 347.8 kB / 0.5973 GB, free: 25.43 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002056/0.388, allocations: 144.1 kB / 0.5974 GB, free: 25.36 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.206e-05/0.388, allocations: 302.5 kB / 0.5977 GB, free: 25.06 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001606/0.3896, allocations: 0.8181 MB / 0.5985 GB, free: 24.77 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001678/0.3913, allocations: 0.9957 MB / 0.5995 GB, free: 24.33 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02243/0.4138, allocations: 5.99 MB / 0.6053 GB, free: 22.55 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.06e-06/0.4138, allocations: 0 / 0.6053 GB, free: 22.55 MB / 430.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.0141/0.4279, allocations: 5.196 MB / 0.6104 GB, free: 21.27 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.556e-05/0.4279, allocations: 62.08 kB / 0.6105 GB, free: 21.2 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.136e-05/0.4279, allocations: 2.75 kB / 0.6105 GB, free: 21.2 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005577/0.4335, allocations: 1.877 MB / 0.6123 GB, free: 20.23 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00105/0.4346, allocations: 280.2 kB / 0.6126 GB, free: 19.95 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01662/0.4512, allocations: 8.831 MB / 0.6212 GB, free: 10.98 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001423/0.4527, allocations: 231.5 kB / 0.6214 GB, free: 10.75 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001067/0.4528, allocations: 64.72 kB / 0.6215 GB, free: 10.69 MB / 430.1 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.0005006/0.4533, allocations: 297.8 kB / 0.6218 GB, free: 10.39 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000219/0.4535, allocations: 122.5 kB / 0.6219 GB, free: 10.27 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01212/0.4656, allocations: 4.729 MB / 0.6265 GB, free: 5.512 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.163e-06/0.4657, allocations: 8 kB / 0.6265 GB, free: 5.504 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.436e-05/0.4657, allocations: 10.2 kB / 0.6265 GB, free: 5.496 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.846e-06/0.4657, allocations: 3.984 kB / 0.6265 GB, free: 5.492 MB / 430.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.01354/0.4792, allocations: 6.305 MB / 0.6327 GB, free: 15.08 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.4792, allocations: 1 kB / 0.6327 GB, free: 15.08 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004865/0.4797, allocations: 99.83 kB / 0.6328 GB, free: 14.98 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005739/0.4855, allocations: 1.883 MB / 0.6346 GB, free: 13.09 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.606e-05/0.4856, allocations: 19.98 kB / 0.6346 GB, free: 13.07 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02027/0.5059, allocations: 9.683 MB / 0.6441 GB, free: 3.109 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.205e-06/0.5059, allocations: 0 / 0.6441 GB, free: 3.109 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01514/0.521, allocations: 5.646 MB / 0.6496 GB, free: 13.43 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003136/0.5214, allocations: 231.4 kB / 0.6498 GB, free: 13.19 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001859/0.5216, allocations: 19.94 kB / 0.6498 GB, free: 13.17 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001133/0.5227, allocations: 143.9 kB / 0.65 GB, free: 13.03 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004548/0.5232, allocations: 188.7 kB / 0.6502 GB, free: 12.84 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.477e-05/0.5232, allocations: 33.3 kB / 0.6502 GB, free: 12.81 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001006/0.5243, allocations: 0.7315 MB / 0.6509 GB, free: 12.07 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5243, allocations: 0 / 0.6509 GB, free: 12.07 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001436/0.5257, allocations: 471.5 kB / 0.6514 GB, free: 11.61 MB / 462.1 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.01515/0.5409, allocations: 6.218 MB / 0.6574 GB, free: 5.344 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006347/0.5472, allocations: 2.802 MB / 0.6602 GB, free: 2.508 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.5472, allocations: 0 / 0.6602 GB, free: 2.508 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004336/0.5516, allocations: 1.801 MB / 0.6619 GB, free: 0.6641 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008088/0.5524, allocations: 120.9 kB / 0.662 GB, free: 0.5508 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03934/0.5918, allocations: 18.95 MB / 0.6805 GB, free: 13.2 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005703/0.5923, allocations: 1.124 MB / 0.6816 GB, free: 12.04 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.000379/0.5927, allocations: 117.8 kB / 0.6817 GB, free: 11.93 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005554/0.5933, allocations: 479.2 kB / 0.6822 GB, free: 11.46 MB / 494.1 MB Notification: Performance of SimCode: time 2.214e-06/0.5933, allocations: 0 / 0.6822 GB, free: 11.46 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04962/0.6429, allocations: 31.12 MB / 0.7126 GB, free: 12.76 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002124/0.6432, allocations: 238.9 kB / 0.7128 GB, free: 12.5 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.305/2.948, allocations: 64 / 0.7128 GB, free: 12.5 MB / 0.5137 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_ThirdOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_ThirdOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe 2>&1)