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: "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_ThirdOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_dev_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.0009766/0.0009767, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.362/1.362, allocations: 223.3 MB / 239.4 MB, free: 5.52 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.001112/0.001111, allocations: 176.5 kB / 290.6 MB, free: 2.188 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5354/0.5354, allocations: 91.92 MB / 433.6 MB, free: 10.32 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003797/0.0003796, allocations: 8 kB / 0.5049 GB, free: 7.199 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3897/0.3901, allocations: 72.46 MB / 0.5756 GB, free: 36.32 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII): time 0.004775/0.395, allocations: 6.367 MB / 0.5819 GB, free: 32.32 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003728/0.3987, allocations: 1.999 MB / 0.5838 GB, free: 30.9 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008093/0.3996, allocations: 9.656 kB / 0.5838 GB, free: 30.9 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006512/0.4002, allocations: 182 kB / 0.584 GB, free: 30.83 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001853/0.4021, allocations: 0.6993 MB / 0.5847 GB, free: 30.38 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001176/0.4033, allocations: 0.5883 MB / 0.5852 GB, free: 30.07 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.00145/0.4048, allocations: 1.487 MB / 0.5867 GB, free: 29.36 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004085/0.4052, allocations: 294.3 kB / 0.587 GB, free: 29.23 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007777/0.406, allocations: 0.565 MB / 0.5875 GB, free: 28.98 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006639/0.4066, allocations: 0.7424 MB / 0.5883 GB, free: 28.65 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001153/0.4068, allocations: 58.34 kB / 0.5883 GB, free: 28.65 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004475/0.4072, allocations: 193 kB / 0.5885 GB, free: 28.61 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001988/0.4074, allocations: 258.8 kB / 0.5887 GB, free: 28.46 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004379/0.4079, allocations: 0.6218 MB / 0.5893 GB, free: 28.04 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001196/0.4091, allocations: 1.554 MB / 0.5909 GB, free: 27.46 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.4091, allocations: 4 kB / 0.5909 GB, free: 27.46 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.4091, allocations: 0 / 0.5909 GB, free: 27.46 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.387e-05/0.4091, allocations: 0 / 0.5909 GB, free: 27.46 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.008338/0.4175, allocations: 2.497 MB / 0.5933 GB, free: 26.33 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.706e-05/0.4175, allocations: 9.312 kB / 0.5933 GB, free: 26.33 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002585/0.4178, allocations: 129.6 kB / 0.5934 GB, free: 26.24 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005155/0.4229, allocations: 0.781 MB / 0.5942 GB, free: 26.08 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001643/0.4246, allocations: 0.8843 MB / 0.5951 GB, free: 25.49 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002731/0.4249, allocations: 270.2 kB / 0.5953 GB, free: 25.26 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001793/0.4251, allocations: 89.98 kB / 0.5954 GB, free: 25.23 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002287/0.4274, allocations: 1.148 MB / 0.5965 GB, free: 24.81 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.984e-05/0.4274, allocations: 0 / 0.5965 GB, free: 24.81 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.516e-05/0.4275, allocations: 30.19 kB / 0.5966 GB, free: 24.79 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.444e-05/0.4276, allocations: 21.88 kB / 0.5966 GB, free: 24.78 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002147/0.4297, allocations: 1.039 MB / 0.5976 GB, free: 24.45 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.006982/0.4367, allocations: 3.909 MB / 0.6014 GB, free: 22.23 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008795/0.4455, allocations: 2.906 MB / 0.6043 GB, free: 21.34 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00198/0.4476, allocations: 0.7404 MB / 0.605 GB, free: 21.06 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001103/0.4477, allocations: 17.27 kB / 0.605 GB, free: 21.06 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002107/0.4498, allocations: 0.8694 MB / 0.6058 GB, free: 20.74 MB / 430.1 MB Notification: Performance of pre-optimization done (n=95): time 3.777e-06/0.4498, allocations: 0 / 0.6058 GB, free: 20.74 MB / 430.1 MB Notification: Performance of matching and sorting (n=95): time 0.03514/0.485, allocations: 8.802 MB / 0.6144 GB, free: 19.16 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.749e-05/0.4851, allocations: 122.2 kB / 0.6146 GB, free: 19.02 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001889/0.487, allocations: 1.09 MB / 0.6156 GB, free: 18.57 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002795/0.4873, allocations: 43.06 kB / 0.6157 GB, free: 18.53 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003286/0.4876, allocations: 498.6 kB / 0.6161 GB, free: 18.14 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003551/0.488, allocations: 352.3 kB / 0.6165 GB, free: 17.87 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000208/0.4882, allocations: 143.3 kB / 0.6166 GB, free: 17.8 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.763e-05/0.4882, allocations: 307.1 kB / 0.6169 GB, free: 17.5 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00168/0.4899, allocations: 0.8183 MB / 0.6177 GB, free: 17.11 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001755/0.4917, allocations: 0.9893 MB / 0.6187 GB, free: 16.56 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02332/0.515, allocations: 5.998 MB / 0.6245 GB, free: 10.91 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.235e-05/0.5151, allocations: 0 / 0.6245 GB, free: 10.91 MB / 430.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.01374/0.5288, allocations: 5.192 MB / 0.6296 GB, free: 5.684 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.018e-05/0.5289, allocations: 63.34 kB / 0.6297 GB, free: 5.609 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.693e-05/0.529, allocations: 4 kB / 0.6297 GB, free: 5.605 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005815/0.5348, allocations: 1.873 MB / 0.6315 GB, free: 3.73 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001408/0.5362, allocations: 275.6 kB / 0.6317 GB, free: 3.461 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02001/0.5562, allocations: 8.835 MB / 0.6404 GB, free: 10.48 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00218/0.5585, allocations: 234.7 kB / 0.6406 GB, free: 10.25 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001317/0.5586, allocations: 55.97 kB / 0.6407 GB, free: 10.19 MB / 446.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.0006925/0.5593, allocations: 302.2 kB / 0.6409 GB, free: 9.883 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002274/0.5596, allocations: 122.5 kB / 0.6411 GB, free: 9.762 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0145/0.5741, allocations: 4.72 MB / 0.6457 GB, free: 5.012 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-05/0.5741, allocations: 12 kB / 0.6457 GB, free: 5 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.597e-05/0.5742, allocations: 4 kB / 0.6457 GB, free: 4.996 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.323e-05/0.5742, allocations: 11.97 kB / 0.6457 GB, free: 4.984 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 postOpt removeSimpleEquations (simulation): time 0.01684/0.5911, allocations: 6.301 MB / 0.6518 GB, free: 14.57 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-05/0.5911, allocations: 4 kB / 0.6519 GB, free: 14.57 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006661/0.5918, allocations: 95.84 kB / 0.6519 GB, free: 14.47 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006342/0.5981, allocations: 1.888 MB / 0.6538 GB, free: 12.58 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002273/0.5984, allocations: 23.98 kB / 0.6538 GB, free: 12.55 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02115/0.6196, allocations: 9.691 MB / 0.6633 GB, free: 2.582 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.6196, allocations: 4 kB / 0.6633 GB, free: 2.578 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01672/0.6364, allocations: 5.639 MB / 0.6688 GB, free: 12.91 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005751/0.637, allocations: 223.3 kB / 0.669 GB, free: 12.67 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001987/0.6372, allocations: 24 kB / 0.669 GB, free: 12.64 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001263/0.6385, allocations: 143.9 kB / 0.6692 GB, free: 12.5 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006145/0.6391, allocations: 184.7 kB / 0.6693 GB, free: 12.32 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.428e-05/0.6392, allocations: 27.98 kB / 0.6694 GB, free: 12.29 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001086/0.6403, allocations: 0.7315 MB / 0.6701 GB, free: 11.55 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.6403, allocations: 4 kB / 0.6701 GB, free: 11.55 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001531/0.6418, allocations: 475.5 kB / 0.6705 GB, free: 11.09 MB / 478.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.01709/0.6589, allocations: 6.219 MB / 0.6766 GB, free: 4.82 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007219/0.6662, allocations: 2.806 MB / 0.6793 GB, free: 1.969 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.74e-06/0.6662, allocations: 384 / 0.6793 GB, free: 1.969 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004955/0.6712, allocations: 1.807 MB / 0.6811 GB, free: 128 kB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001221/0.6725, allocations: 112.6 kB / 0.6812 GB, free: 16 kB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04439/0.7169, allocations: 18.97 MB / 0.6997 GB, free: 12.6 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006821/0.7176, allocations: 1.132 MB / 0.7008 GB, free: 11.44 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0006213/0.7182, allocations: 116.1 kB / 0.701 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000613/0.7188, allocations: 471.3 kB / 0.7014 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of SimCode: time 5.21e-07/0.7189, allocations: 0 / 0.7014 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.665/3.384, allocations: 31.15 MB / 0.7318 GB, free: 11.96 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003236/3.385, allocations: 235.2 kB / 0.732 GB, free: 11.71 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.924/6.309, allocations: 0 / 0.732 GB, free: 11.71 MB / 0.5294 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_ThirdOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_ThirdOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe 2>&1)