Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.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.TwoArea.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_FourthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_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.001297/0.001297, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.322/1.322, allocations: 223.2 MB / 238.9 MB, free: 5.637 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.001119/0.001119, allocations: 181 kB / 290.2 MB, free: 2.324 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.438/0.438, allocations: 79.45 MB / 420.7 MB, free: 3.98 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003979/0.0003981, allocations: 8 kB / 0.4891 GB, free: 5.512 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3572/0.3576, allocations: 69.5 MB / 0.557 GB, free: 37.93 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII): time 0.01419/0.3719, allocations: 19.5 MB / 0.576 GB, free: 29.74 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01128/0.3832, allocations: 5.187 MB / 0.5811 GB, free: 25.97 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004747/0.388, allocations: 57.62 kB / 0.5811 GB, free: 25.96 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00331/0.3913, allocations: 0.61 MB / 0.5817 GB, free: 25.7 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008464/0.3998, allocations: 2.01 MB / 0.5837 GB, free: 24.26 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005284/0.4051, allocations: 1.753 MB / 0.5854 GB, free: 23.4 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.007557/0.4127, allocations: 3.74 MB / 0.589 GB, free: 21.32 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001903/0.4146, allocations: 1.062 MB / 0.5901 GB, free: 20.85 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002826/0.4175, allocations: 2.013 MB / 0.5921 GB, free: 19.88 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00349/0.421, allocations: 2.517 MB / 0.5945 GB, free: 18.71 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001598/0.4226, allocations: 234.3 kB / 0.5947 GB, free: 18.71 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00213/0.4248, allocations: 361.4 kB / 0.5951 GB, free: 18.67 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001285/0.4261, allocations: 0.8911 MB / 0.5959 GB, free: 18.12 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001745/0.4278, allocations: 0.8381 MB / 0.5968 GB, free: 17.62 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00539/0.4332, allocations: 4.407 MB / 0.6011 GB, free: 16.23 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.4333, allocations: 4 kB / 0.6011 GB, free: 16.22 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.4333, allocations: 0 / 0.6011 GB, free: 16.22 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002243/0.4335, allocations: 1.062 kB / 0.6011 GB, free: 16.22 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: 893 * Number of variables: 893 Notification: Performance of Generate backend data structure: time 0.0304/0.4639, allocations: 8.449 MB / 0.6093 GB, free: 13.09 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.097e-05/0.464, allocations: 9.562 kB / 0.6093 GB, free: 13.09 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00208/0.4661, allocations: 494.3 kB / 0.6098 GB, free: 12.8 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02711/0.4932, allocations: 4.051 MB / 0.6138 GB, free: 12.08 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006424/0.4996, allocations: 2.486 MB / 0.6162 GB, free: 10.62 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001011/0.5007, allocations: 0.9963 MB / 0.6172 GB, free: 9.785 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001218/0.5019, allocations: 346.9 kB / 0.6175 GB, free: 9.672 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01102/0.513, allocations: 4.93 MB / 0.6223 GB, free: 7.914 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.476e-05/0.513, allocations: 1.062 kB / 0.6223 GB, free: 7.914 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004018/0.5135, allocations: 141.5 kB / 0.6224 GB, free: 7.805 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.36e-05/0.5135, allocations: 88.05 kB / 0.6225 GB, free: 7.801 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008741/0.5223, allocations: 4.482 MB / 0.6269 GB, free: 5.305 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.03348/0.5558, allocations: 19.03 MB / 0.6455 GB, free: 1.039 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01286/0.5687, allocations: 5.723 MB / 0.6511 GB, free: 11.23 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00057/0.5693, allocations: 66.83 kB / 0.6511 GB, free: 11.17 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006694/0.576, allocations: 3.413 MB / 0.6545 GB, free: 7.719 MB / 462.1 MB Notification: Performance of pre-optimization done (n=383): time 6.883e-06/0.576, allocations: 4 kB / 0.6545 GB, free: 7.715 MB / 462.1 MB Notification: Performance of matching and sorting (n=383): time 0.3141/0.8901, allocations: 81.45 MB / 0.734 GB, free: 6.07 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001001/0.8902, allocations: 145.8 kB / 0.7342 GB, free: 5.902 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005157/0.8954, allocations: 3.187 MB / 0.7373 GB, free: 2.695 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.00106/0.8965, allocations: 93.7 kB / 0.7374 GB, free: 2.598 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001545/0.8981, allocations: 1.963 MB / 0.7393 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002121/0.9002, allocations: 1.317 MB / 0.7406 GB, free: 15.29 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007427/0.901, allocations: 84 kB / 0.7406 GB, free: 15.2 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0003095/0.9013, allocations: 467 kB / 0.7411 GB, free: 14.74 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006344/0.9076, allocations: 2.827 MB / 0.7438 GB, free: 11.9 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006815/0.9145, allocations: 3.44 MB / 0.7472 GB, free: 8.242 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006665/0.9212, allocations: 3.108 MB / 0.7502 GB, free: 5.117 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.851e-05/0.9212, allocations: 4 kB / 0.7502 GB, free: 5.113 MB / 0.545 GB Notification: Performance of matching and sorting (n=538) (initialization): time 0.06334/0.9845, allocations: 20.73 MB / 0.7705 GB, free: 340 kB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.896e-05/0.9847, allocations: 68.61 kB / 0.7706 GB, free: 260 kB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.653e-05/0.9847, allocations: 12 kB / 0.7706 GB, free: 248 kB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2551/1.24, allocations: 8.611 MB / 0.779 GB, free: 156 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003337/1.243, allocations: 0.6698 MB / 0.7796 GB, free: 156 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09582/1.339, allocations: 37.25 MB / 0.816 GB, free: 149.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006691/1.346, allocations: 0.752 MB / 0.8167 GB, free: 149.4 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009753/1.347, allocations: 159 kB / 0.8169 GB, free: 149.3 MB / 0.5606 GB Warning: Assuming fixed start value for the following 5 variables: order4.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3.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 order4.e1d:VARIABLE(start = order4.e1d0 unit = "1" fixed = true ) "d-axis transient voltage" type: Real order4.e1q:VARIABLE(start = order4.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: 65 * 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 (401): * Single equations (assignments): 398 * 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 {93 45} Notification: Performance of prepare postOptimizeDAE: time 0.0025/1.349, allocations: 0.6694 MB / 0.8176 GB, free: 148.8 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001353/1.351, allocations: 455.5 kB / 0.818 GB, free: 148.6 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05451/1.405, allocations: 20.62 MB / 0.8381 GB, free: 138.8 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.172e-05/1.405, allocations: 36.61 kB / 0.8382 GB, free: 138.8 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.097e-05/1.405, allocations: 28 kB / 0.8382 GB, free: 138.7 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001131/1.405, allocations: 17.11 kB / 0.8382 GB, free: 138.7 MB / 0.5606 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.06364/1.469, allocations: 25.65 MB / 0.8633 GB, free: 116 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.326e-05/1.469, allocations: 5.688 kB / 0.8633 GB, free: 116 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002221/1.471, allocations: 393.8 kB / 0.8636 GB, free: 115.6 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02473/1.496, allocations: 8.672 MB / 0.8721 GB, free: 106.9 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001061/1.497, allocations: 75.98 kB / 0.8722 GB, free: 106.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07267/1.57, allocations: 34.55 MB / 0.9059 GB, free: 72 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/1.57, allocations: 7.984 kB / 0.9059 GB, free: 71.99 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06187/1.632, allocations: 24.24 MB / 0.9296 GB, free: 47.66 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001657/1.634, allocations: 0.5533 MB / 0.9301 GB, free: 47.09 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001418/1.635, allocations: 68 kB / 0.9302 GB, free: 47.02 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004824/1.64, allocations: 0.5035 MB / 0.9307 GB, free: 46.52 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00289/1.643, allocations: 0.7879 MB / 0.9315 GB, free: 45.73 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003725/1.643, allocations: 91.98 kB / 0.9315 GB, free: 45.64 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002663/1.646, allocations: 2.076 MB / 0.9336 GB, free: 43.56 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.51e-07/1.646, allocations: 0 / 0.9336 GB, free: 43.56 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.007031/1.653, allocations: 1.805 MB / 0.9353 GB, free: 41.75 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 11 (order3.delta,order3.w,order3.e1q,order4.delta,order4.w,order4.e1q,order4.e1d,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 (247): * Single equations (assignments): 244 * 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 {(98,5.5%) 38} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.06197/1.715, allocations: 24.97 MB / 0.9597 GB, free: 16.69 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.02511/1.74, allocations: 10.25 MB / 0.9697 GB, free: 6.402 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.676e-06/1.74, allocations: 9.875 kB / 0.9697 GB, free: 6.395 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01932/1.759, allocations: 7.031 MB / 0.9766 GB, free: 15.33 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003687/1.763, allocations: 322.1 kB / 0.9769 GB, free: 15.01 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2395/2.003, allocations: 20.82 MB / 0.9972 GB, free: 170.8 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00207/2.005, allocations: 2.536 MB / 0.9997 GB, free: 170 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001708/2.007, allocations: 371.8 kB / 1 GB, free: 169.9 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002166/2.009, allocations: 1.965 MB / 1.002 GB, free: 169.9 MB / 0.5762 GB Notification: Performance of SimCode: time 1.312e-06/2.009, allocations: 3.219 kB / 1.002 GB, free: 169.9 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1648/2.173, allocations: 114.6 MB / 1.114 GB, free: 93.4 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001334/2.174, allocations: 216.8 kB / 1.114 GB, free: 93.16 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.515/7.689, allocations: 0 / 1.114 GB, free: 93.16 MB / 0.5762 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_FourthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_FourthOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe 2>&1) Environment - environmentSimulation: