Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRI.conf.json 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/Modelica 4.0.0+maint.om/package.mo", uses=false) 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/OpenIPSL 3.0.1/package.mo", uses=false) Using package OpenIPSL with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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) 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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRI,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoArea_FourthOrder_AVRI",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRI,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoArea_FourthOrder_AVRI",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008988/0.0008988, allocations: 172.5 kB / 7.646 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.34/1.34, allocations: 221.5 MB / 229.6 MB, free: 7.5 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000969/0.0009692, allocations: 100.8 kB / 280.5 MB, free: 5.246 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.5262/0.5262, allocations: 78.06 MB / 409.3 MB, free: 6.348 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.892e-05/1.892e-05, allocations: 7.938 kB / 485 MB, free: 12.12 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1347/0.1347, allocations: 69.36 MB / 0.5414 GB, free: 6.711 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4025/0.5373, allocations: 101.1 MB / 0.6401 GB, free: 14.38 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002716/0.5376, allocations: 84.06 kB / 0.6401 GB, free: 14.3 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2471/0.7848, allocations: 97.4 MB / 0.7353 GB, free: 12.52 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.984e-06/0.7848, allocations: 0 / 0.7353 GB, free: 12.52 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0003567/0.7852, allocations: 87.94 kB / 0.7353 GB, free: 12.43 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 890 * Number of variables: 890 Notification: Performance of Generate backend data structure: time 0.01867/0.8039, allocations: 5.723 MB / 0.7409 GB, free: 6.633 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.634e-05/0.8039, allocations: 8.031 kB / 0.7409 GB, free: 6.625 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01812/0.8221, allocations: 2.776 MB / 0.7437 GB, free: 3.84 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006195/0.8283, allocations: 2.278 MB / 0.7459 GB, free: 1.484 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009063/0.8293, allocations: 0.8346 MB / 0.7467 GB, free: 0.5195 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00108/0.8303, allocations: 196 kB / 0.7469 GB, free: 336 kB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007012/0.8374, allocations: 3.44 MB / 0.7502 GB, free: 12.89 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008321/0.8457, allocations: 3.583 MB / 0.7537 GB, free: 9.273 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.124e-05/0.8459, allocations: 7.938 kB / 0.7537 GB, free: 9.266 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003709/0.8462, allocations: 4 kB / 0.7537 GB, free: 9.262 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.646e-05/0.8463, allocations: 84 kB / 0.7538 GB, free: 9.18 MB / 0.5573 GB Warning: The model contains alias variables with conflicting start and/or 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.3994/1.246, allocations: 18.07 MB / 0.7715 GB, free: 85.15 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01059/1.256, allocations: 4.653 MB / 0.776 GB, free: 84.71 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003624/1.26, allocations: 2.114 MB / 0.7781 GB, free: 84.68 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000647/1.261, allocations: 73.92 kB / 0.7782 GB, free: 84.68 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.912e-05/1.261, allocations: 76.3 kB / 0.7782 GB, free: 84.64 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=380): time 8.335e-06/1.261, allocations: 0 / 0.7782 GB, free: 84.64 MB / 0.5573 GB Notification: Performance of matching and sorting (n=380): time 0.05269/1.313, allocations: 17.15 MB / 0.795 GB, free: 84.12 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.326e-05/1.314, allocations: 168.6 kB / 0.7951 GB, free: 83.96 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004338/1.318, allocations: 2.428 MB / 0.7975 GB, free: 83.68 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0009399/1.319, allocations: 26.73 kB / 0.7975 GB, free: 83.65 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.00145/1.32, allocations: 1.995 MB / 0.7995 GB, free: 83.23 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001783/1.322, allocations: 1.243 MB / 0.8007 GB, free: 82.57 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002823/1.322, allocations: 1.031 kB / 0.8007 GB, free: 82.57 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001931/1.323, allocations: 445.3 kB / 0.8011 GB, free: 82.25 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002816/1.325, allocations: 1.748 MB / 0.8028 GB, free: 82.25 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003103/1.329, allocations: 2.306 MB / 0.8051 GB, free: 81.69 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003167/1.332, allocations: 1.95 MB / 0.807 GB, free: 81.61 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.709e-05/1.332, allocations: 4.812 kB / 0.807 GB, free: 81.61 MB / 0.5573 GB Notification: Performance of matching and sorting (n=458) (initialization): time 0.05244/1.384, allocations: 17.26 MB / 0.8238 GB, free: 80.53 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001115/1.385, allocations: 6.664 MB / 0.8303 GB, free: 73.49 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.424e-05/1.385, allocations: 17.56 kB / 0.8304 GB, free: 73.49 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0225/1.408, allocations: 6.84 MB / 0.837 GB, free: 73.09 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002864/1.411, allocations: 0.5386 MB / 0.8376 GB, free: 73.09 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05311/1.464, allocations: 25.04 MB / 0.862 GB, free: 64.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006429/1.47, allocations: 0.6187 MB / 0.8626 GB, free: 64.6 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001228/1.472, allocations: 128.7 kB / 0.8627 GB, free: 64.57 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.553e-05/1.472, allocations: 4.875 kB / 0.8628 GB, free: 64.57 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.04765/1.519, allocations: 16.77 MB / 0.8791 GB, free: 61.5 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.783e-05/1.519, allocations: 15.81 kB / 0.8791 GB, free: 61.5 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02153/1.541, allocations: 6.846 MB / 0.8858 GB, free: 56.67 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002801/1.544, allocations: 0.5326 MB / 0.8863 GB, free: 56.23 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05146/1.595, allocations: 25.02 MB / 0.9108 GB, free: 34.16 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006366/1.602, allocations: 0.5882 MB / 0.9114 GB, free: 33.68 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001263/1.603, allocations: 138.9 kB / 0.9115 GB, free: 33.55 MB / 0.5573 GB Warning: Assuming fixed start value for the following 5 variables: order4.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real order3.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real order4.e1d:VARIABLE(start = order4.e1d0 unit = "1" ) "d-axis transient voltage" type: Real order4.e1q:VARIABLE(start = order4.e1q0 unit = "1" ) "q-axis transient voltage" type: Real order4.delta:VARIABLE(start = order4.delta0 unit = "rad" ) "Rotor angle" 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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (322): * Single equations (assignments): 319 * 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 {92 45} Notification: Performance of prepare postOptimizeDAE: time 0.001471/1.605, allocations: 206 kB / 0.9117 GB, free: 33.36 MB / 0.5573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.04824/1.653, allocations: 17.16 MB / 0.9284 GB, free: 19.87 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00221/1.655, allocations: 452.4 kB / 0.9289 GB, free: 19.43 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04808/1.703, allocations: 17.59 MB / 0.9461 GB, free: 5.855 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.187e-05/1.703, allocations: 36 kB / 0.9461 GB, free: 5.82 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.458e-05/1.703, allocations: 28 kB / 0.9461 GB, free: 5.793 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001057/1.703, allocations: 23.12 kB / 0.9461 GB, free: 5.789 MB / 0.5573 GB Warning: The model contains alias variables with conflicting start and/or 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.05937/1.763, allocations: 22.51 MB / 0.9681 GB, free: 3.93 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.658e-05/1.763, allocations: 0 / 0.9681 GB, free: 3.93 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00263/1.766, allocations: 404.9 kB / 0.9685 GB, free: 3.535 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02286/1.788, allocations: 6.903 MB / 0.9752 GB, free: 12.62 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001088/1.79, allocations: 20.48 kB / 0.9753 GB, free: 12.61 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3868/2.176, allocations: 22.26 MB / 0.997 GB, free: 111.9 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.111e-06/2.176, allocations: 0 / 0.997 GB, free: 111.9 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05626/2.233, allocations: 20.45 MB / 1.017 GB, free: 111.2 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001645/2.234, allocations: 0.5548 MB / 1.018 GB, free: 110.9 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001678/2.236, allocations: 2.344 kB / 1.018 GB, free: 110.9 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005667/2.242, allocations: 428.6 kB / 1.018 GB, free: 110.9 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003652/2.245, allocations: 0.7635 MB / 1.019 GB, free: 110.9 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007592/2.246, allocations: 95.86 kB / 1.019 GB, free: 110.9 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.003879/2.25, allocations: 1.795 MB / 1.021 GB, free: 110.7 MB / 0.5886 GB Notification: Performance of sort global known variables: time 4.31e-07/2.25, allocations: 1.219 kB / 1.021 GB, free: 110.7 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01206/2.262, allocations: 2.603 MB / 1.023 GB, free: 110.6 MB / 0.5886 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,aVRTypeI.firstOrder.y,aVRTypeI.firstOrder2.y,aVRTypeI.transferFunction.x_scaled[1],aVRTypeI.transferFunction.x_scaled[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (250): * Single equations (assignments): 248 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(100,5.5%) 36} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.06166/2.324, allocations: 21.14 MB / 1.044 GB, free: 109.3 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.03916/2.363, allocations: 13.98 MB / 1.057 GB, free: 107.8 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.226e-05/2.363, allocations: 4.25 kB / 1.057 GB, free: 107.8 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.01848/2.382, allocations: 5.846 MB / 1.063 GB, free: 107.2 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004247/2.386, allocations: 245.1 kB / 1.063 GB, free: 107.1 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01722/2.403, allocations: 6.416 MB / 1.07 GB, free: 105.3 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00187/2.405, allocations: 2.599 MB / 1.072 GB, free: 104.4 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.003103/2.408, allocations: 0.6038 MB / 1.073 GB, free: 104.3 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002098/2.41, allocations: 1.909 MB / 1.075 GB, free: 104.3 MB / 0.5886 GB Notification: Performance of SimCode: time 1.192e-06/2.41, allocations: 0 / 1.075 GB, free: 104.3 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5618/2.972, allocations: 138.7 MB / 1.21 GB, free: 99.31 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000181/2.972, allocations: 135 kB / 1.21 GB, free: 99.12 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.692/10.66, allocations: 1.5 kB / 1.21 GB, free: 99.12 MB / 0.5886 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRI.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRI.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRI.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRI.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoArea_FourthOrder_AVRI_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoArea_FourthOrder_AVRI.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRI.pipe 2>&1)