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.001401/0.001401, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.377/1.377, allocations: 222.9 MB / 239 MB, free: 4.73 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.001465/0.001465, allocations: 188.5 kB / 289.3 MB, free: 2.484 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5112/0.5112, allocations: 91.9 MB / 431.3 MB, free: 9.434 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002471/0.002471, allocations: 79.88 kB / 0.5015 GB, free: 7.98 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3694/0.3719, allocations: 71.25 MB / 0.5711 GB, free: 36.59 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII): time 0.005699/0.3776, allocations: 6.839 MB / 0.5778 GB, free: 32.64 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003196/0.3808, allocations: 1.991 MB / 0.5797 GB, free: 31.36 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004901/0.3813, allocations: 15.31 kB / 0.5797 GB, free: 31.36 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006029/0.382, allocations: 177.5 kB / 0.5799 GB, free: 31.29 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001459/0.3834, allocations: 0.7058 MB / 0.5806 GB, free: 30.84 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001023/0.3845, allocations: 0.5849 MB / 0.5811 GB, free: 30.53 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001261/0.3857, allocations: 1.564 MB / 0.5827 GB, free: 29.76 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004099/0.3862, allocations: 335.2 kB / 0.583 GB, free: 29.62 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006918/0.3869, allocations: 0.6579 MB / 0.5836 GB, free: 29.29 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007305/0.3876, allocations: 0.8206 MB / 0.5844 GB, free: 28.9 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001714/0.3878, allocations: 126.2 kB / 0.5846 GB, free: 28.89 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004574/0.3882, allocations: 262.2 kB / 0.5848 GB, free: 28.85 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002036/0.3885, allocations: 330.1 kB / 0.5851 GB, free: 28.64 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000416/0.3889, allocations: 0.6703 MB / 0.5858 GB, free: 28.18 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001207/0.3901, allocations: 1.638 MB / 0.5874 GB, free: 27.45 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.3901, allocations: 0 / 0.5874 GB, free: 27.45 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3901, allocations: 1.156 kB / 0.5874 GB, free: 27.45 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.832e-05/0.3901, allocations: 0 / 0.5874 GB, free: 27.45 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.00813/0.3983, allocations: 2.691 MB / 0.59 GB, free: 26.17 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.22e-05/0.3983, allocations: 9.375 kB / 0.59 GB, free: 26.17 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001524/0.3985, allocations: 124.5 kB / 0.5901 GB, free: 26.08 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00478/0.4033, allocations: 0.7703 MB / 0.5909 GB, free: 25.93 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001389/0.4047, allocations: 0.8925 MB / 0.5918 GB, free: 25.32 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002507/0.405, allocations: 257.9 kB / 0.592 GB, free: 25.11 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001648/0.4051, allocations: 82.31 kB / 0.5921 GB, free: 25.08 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002031/0.4072, allocations: 1.086 MB / 0.5931 GB, free: 24.66 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.226e-05/0.4072, allocations: 5.125 kB / 0.5931 GB, free: 24.66 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.954e-05/0.4073, allocations: 30.75 kB / 0.5932 GB, free: 24.63 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.77e-05/0.4073, allocations: 21.09 kB / 0.5932 GB, free: 24.63 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001952/0.4093, allocations: 0.9914 MB / 0.5942 GB, free: 24.3 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.006204/0.4155, allocations: 3.811 MB / 0.5979 GB, free: 22.09 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007344/0.4229, allocations: 2.368 MB / 0.6002 GB, free: 21.26 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001457/0.4243, allocations: 0.6746 MB / 0.6009 GB, free: 21 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001107/0.4245, allocations: 20.41 kB / 0.6009 GB, free: 20.99 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001676/0.4261, allocations: 0.8155 MB / 0.6017 GB, free: 20.67 MB / 430.1 MB Notification: Performance of pre-optimization done (n=95): time 3.907e-06/0.4262, allocations: 0 / 0.6017 GB, free: 20.67 MB / 430.1 MB Notification: Performance of matching and sorting (n=95): time 0.02969/0.4558, allocations: 7.19 MB / 0.6087 GB, free: 19.28 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.131e-05/0.4559, allocations: 122.9 kB / 0.6088 GB, free: 19.15 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001772/0.4577, allocations: 1.089 MB / 0.6099 GB, free: 18.7 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002125/0.4579, allocations: 51.06 kB / 0.6099 GB, free: 18.65 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000313/0.4583, allocations: 490.2 kB / 0.6104 GB, free: 18.27 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003328/0.4586, allocations: 351 kB / 0.6107 GB, free: 17.99 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004852/0.4591, allocations: 284.9 kB / 0.611 GB, free: 17.86 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.858e-05/0.4591, allocations: 301.1 kB / 0.6113 GB, free: 17.57 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001557/0.4607, allocations: 0.7559 MB / 0.612 GB, free: 17.29 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001678/0.4624, allocations: 0.928 MB / 0.6129 GB, free: 16.86 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02173/0.4841, allocations: 5.574 MB / 0.6184 GB, free: 13.79 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.031e-05/0.4842, allocations: 0 / 0.6184 GB, free: 13.79 MB / 430.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.01178/0.496, allocations: 4.36 MB / 0.6226 GB, free: 9.402 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.708e-05/0.4961, allocations: 63.41 kB / 0.6227 GB, free: 9.328 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.389e-05/0.4961, allocations: 4 kB / 0.6227 GB, free: 9.324 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005072/0.5012, allocations: 1.588 MB / 0.6242 GB, free: 7.734 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00127/0.5025, allocations: 283.6 kB / 0.6245 GB, free: 7.457 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01689/0.5194, allocations: 8.518 MB / 0.6328 GB, free: 14.78 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002094/0.5215, allocations: 206.6 kB / 0.633 GB, free: 14.58 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001431/0.5216, allocations: 55.97 kB / 0.6331 GB, free: 14.52 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.0006918/0.5223, allocations: 292.3 kB / 0.6334 GB, free: 14.22 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000272/0.5226, allocations: 122.5 kB / 0.6335 GB, free: 14.1 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01242/0.5351, allocations: 3.873 MB / 0.6373 GB, free: 10.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-05/0.5351, allocations: 8 kB / 0.6373 GB, free: 10.19 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.627e-05/0.5351, allocations: 11.98 kB / 0.6373 GB, free: 10.18 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.143e-05/0.5352, allocations: 3.984 kB / 0.6373 GB, free: 10.18 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.01428/0.5494, allocations: 5.453 MB / 0.6426 GB, free: 4.613 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.054e-05/0.5495, allocations: 4 kB / 0.6426 GB, free: 4.609 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006114/0.5501, allocations: 95.89 kB / 0.6427 GB, free: 4.516 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005564/0.5557, allocations: 1.607 MB / 0.6443 GB, free: 2.902 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001663/0.5559, allocations: 16 kB / 0.6443 GB, free: 2.887 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01996/0.5759, allocations: 9.658 MB / 0.6537 GB, free: 8.934 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.5759, allocations: 0 / 0.6537 GB, free: 8.934 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01446/0.5904, allocations: 4.725 MB / 0.6583 GB, free: 4.176 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007242/0.5911, allocations: 231.2 kB / 0.6586 GB, free: 3.93 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003755/0.5915, allocations: 19.94 kB / 0.6586 GB, free: 3.91 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001433/0.593, allocations: 107.9 kB / 0.6587 GB, free: 3.805 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006356/0.5936, allocations: 200.7 kB / 0.6589 GB, free: 3.605 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.433e-05/0.5937, allocations: 28 kB / 0.6589 GB, free: 3.578 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001256/0.595, allocations: 0.7276 MB / 0.6596 GB, free: 2.844 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.595, allocations: 4 kB / 0.6596 GB, free: 2.84 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00181/0.5968, allocations: 471.6 kB / 0.6601 GB, free: 2.379 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.01442/0.6113, allocations: 5.308 MB / 0.6652 GB, free: 13.03 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006794/0.6181, allocations: 2.552 MB / 0.6677 GB, free: 10.43 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.53e-06/0.6181, allocations: 0 / 0.6677 GB, free: 10.43 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004151/0.6223, allocations: 1.6 MB / 0.6693 GB, free: 8.793 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001409/0.6237, allocations: 129.4 kB / 0.6694 GB, free: 8.676 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0413/0.665, allocations: 17.14 MB / 0.6862 GB, free: 7.082 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008159/0.6659, allocations: 1.112 MB / 0.6873 GB, free: 5.941 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0006366/0.6665, allocations: 124 kB / 0.6874 GB, free: 5.816 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007209/0.6673, allocations: 479.3 kB / 0.6878 GB, free: 5.348 MB / 494.1 MB Notification: Performance of SimCode: time 1.583e-06/0.6673, allocations: 0 / 0.6878 GB, free: 5.348 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05999/0.7273, allocations: 33.03 MB / 0.7201 GB, free: 4.527 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001906/0.7275, allocations: 246.8 kB / 0.7203 GB, free: 4.27 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.794/3.522, allocations: 0 / 0.7203 GB, free: 4.27 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)