Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.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.Discretization.FourthOrder_AVRII_Continuous,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous",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.001096/0.001096, allocations: 174.9 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.19/1.19, allocations: 221.4 MB / 234.6 MB, free: 14.43 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008494/0.0008494, allocations: 93.42 kB / 285.6 MB, free: 12.97 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4126/0.4126, allocations: 78.03 MB / 414.5 MB, free: 10.82 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.214e-05/2.217e-05, allocations: 4 kB / 491.9 MB, free: 13.77 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3015/0.3016, allocations: 69.34 MB / 0.5481 GB, free: 20.27 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1123/0.4139, allocations: 98.82 MB / 0.6446 GB, free: 1.578 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002046/0.4141, allocations: 87.88 kB / 0.6446 GB, free: 1.492 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3533/0.7674, allocations: 36.43 MB / 0.6802 GB, free: 106.4 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.7675, allocations: 0 / 0.6802 GB, free: 106.4 MB / 490.7 MB Notification: Performance of Transformations before backend: time 6.492e-05/0.7675, allocations: 27.53 kB / 0.6802 GB, free: 106.4 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.00411/0.7716, allocations: 1.705 MB / 0.6819 GB, free: 105.6 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.709e-05/0.7717, allocations: 16.55 kB / 0.6819 GB, free: 105.6 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000193/0.7719, allocations: 124.6 kB / 0.682 GB, free: 105.6 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003399/0.7753, allocations: 0.5613 MB / 0.6826 GB, free: 105.5 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001501/0.7768, allocations: 0.7838 MB / 0.6834 GB, free: 105.2 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002461/0.7771, allocations: 260.8 kB / 0.6836 GB, free: 105 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001708/0.7773, allocations: 84.06 kB / 0.6837 GB, free: 105 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001621/0.7789, allocations: 0.9398 MB / 0.6846 GB, free: 104.9 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.814e-05/0.7789, allocations: 0 / 0.6846 GB, free: 104.9 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.546e-05/0.779, allocations: 33.95 kB / 0.6846 GB, free: 104.9 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.118e-05/0.7791, allocations: 17.81 kB / 0.6846 GB, free: 104.9 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001603/0.7807, allocations: 0.8412 MB / 0.6855 GB, free: 104.9 MB / 490.7 MB 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.006555/0.7872, allocations: 3.792 MB / 0.6892 GB, free: 103.8 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006562/0.7938, allocations: 2.659 MB / 0.6918 GB, free: 103.3 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009003/0.7948, allocations: 0.5447 MB / 0.6923 GB, free: 103.3 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001114/0.7949, allocations: 23.06 kB / 0.6923 GB, free: 103.3 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009761/0.7959, allocations: 0.6671 MB / 0.693 GB, free: 103.1 MB / 490.7 MB Notification: Performance of pre-optimization done (n=96): time 2.725e-06/0.7959, allocations: 0 / 0.693 GB, free: 103.1 MB / 490.7 MB Notification: Performance of matching and sorting (n=96): time 0.01112/0.807, allocations: 4.026 MB / 0.6969 GB, free: 102.2 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.037e-05/0.8071, allocations: 115.2 kB / 0.697 GB, free: 102.1 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001176/0.8083, allocations: 0.8825 MB / 0.6979 GB, free: 101.7 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002152/0.8085, allocations: 43.7 kB / 0.6979 GB, free: 101.7 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002572/0.8088, allocations: 0.5058 MB / 0.6984 GB, free: 101.3 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002985/0.8091, allocations: 346.2 kB / 0.6987 GB, free: 101 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.492e-05/0.8091, allocations: 18.03 kB / 0.6988 GB, free: 101 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 6.415e-05/0.8092, allocations: 343.3 kB / 0.6991 GB, free: 100.7 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006906/0.8099, allocations: 458 kB / 0.6995 GB, free: 100.5 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007142/0.8106, allocations: 0.5852 MB / 0.7001 GB, free: 100.1 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007422/0.8114, allocations: 0.5512 MB / 0.7006 GB, free: 99.84 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.529e-06/0.8114, allocations: 3.344 kB / 0.7006 GB, free: 99.84 MB / 490.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.01107/0.8225, allocations: 4.098 MB / 0.7046 GB, free: 98.92 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.526e-05/0.8226, allocations: 61.38 kB / 0.7047 GB, free: 98.86 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.473e-05/0.8226, allocations: 6.438 kB / 0.7047 GB, free: 98.86 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004923/0.8275, allocations: 1.518 MB / 0.7062 GB, free: 98.35 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001008/0.8285, allocations: 190.2 kB / 0.7064 GB, free: 98.2 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01181/0.8404, allocations: 6.742 MB / 0.713 GB, free: 92.11 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001527/0.8419, allocations: 206 kB / 0.7132 GB, free: 91.94 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.432e-05/0.842, allocations: 39.44 kB / 0.7132 GB, free: 91.91 MB / 490.7 MB Warning: Assuming fixed start value for the following 4 variables: order4.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real aVRTypeII.firstOrder2.y:VARIABLE(start = aVRTypeII.firstOrder2.y_start ) "Connector of Real output signal" 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 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 93 * 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 {19 14} Notification: Performance of prepare postOptimizeDAE: time 0.0002444/0.8423, allocations: 196 kB / 0.7134 GB, free: 91.72 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001675/0.8425, allocations: 130.4 kB / 0.7135 GB, free: 91.59 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01057/0.853, allocations: 4.141 MB / 0.7175 GB, free: 88.35 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.64e-05/0.8531, allocations: 12 kB / 0.7176 GB, free: 88.34 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.939e-06/0.8531, allocations: 8 kB / 0.7176 GB, free: 88.33 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.189e-05/0.8531, allocations: 11.27 kB / 0.7176 GB, free: 88.33 MB / 490.7 MB 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.01227/0.8654, allocations: 5.689 MB / 0.7231 GB, free: 83.65 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.257e-06/0.8654, allocations: 0 / 0.7231 GB, free: 83.65 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005916/0.866, allocations: 107.8 kB / 0.7232 GB, free: 83.54 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004209/0.8703, allocations: 1.488 MB / 0.7247 GB, free: 82.05 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001322/0.8704, allocations: 24 kB / 0.7247 GB, free: 82.03 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01159/0.882, allocations: 7.71 MB / 0.7322 GB, free: 74.06 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.8821, allocations: 7.953 kB / 0.7322 GB, free: 74.05 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01185/0.8939, allocations: 4.875 MB / 0.737 GB, free: 69.14 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006315/0.8946, allocations: 231.2 kB / 0.7372 GB, free: 68.89 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001999/0.8948, allocations: 19.98 kB / 0.7372 GB, free: 68.88 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001121/0.8959, allocations: 143.9 kB / 0.7374 GB, free: 68.73 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005505/0.8965, allocations: 196.7 kB / 0.7376 GB, free: 68.54 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.464e-05/0.8966, allocations: 23.98 kB / 0.7376 GB, free: 68.52 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0007925/0.8974, allocations: 0.6856 MB / 0.7383 GB, free: 67.82 MB / 490.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.8974, allocations: 4.188 kB / 0.7383 GB, free: 67.82 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.00116/0.8985, allocations: 431.5 kB / 0.7387 GB, free: 67.4 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (order2.delta,order2.w,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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 61 * 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 {(18,25.9%) 14} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.01175/0.9103, allocations: 5.552 MB / 0.7441 GB, free: 61.8 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.004367/0.9147, allocations: 2.066 MB / 0.7461 GB, free: 59.7 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.9147, allocations: 8.688 kB / 0.7461 GB, free: 59.69 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00339/0.9181, allocations: 1.584 MB / 0.7477 GB, free: 58.07 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000826/0.919, allocations: 105.7 kB / 0.7478 GB, free: 57.97 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003158/0.9221, allocations: 1.938 MB / 0.7497 GB, free: 56.01 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003856/0.9225, allocations: 1.147 MB / 0.7508 GB, free: 54.83 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0003452/0.9229, allocations: 98.7 kB / 0.7509 GB, free: 54.73 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004681/0.9234, allocations: 465.7 kB / 0.7513 GB, free: 54.28 MB / 490.7 MB Notification: Performance of SimCode: time 6.81e-07/0.9234, allocations: 0 / 0.7513 GB, free: 54.28 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05331/0.9767, allocations: 30.83 MB / 0.7814 GB, free: 24.08 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000148/0.9769, allocations: 204.4 kB / 0.7816 GB, free: 23.86 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.658/3.635, allocations: 0 / 0.7816 GB, free: 23.86 MB / 490.7 MB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe 2>&1)