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.0009821/0.0009826, allocations: 86.56 kB / 15.06 MB, free: 1.09 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.396/1.396, allocations: 223.2 MB / 239 MB, free: 5.469 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.001942/0.001942, allocations: 176.5 kB / 290.3 MB, free: 2.156 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5019/0.5019, allocations: 79.48 MB / 420.8 MB, free: 3.984 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003712/0.0003712, allocations: 16 kB / 0.4892 GB, free: 5.48 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4329/0.4333, allocations: 69.51 MB / 0.5571 GB, free: 37.4 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII): time 0.005506/0.4389, allocations: 5.963 MB / 0.5629 GB, free: 36.99 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.00363/0.4425, allocations: 1.903 MB / 0.5648 GB, free: 36.58 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004154/0.443, allocations: 14.16 kB / 0.5648 GB, free: 36.58 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005496/0.4435, allocations: 172.3 kB / 0.565 GB, free: 36.51 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001394/0.4449, allocations: 0.6576 MB / 0.5656 GB, free: 36.23 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009814/0.4459, allocations: 0.5128 MB / 0.5661 GB, free: 36.17 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.00112/0.4471, allocations: 1.404 MB / 0.5675 GB, free: 35.84 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003839/0.4475, allocations: 271.3 kB / 0.5677 GB, free: 35.79 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005363/0.448, allocations: 0.5554 MB / 0.5683 GB, free: 35.63 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006643/0.4487, allocations: 0.7232 MB / 0.569 GB, free: 35.44 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001126/0.4488, allocations: 61.28 kB / 0.569 GB, free: 35.44 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000361/0.4492, allocations: 185.4 kB / 0.5692 GB, free: 35.43 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002181/0.4494, allocations: 256.8 kB / 0.5695 GB, free: 35.35 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001776/0.4496, allocations: 228.2 kB / 0.5697 GB, free: 35.28 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008813/0.4505, allocations: 1.223 MB / 0.5709 GB, free: 35.07 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.4505, allocations: 0 / 0.5709 GB, free: 35.07 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.286e-06/0.4505, allocations: 0.5625 kB / 0.5709 GB, free: 35.07 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.304e-05/0.4505, allocations: 3.938 kB / 0.5709 GB, free: 35.07 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.006832/0.4573, allocations: 2.506 MB / 0.5733 GB, free: 34.13 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.124e-05/0.4574, allocations: 8.688 kB / 0.5733 GB, free: 34.13 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002287/0.4576, allocations: 127.9 kB / 0.5734 GB, free: 34.09 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004414/0.4621, allocations: 0.7864 MB / 0.5742 GB, free: 34 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001394/0.4635, allocations: 0.8482 MB / 0.575 GB, free: 33.5 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002292/0.4637, allocations: 268.5 kB / 0.5753 GB, free: 33.28 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001376/0.4638, allocations: 84.19 kB / 0.5754 GB, free: 33.25 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001863/0.4657, allocations: 1.137 MB / 0.5765 GB, free: 32.83 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.163e-05/0.4658, allocations: 0.5156 kB / 0.5765 GB, free: 32.83 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.449e-05/0.4658, allocations: 29.11 kB / 0.5765 GB, free: 32.81 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.693e-05/0.4659, allocations: 21.92 kB / 0.5765 GB, free: 32.81 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001752/0.4676, allocations: 1.047 MB / 0.5776 GB, free: 32.47 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.005279/0.4729, allocations: 3.891 MB / 0.5814 GB, free: 30.26 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006753/0.4797, allocations: 2.914 MB / 0.5842 GB, free: 29.37 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001389/0.4811, allocations: 0.7372 MB / 0.5849 GB, free: 29.09 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001093/0.4812, allocations: 15.17 kB / 0.5849 GB, free: 29.09 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001553/0.4828, allocations: 0.8701 MB / 0.5858 GB, free: 28.77 MB / 430.1 MB Notification: Performance of pre-optimization done (n=95): time 2.906e-06/0.4828, allocations: 0 / 0.5858 GB, free: 28.77 MB / 430.1 MB Notification: Performance of matching and sorting (n=95): time 0.02783/0.5106, allocations: 8.771 MB / 0.5944 GB, free: 27.19 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.323e-05/0.5107, allocations: 118.2 kB / 0.5945 GB, free: 27.06 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001862/0.5126, allocations: 1.074 MB / 0.5955 GB, free: 26.62 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001871/0.5128, allocations: 49.98 kB / 0.5956 GB, free: 26.57 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003544/0.5131, allocations: 497.6 kB / 0.596 GB, free: 26.18 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003368/0.5135, allocations: 350.2 kB / 0.5964 GB, free: 25.91 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.055e-05/0.5136, allocations: 27.12 kB / 0.5964 GB, free: 25.89 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001092/0.5137, allocations: 364.8 kB / 0.5968 GB, free: 25.56 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001599/0.5153, allocations: 0.8166 MB / 0.5975 GB, free: 25.27 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001711/0.517, allocations: 0.986 MB / 0.5985 GB, free: 24.83 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001723/0.5188, allocations: 0.9411 MB / 0.5994 GB, free: 24.38 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.023e-06/0.5188, allocations: 1 kB / 0.5994 GB, free: 24.38 MB / 430.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.0155/0.5343, allocations: 5.136 MB / 0.6044 GB, free: 23.14 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.272e-05/0.5344, allocations: 59.3 kB / 0.6045 GB, free: 23.08 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.761e-05/0.5344, allocations: 7.375 kB / 0.6045 GB, free: 23.07 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006459/0.5409, allocations: 1.912 MB / 0.6064 GB, free: 22.76 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00154/0.5424, allocations: 290 kB / 0.6067 GB, free: 22.73 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0194/0.5618, allocations: 9.066 MB / 0.6155 GB, free: 16.54 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001945/0.5638, allocations: 234.9 kB / 0.6157 GB, free: 16.3 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002602/0.5641, allocations: 59.92 kB / 0.6158 GB, free: 16.25 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 aVRTypeII.firstOrder2.y:VARIABLE(flow=false start = aVRTypeII.firstOrder2.y_start fixed = true ) "Connector of Real output signal" type: Real order3.e1q:VARIABLE(start = order3.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" 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 ($whenCondition1,$whenCondition2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {19 14} Notification: Performance of prepare postOptimizeDAE: time 0.0007695/0.5649, allocations: 298 kB / 0.6161 GB, free: 15.94 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000355/0.5652, allocations: 126.4 kB / 0.6162 GB, free: 15.82 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01095/0.5762, allocations: 4.71 MB / 0.6208 GB, free: 11.08 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.656e-06/0.5762, allocations: 8 kB / 0.6208 GB, free: 11.07 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.201e-05/0.5762, allocations: 13.08 kB / 0.6208 GB, free: 11.06 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.129e-05/0.5763, allocations: 7.984 kB / 0.6208 GB, free: 11.05 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.01271/0.589, allocations: 6.288 MB / 0.627 GB, free: 4.656 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.253e-06/0.589, allocations: 0 / 0.627 GB, free: 4.656 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004915/0.5895, allocations: 103.8 kB / 0.6271 GB, free: 4.555 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004744/0.5942, allocations: 1.885 MB / 0.6289 GB, free: 2.664 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.718e-05/0.5944, allocations: 20 kB / 0.6289 GB, free: 2.645 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01857/0.6129, allocations: 9.679 MB / 0.6384 GB, free: 8.688 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.387e-06/0.613, allocations: 0 / 0.6384 GB, free: 8.688 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01463/0.6276, allocations: 5.635 MB / 0.6439 GB, free: 3.016 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005158/0.6282, allocations: 224.5 kB / 0.6441 GB, free: 2.777 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003216/0.6285, allocations: 16 kB / 0.6441 GB, free: 2.762 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001229/0.6297, allocations: 147.9 kB / 0.6442 GB, free: 2.617 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005584/0.6303, allocations: 193.2 kB / 0.6444 GB, free: 2.426 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.921e-05/0.6304, allocations: 24 kB / 0.6445 GB, free: 2.402 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001265/0.6317, allocations: 0.7276 MB / 0.6452 GB, free: 1.668 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.6317, allocations: 4 kB / 0.6452 GB, free: 1.664 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001828/0.6335, allocations: 475.4 kB / 0.6456 GB, free: 1.199 MB / 446.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(20,23.0%) 12} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.01424/0.6478, allocations: 6.209 MB / 0.6517 GB, free: 10.95 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006378/0.6542, allocations: 2.775 MB / 0.6544 GB, free: 8.137 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.6542, allocations: 0 / 0.6544 GB, free: 8.137 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004147/0.6584, allocations: 1.805 MB / 0.6562 GB, free: 6.293 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00137/0.6598, allocations: 116.8 kB / 0.6563 GB, free: 6.184 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02575/0.6856, allocations: 11.95 MB / 0.6679 GB, free: 9.914 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007877/0.6864, allocations: 1.12 MB / 0.669 GB, free: 8.766 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0005913/0.687, allocations: 121.4 kB / 0.6691 GB, free: 8.648 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007324/0.6878, allocations: 475.3 kB / 0.6696 GB, free: 8.188 MB / 478.1 MB Notification: Performance of SimCode: time 9.91e-07/0.6878, allocations: 0 / 0.6696 GB, free: 8.188 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06461/0.7524, allocations: 31.99 MB / 0.7008 GB, free: 8.613 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002274/0.7527, allocations: 228 kB / 0.7011 GB, free: 8.375 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.656/3.409, allocations: 0 / 0.7011 GB, free: 8.375 MB / 0.4981 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/linux/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) Environment - environmentSimulation: