Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_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.ThreeArea.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_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.001387/0.001387, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.386/1.386, 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.001751/0.001751, allocations: 192.3 kB / 289.1 MB, free: 2.5 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5182/0.5182, allocations: 91.89 MB / 431.2 MB, free: 9.41 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001617/0.001617, allocations: 79.88 kB / 0.5013 GB, free: 8.035 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3623/0.3639, allocations: 71.27 MB / 0.5709 GB, free: 36.56 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII): time 0.01006/0.374, allocations: 14.5 MB / 0.5851 GB, free: 27 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.007485/0.3815, allocations: 3.627 MB / 0.5886 GB, free: 24.39 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003275/0.3849, allocations: 31.72 kB / 0.5886 GB, free: 24.39 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001917/0.3869, allocations: 440.6 kB / 0.5891 GB, free: 24.22 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004742/0.3916, allocations: 1.233 MB / 0.5903 GB, free: 23.39 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003389/0.395, allocations: 1.419 MB / 0.5917 GB, free: 22.6 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.005042/0.4001, allocations: 3.515 MB / 0.5951 GB, free: 20.88 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001362/0.4015, allocations: 0.8048 MB / 0.5959 GB, free: 20.44 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002415/0.4039, allocations: 1.394 MB / 0.5972 GB, free: 19.77 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002609/0.4065, allocations: 1.854 MB / 0.599 GB, free: 18.91 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009281/0.4075, allocations: 174.8 kB / 0.5992 GB, free: 18.91 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001314/0.4088, allocations: 317.6 kB / 0.5995 GB, free: 18.86 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005098/0.4093, allocations: 0.6502 MB / 0.6002 GB, free: 18.46 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001495/0.4108, allocations: 1.524 MB / 0.6016 GB, free: 17.46 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003747/0.4146, allocations: 3.805 MB / 0.6054 GB, free: 15.72 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.199e-06/0.4146, allocations: 3.938 kB / 0.6054 GB, free: 15.72 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.4146, allocations: 1.438 kB / 0.6054 GB, free: 15.72 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001546/0.4148, allocations: 0 / 0.6054 GB, free: 15.72 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: 523 * Number of variables: 523 Notification: Performance of Generate backend data structure: time 0.02525/0.44, allocations: 6.579 MB / 0.6118 GB, free: 13.09 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.984e-05/0.4401, allocations: 9.469 kB / 0.6118 GB, free: 13.09 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004735/0.4406, allocations: 300.2 kB / 0.6121 GB, free: 12.9 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01596/0.4566, allocations: 2.281 MB / 0.6143 GB, free: 12.46 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005556/0.4622, allocations: 1.867 MB / 0.6161 GB, free: 11.3 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000736/0.4629, allocations: 0.7266 MB / 0.6168 GB, free: 10.65 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000819/0.4638, allocations: 215.3 kB / 0.617 GB, free: 10.58 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007584/0.4714, allocations: 3.029 MB / 0.62 GB, free: 9.43 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.075e-05/0.4714, allocations: 0.7031 kB / 0.62 GB, free: 9.43 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002667/0.4717, allocations: 90.42 kB / 0.6201 GB, free: 9.359 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-05/0.4718, allocations: 49.03 kB / 0.6201 GB, free: 9.359 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006651/0.4784, allocations: 2.78 MB / 0.6229 GB, free: 8.422 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.0201/0.4985, allocations: 9.92 MB / 0.6325 GB, free: 14.94 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01119/0.5098, allocations: 4.188 MB / 0.6366 GB, free: 10.62 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004532/0.5143, allocations: 1.968 MB / 0.6386 GB, free: 8.645 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003415/0.5147, allocations: 45.89 kB / 0.6386 GB, free: 8.602 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005011/0.5197, allocations: 2.232 MB / 0.6408 GB, free: 6.344 MB / 446.1 MB Notification: Performance of pre-optimization done (n=248): time 5.42e-06/0.5197, allocations: 0 / 0.6408 GB, free: 6.344 MB / 446.1 MB Notification: Performance of matching and sorting (n=248): time 0.1241/0.6438, allocations: 28.18 MB / 0.6683 GB, free: 10.04 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001214/0.644, allocations: 180.2 kB / 0.6685 GB, free: 9.82 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00393/0.6479, allocations: 2.269 MB / 0.6707 GB, free: 7.531 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008398/0.6488, allocations: 77.69 kB / 0.6708 GB, free: 7.449 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009704/0.6498, allocations: 1.16 MB / 0.6719 GB, free: 6.277 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001291/0.6511, allocations: 0.8743 MB / 0.6727 GB, free: 5.391 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001176/0.6523, allocations: 0.5618 MB / 0.6733 GB, free: 4.82 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.739e-05/0.6524, allocations: 301.1 kB / 0.6736 GB, free: 4.523 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004279/0.6567, allocations: 1.955 MB / 0.6755 GB, free: 2.566 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004707/0.6614, allocations: 2.326 MB / 0.6778 GB, free: 152 kB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.05682/0.7182, allocations: 14.03 MB / 0.6915 GB, free: 1.879 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.563e-05/0.7183, allocations: 7.938 kB / 0.6915 GB, free: 1.871 MB / 494.1 MB Notification: Performance of matching and sorting (n=417) (initialization): time 0.04327/0.7616, allocations: 12.5 MB / 0.7037 GB, free: 5.305 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.906e-05/0.7617, allocations: 118.8 kB / 0.7038 GB, free: 5.164 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.336e-05/0.7618, allocations: 4 kB / 0.7038 GB, free: 5.16 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01851/0.7803, allocations: 5.288 MB / 0.709 GB, free: 15.87 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003401/0.7837, allocations: 0.5617 MB / 0.7095 GB, free: 15.3 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06109/0.8449, allocations: 21.33 MB / 0.7303 GB, free: 9.82 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005139/0.85, allocations: 489.1 kB / 0.7308 GB, free: 9.34 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008728/0.8509, allocations: 116 kB / 0.7309 GB, free: 9.227 MB / 0.5294 GB Warning: Assuming fixed start value for the following 7 variables: order3_2.delta:VARIABLE(flow=false start = order3_2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order3_2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3_2.e1q:VARIABLE(start = order3_2.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real order2.delta:VARIABLE(flow=false start = order2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order4_1.delta:VARIABLE(flow=false start = order4_1.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order4_1.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,$whenCondition4,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (330): * Single equations (assignments): 325 * Array equations: 0 * Algorithm blocks: 4 * 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 {(63,25,8.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00232/0.8533, allocations: 0.5325 MB / 0.7314 GB, free: 8.68 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001329/0.8546, allocations: 300.3 kB / 0.7317 GB, free: 8.383 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04153/0.8962, allocations: 11.9 MB / 0.7433 GB, free: 12.43 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.508e-05/0.8962, allocations: 24 kB / 0.7434 GB, free: 12.41 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.076e-05/0.8963, allocations: 20 kB / 0.7434 GB, free: 12.39 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.012e-05/0.8964, allocations: 15.95 kB / 0.7434 GB, free: 12.38 MB / 0.545 GB 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.0485/0.9449, allocations: 15.51 MB / 0.7585 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.958e-05/0.945, allocations: 4 kB / 0.7585 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001688/0.9467, allocations: 243.7 kB / 0.7588 GB, free: 12.46 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01813/0.9648, allocations: 5.247 MB / 0.7639 GB, free: 7.191 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000754/0.9656, allocations: 55.98 kB / 0.764 GB, free: 7.137 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3069/1.273, allocations: 22.68 MB / 0.7861 GB, free: 160.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.427e-06/1.273, allocations: 0 / 0.7861 GB, free: 160.6 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04531/1.318, allocations: 14.26 MB / 0.8 GB, free: 157.2 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001105/1.319, allocations: 411.5 kB / 0.8004 GB, free: 156.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007077/1.32, allocations: 44.23 kB / 0.8005 GB, free: 156.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003036/1.323, allocations: 298.4 kB / 0.8007 GB, free: 156.8 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002422/1.325, allocations: 0.5717 MB / 0.8013 GB, free: 156.7 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002506/1.326, allocations: 74.42 kB / 0.8014 GB, free: 156.7 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002516/1.328, allocations: 1.5 MB / 0.8028 GB, free: 156.1 MB / 0.5606 GB Notification: Performance of sort global known variables: time 5.51e-07/1.328, allocations: 0 / 0.8028 GB, free: 156.1 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004191/1.332, allocations: 1.172 MB / 0.804 GB, free: 156 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 17 (order3_2.delta,order3_2.w,order3_2.e1q,order2.delta,order2.w,order4_1.delta,order4_1.w,order4_1.e1q,order4_1.e1d,Exc1.ExcitationSystem.x_scaled[1],Exc1.derivativeBlock.x,Exc1.firstOrder2.y,Exc1.simpleLagLim.state,Exc2.ExcitationSystem.x_scaled[1],Exc2.derivativeBlock.x,Exc2.firstOrder2.y,Exc2.simpleLagLim.state) * Number of discrete variables: 4 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (157): * Single equations (assignments): 152 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(65,23,7.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,6), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.04269/1.375, allocations: 14.91 MB / 0.8185 GB, free: 151.1 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01683/1.392, allocations: 6.618 MB / 0.825 GB, free: 145 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.524e-06/1.392, allocations: 4.438 kB / 0.825 GB, free: 145 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01183/1.404, allocations: 4.395 MB / 0.8293 GB, free: 140.5 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002463/1.406, allocations: 270.8 kB / 0.8296 GB, free: 140.3 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1017/1.508, allocations: 47.05 MB / 0.8755 GB, free: 91.48 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001015/1.509, allocations: 1.806 MB / 0.8773 GB, free: 89.64 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.00128/1.51, allocations: 262.5 kB / 0.8775 GB, free: 89.38 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00129/1.512, allocations: 1.214 MB / 0.8787 GB, free: 88.17 MB / 0.5606 GB Notification: Performance of SimCode: time 1.012e-06/1.512, allocations: 0 / 0.8787 GB, free: 88.17 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1019/1.613, allocations: 81.06 MB / 0.9579 GB, free: 7.352 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000152/1.614, allocations: 242.7 kB / 0.9581 GB, free: 7.094 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.875/6.489, allocations: 0 / 0.9581 GB, free: 7.094 MB / 0.5606 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe 2>&1)