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.001447/0.001447, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.311/1.311, allocations: 222.9 MB / 238.9 MB, free: 4.758 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.001488/0.001487, allocations: 184.4 kB / 289.1 MB, free: 2.504 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5744/0.5744, allocations: 91.9 MB / 431.2 MB, free: 9.445 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001448/0.001448, allocations: 80.2 kB / 0.5013 GB, free: 8.082 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4132/0.4147, allocations: 71.26 MB / 0.5709 GB, free: 36.54 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII): time 0.005881/0.4206, allocations: 6.835 MB / 0.5776 GB, free: 32.59 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003669/0.4243, allocations: 2.007 MB / 0.5795 GB, free: 31.24 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007258/0.4251, allocations: 11.69 kB / 0.5795 GB, free: 31.24 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006682/0.4258, allocations: 183.4 kB / 0.5797 GB, free: 31.16 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001589/0.4274, allocations: 0.7058 MB / 0.5804 GB, free: 30.71 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001036/0.4285, allocations: 0.5995 MB / 0.581 GB, free: 30.39 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.00111/0.4296, allocations: 1.483 MB / 0.5824 GB, free: 29.69 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003694/0.43, allocations: 292.4 kB / 0.5827 GB, free: 29.55 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005518/0.4305, allocations: 0.5959 MB / 0.5833 GB, free: 29.28 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006167/0.4311, allocations: 0.7822 MB / 0.5841 GB, free: 28.93 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001363/0.4313, allocations: 70.28 kB / 0.5841 GB, free: 28.93 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004144/0.4317, allocations: 201.1 kB / 0.5843 GB, free: 28.89 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002115/0.4319, allocations: 279.3 kB / 0.5846 GB, free: 28.72 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004131/0.4324, allocations: 0.6271 MB / 0.5852 GB, free: 28.31 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001096/0.4335, allocations: 1.587 MB / 0.5868 GB, free: 27.61 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.4335, allocations: 0 / 0.5868 GB, free: 27.61 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.4335, allocations: 0 / 0.5868 GB, free: 27.61 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.421e-05/0.4335, allocations: 1.219 kB / 0.5868 GB, free: 27.61 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.008827/0.4423, allocations: 2.691 MB / 0.5894 GB, free: 26.34 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.718e-05/0.4424, allocations: 6.625 kB / 0.5894 GB, free: 26.34 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001451/0.4425, allocations: 132.9 kB / 0.5895 GB, free: 26.25 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004993/0.4475, allocations: 0.7739 MB / 0.5903 GB, free: 26.09 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001456/0.449, allocations: 0.8847 MB / 0.5911 GB, free: 25.49 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000252/0.4493, allocations: 255.8 kB / 0.5914 GB, free: 25.27 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001549/0.4494, allocations: 83.34 kB / 0.5915 GB, free: 25.24 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002093/0.4515, allocations: 1.087 MB / 0.5925 GB, free: 24.82 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.227e-05/0.4516, allocations: 0 / 0.5925 GB, free: 24.82 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.827e-05/0.4517, allocations: 37.44 kB / 0.5926 GB, free: 24.8 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.516e-05/0.4517, allocations: 18.38 kB / 0.5926 GB, free: 24.8 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002102/0.4538, allocations: 0.981 MB / 0.5935 GB, free: 24.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.006812/0.4606, allocations: 3.824 MB / 0.5973 GB, free: 22.25 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007624/0.4683, allocations: 2.362 MB / 0.5996 GB, free: 21.43 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001538/0.4699, allocations: 0.6726 MB / 0.6002 GB, free: 21.17 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001074/0.47, allocations: 25.05 kB / 0.6003 GB, free: 21.16 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00165/0.4716, allocations: 0.811 MB / 0.6011 GB, free: 20.84 MB / 430.1 MB Notification: Performance of pre-optimization done (n=95): time 2.885e-06/0.4717, allocations: 0 / 0.6011 GB, free: 20.84 MB / 430.1 MB Notification: Performance of matching and sorting (n=95): time 0.0305/0.5022, allocations: 7.193 MB / 0.6081 GB, free: 19.45 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.552e-05/0.5023, allocations: 118.7 kB / 0.6082 GB, free: 19.32 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002004/0.5043, allocations: 1.091 MB / 0.6093 GB, free: 18.87 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002729/0.5046, allocations: 42.17 kB / 0.6093 GB, free: 18.83 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003567/0.5049, allocations: 0.4906 MB / 0.6098 GB, free: 18.43 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003638/0.5053, allocations: 351.2 kB / 0.6101 GB, free: 18.16 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005541/0.5059, allocations: 288 kB / 0.6104 GB, free: 18.03 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.878e-05/0.5059, allocations: 301.6 kB / 0.6107 GB, free: 17.73 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001644/0.5076, allocations: 0.7555 MB / 0.6114 GB, free: 17.45 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001716/0.5093, allocations: 0.9257 MB / 0.6123 GB, free: 17.02 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02301/0.5323, allocations: 5.559 MB / 0.6177 GB, free: 14.26 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-05/0.5324, allocations: 1.219 kB / 0.6177 GB, free: 14.26 MB / 430.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.01216/0.5446, allocations: 4.359 MB / 0.622 GB, free: 9.906 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.143e-05/0.5447, allocations: 59.41 kB / 0.6221 GB, free: 9.836 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.527e-05/0.5447, allocations: 4 kB / 0.6221 GB, free: 9.832 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005224/0.5499, allocations: 1.584 MB / 0.6236 GB, free: 8.246 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001563/0.5515, allocations: 283.5 kB / 0.6239 GB, free: 7.969 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01678/0.5683, allocations: 7.853 MB / 0.6315 GB, free: 15.97 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002113/0.5705, allocations: 198.7 kB / 0.6317 GB, free: 15.77 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001452/0.5706, allocations: 59.97 kB / 0.6318 GB, free: 15.71 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.0006782/0.5713, allocations: 295.5 kB / 0.6321 GB, free: 15.41 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002514/0.5716, allocations: 126.4 kB / 0.6322 GB, free: 15.29 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01277/0.5843, allocations: 3.877 MB / 0.636 GB, free: 11.38 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.91e-05/0.5844, allocations: 8 kB / 0.636 GB, free: 11.37 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.561e-05/0.5844, allocations: 8 kB / 0.636 GB, free: 11.36 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.498e-05/0.5845, allocations: 7.984 kB / 0.636 GB, free: 11.36 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.01648/0.601, allocations: 5.45 MB / 0.6413 GB, free: 5.789 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.444e-05/0.601, allocations: 0 / 0.6413 GB, free: 5.789 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007511/0.6018, allocations: 99.83 kB / 0.6414 GB, free: 5.691 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005897/0.6077, allocations: 1.611 MB / 0.643 GB, free: 4.074 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002228/0.608, allocations: 20 kB / 0.643 GB, free: 4.055 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02019/0.6282, allocations: 8.796 MB / 0.6516 GB, free: 10.98 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.6282, allocations: 0 / 0.6516 GB, free: 10.98 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01516/0.6434, allocations: 4.717 MB / 0.6562 GB, free: 6.227 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006987/0.6441, allocations: 223.3 kB / 0.6564 GB, free: 5.988 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006048/0.6448, allocations: 16 kB / 0.6564 GB, free: 5.973 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00172/0.6465, allocations: 107.9 kB / 0.6565 GB, free: 5.867 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008634/0.6474, allocations: 200.7 kB / 0.6567 GB, free: 5.668 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001942/0.6476, allocations: 20 kB / 0.6568 GB, free: 5.648 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001601/0.6492, allocations: 0.7393 MB / 0.6575 GB, free: 4.902 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.6492, allocations: 0 / 0.6575 GB, free: 4.902 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002274/0.6515, allocations: 471.5 kB / 0.6579 GB, free: 4.441 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.01581/0.6673, allocations: 5.315 MB / 0.6631 GB, free: 15.08 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007375/0.6748, allocations: 2.513 MB / 0.6656 GB, free: 12.52 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/0.6748, allocations: 128 / 0.6656 GB, free: 12.52 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004943/0.6798, allocations: 1.603 MB / 0.6671 GB, free: 10.89 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002243/0.6821, allocations: 111.8 kB / 0.6672 GB, free: 10.78 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04758/0.7297, allocations: 17.16 MB / 0.684 GB, free: 9.168 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001072/0.7308, allocations: 1.116 MB / 0.6851 GB, free: 8.023 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0007624/0.7316, allocations: 124 kB / 0.6852 GB, free: 7.898 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000914/0.7325, allocations: 471.3 kB / 0.6857 GB, free: 7.438 MB / 494.1 MB Notification: Performance of SimCode: time 1.543e-06/0.7326, allocations: 0 / 0.6857 GB, free: 7.438 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8163/1.549, allocations: 31.71 MB / 0.7166 GB, free: 7.918 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000206/1.549, allocations: 237 kB / 0.7169 GB, free: 7.668 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.988/4.537, allocations: 0 / 0.7169 GB, free: 7.668 MB / 0.5137 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)