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: "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_SixthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_SixthOrder_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.0008563/0.0008564, allocations: 98.19 kB / 15.36 MB, free: 0.7305 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.135/1.135, allocations: 223.2 MB / 239.3 MB, free: 5.508 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.0009982/0.0009982, allocations: 176.5 kB / 290.6 MB, free: 2.176 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.3907/0.3907, allocations: 78.55 MB / 420.3 MB, free: 4.195 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003235/0.0003236, allocations: 12.23 kB / 0.4888 GB, free: 5.898 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1117, allocations: 69.36 MB / 0.5565 GB, free: 0.5 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII): time 0.1996/0.3114, allocations: 6.533 MB / 0.5629 GB, free: 35.97 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.002824/0.3142, allocations: 2.043 MB / 0.5649 GB, free: 35.17 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003447/0.3146, allocations: 11.25 kB / 0.5649 GB, free: 35.17 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004921/0.3151, allocations: 191.8 kB / 0.5651 GB, free: 35.1 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001325/0.3164, allocations: 0.722 MB / 0.5658 GB, free: 34.79 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008806/0.3173, allocations: 0.5982 MB / 0.5663 GB, free: 34.69 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009673/0.3183, allocations: 1.578 MB / 0.5679 GB, free: 34.35 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003289/0.3186, allocations: 286 kB / 0.5682 GB, free: 34.3 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004545/0.3191, allocations: 0.6024 MB / 0.5687 GB, free: 34.12 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006126/0.3197, allocations: 0.7858 MB / 0.5695 GB, free: 33.9 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001253/0.3199, allocations: 67.81 kB / 0.5696 GB, free: 33.9 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003235/0.3202, allocations: 196.3 kB / 0.5698 GB, free: 33.89 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001891/0.3204, allocations: 276.1 kB / 0.57 GB, free: 33.81 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003588/0.3207, allocations: 0.6481 MB / 0.5707 GB, free: 33.52 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000924/0.3217, allocations: 1.616 MB / 0.5722 GB, free: 33.14 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.865e-06/0.3217, allocations: 1.094 kB / 0.5722 GB, free: 33.14 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3217, allocations: 0 / 0.5722 GB, free: 33.14 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.107e-05/0.3217, allocations: 2.875 kB / 0.5722 GB, free: 33.14 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: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.00745/0.3292, allocations: 2.59 MB / 0.5748 GB, free: 32.2 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.704e-05/0.3292, allocations: 12.84 kB / 0.5748 GB, free: 32.19 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001633/0.3294, allocations: 125.7 kB / 0.5749 GB, free: 32.15 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004482/0.3339, allocations: 0.7846 MB / 0.5757 GB, free: 32.05 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001164/0.335, allocations: 0.9254 MB / 0.5766 GB, free: 31.63 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002259/0.3353, allocations: 274.3 kB / 0.5768 GB, free: 31.44 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001522/0.3354, allocations: 83.09 kB / 0.5769 GB, free: 31.43 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001865/0.3373, allocations: 1.176 MB / 0.5781 GB, free: 31.34 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.995e-05/0.3373, allocations: 1.875 kB / 0.5781 GB, free: 31.34 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001045/0.3375, allocations: 32.19 kB / 0.5781 GB, free: 31.34 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.238e-05/0.3375, allocations: 17.56 kB / 0.5781 GB, free: 31.34 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00189/0.3394, allocations: 1.064 MB / 0.5792 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.005269/0.3446, allocations: 4.011 MB / 0.5831 GB, free: 29.58 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007425/0.3521, allocations: 2.949 MB / 0.586 GB, free: 28.68 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001394/0.3535, allocations: 0.7545 MB / 0.5867 GB, free: 28.39 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.812e-05/0.3536, allocations: 23.61 kB / 0.5867 GB, free: 28.38 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001535/0.3551, allocations: 0.897 MB / 0.5876 GB, free: 28.05 MB / 430.1 MB Notification: Performance of pre-optimization done (n=98): time 2.845e-06/0.3551, allocations: 0 / 0.5876 GB, free: 28.05 MB / 430.1 MB Notification: Performance of matching and sorting (n=98): time 0.03016/0.3853, allocations: 8.643 MB / 0.596 GB, free: 26.46 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.696e-05/0.3854, allocations: 117.7 kB / 0.5961 GB, free: 26.34 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00163/0.387, allocations: 1.139 MB / 0.5973 GB, free: 25.87 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002246/0.3873, allocations: 46.38 kB / 0.5973 GB, free: 25.82 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002758/0.3876, allocations: 0.4965 MB / 0.5978 GB, free: 25.42 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000301/0.3879, allocations: 367.9 kB / 0.5981 GB, free: 25.14 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000193/0.3881, allocations: 152.5 kB / 0.5983 GB, free: 25.06 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.427e-05/0.3881, allocations: 301.7 kB / 0.5986 GB, free: 24.77 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001644/0.3898, allocations: 0.8619 MB / 0.5994 GB, free: 24.46 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001689/0.3915, allocations: 1.033 MB / 0.6004 GB, free: 24 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02566/0.4171, allocations: 6.37 MB / 0.6066 GB, free: 22.15 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.279e-05/0.4172, allocations: 1.25 kB / 0.6066 GB, free: 22.15 MB / 430.1 MB Notification: Performance of matching and sorting (n=204) (initialization): time 0.01615/0.4333, allocations: 5.35 MB / 0.6119 GB, free: 20.59 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.295e-05/0.4334, allocations: 62.11 kB / 0.6119 GB, free: 20.53 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.536e-05/0.4334, allocations: 3.75 kB / 0.6119 GB, free: 20.53 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006052/0.4395, allocations: 1.947 MB / 0.6138 GB, free: 18.68 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001377/0.4409, allocations: 300.3 kB / 0.6141 GB, free: 18.38 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01825/0.4592, allocations: 8.937 MB / 0.6228 GB, free: 9.301 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001931/0.4611, allocations: 243.3 kB / 0.6231 GB, free: 9.062 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002221/0.4613, allocations: 63.97 kB / 0.6231 GB, free: 9 MB / 430.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.0006514/0.462, allocations: 307 kB / 0.6234 GB, free: 8.691 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003031/0.4623, allocations: 135 kB / 0.6236 GB, free: 8.559 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01271/0.475, allocations: 4.764 MB / 0.6282 GB, free: 3.77 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.925e-06/0.475, allocations: 8 kB / 0.6282 GB, free: 3.762 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.867e-05/0.4751, allocations: 8 kB / 0.6282 GB, free: 3.754 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.066e-05/0.4751, allocations: 3.984 kB / 0.6282 GB, free: 3.75 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.01475/0.4898, allocations: 6.408 MB / 0.6345 GB, free: 13.23 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/0.4899, allocations: 0 / 0.6345 GB, free: 13.23 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006169/0.4905, allocations: 103.9 kB / 0.6346 GB, free: 13.13 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005779/0.4963, allocations: 1.879 MB / 0.6364 GB, free: 11.25 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001008/0.4964, allocations: 23.98 kB / 0.6364 GB, free: 11.22 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01965/0.516, allocations: 9.686 MB / 0.6459 GB, free: 1.266 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.447e-06/0.5161, allocations: 4 kB / 0.6459 GB, free: 1.262 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01597/0.532, allocations: 5.717 MB / 0.6515 GB, free: 11.51 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004275/0.5325, allocations: 232.1 kB / 0.6517 GB, free: 11.26 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002695/0.5328, allocations: 21.08 kB / 0.6517 GB, free: 11.24 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001365/0.5342, allocations: 143.9 kB / 0.6519 GB, free: 11.1 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005268/0.5347, allocations: 196.7 kB / 0.6521 GB, free: 10.91 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.304e-05/0.5348, allocations: 24 kB / 0.6521 GB, free: 10.89 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001201/0.536, allocations: 0.7673 MB / 0.6528 GB, free: 10.11 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.472e-06/0.536, allocations: 0 / 0.6528 GB, free: 10.11 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001426/0.5374, allocations: 495.5 kB / 0.6533 GB, free: 9.629 MB / 462.1 MB 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.01565/0.5531, allocations: 6.305 MB / 0.6595 GB, free: 3.273 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00681/0.5599, allocations: 2.904 MB / 0.6623 GB, free: 336 kB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.5599, allocations: 1.688 kB / 0.6623 GB, free: 336 kB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004381/0.5643, allocations: 1.838 MB / 0.6641 GB, free: 14.46 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000933/0.5653, allocations: 115.9 kB / 0.6642 GB, free: 14.35 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04266/0.6079, allocations: 19.82 MB / 0.6835 GB, free: 10.14 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005949/0.6086, allocations: 1.137 MB / 0.6847 GB, free: 8.977 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0004174/0.609, allocations: 119.6 kB / 0.6848 GB, free: 8.859 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005937/0.6096, allocations: 483.3 kB / 0.6852 GB, free: 8.391 MB / 494.1 MB Notification: Performance of SimCode: time 1.583e-06/0.6096, allocations: 4 kB / 0.6852 GB, free: 8.387 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04815/0.6578, allocations: 32.38 MB / 0.7169 GB, free: 8.426 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001982/0.658, allocations: 240 kB / 0.7171 GB, free: 8.168 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.308/2.966, allocations: 448 / 0.7171 GB, free: 8.168 MB / 0.5137 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_SixthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_SixthOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.pipe 2>&1)