Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo", uses=false) Using package OpenIPSL with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous,fileNamePrefix="OpenIPSL_2_0_0_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 3.2.3+maint.om/package.mo): time 0.001113/0.001113, allocations: 174.6 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.394/1.394, allocations: 205.2 MB / 218.5 MB, free: 9.152 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008289/0.0008288, allocations: 88.5 kB / 266.6 MB, free: 9.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.0707/0.07069, allocations: 12.2 MB / 326.8 MB, free: 12.88 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.2803/0.2803, allocations: 78.03 MB / 455.7 MB, free: 15.36 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 3.721e-05/3.734e-05, allocations: 4 kB / 0.5213 GB, free: 24.12 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1344/0.1345, allocations: 69.24 MB / 0.5889 GB, free: 2.934 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4722/0.6068, allocations: 100.4 MB / 0.687 GB, free: 15.94 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002304/0.607, allocations: 80.95 kB / 0.687 GB, free: 15.9 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09965/0.7067, allocations: 35.51 MB / 0.7217 GB, free: 1.93 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.794e-06/0.7067, allocations: 0 / 0.7217 GB, free: 1.93 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001424/0.7069, allocations: 24 kB / 0.7217 GB, free: 1.906 MB / 458.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.005128/0.712, allocations: 1.707 MB / 0.7234 GB, free: 256 kB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.018e-05/0.7121, allocations: 15.98 kB / 0.7234 GB, free: 240 kB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003636/0.7125, allocations: 129.6 kB / 0.7236 GB, free: 152 kB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003692/0.7162, allocations: 0.5609 MB / 0.7241 GB, free: 15.63 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002043/0.7182, allocations: 0.7884 MB / 0.7249 GB, free: 14.96 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003498/0.7186, allocations: 258.8 kB / 0.7251 GB, free: 14.7 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002813/0.7189, allocations: 80.92 kB / 0.7252 GB, free: 14.64 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001959/0.7209, allocations: 0.9371 MB / 0.7261 GB, free: 14.03 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.383e-05/0.7209, allocations: 3.938 kB / 0.7261 GB, free: 14.02 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001006/0.721, allocations: 25.19 kB / 0.7261 GB, free: 14.02 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.063e-05/0.721, allocations: 23.95 kB / 0.7262 GB, free: 14 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001572/0.7226, allocations: 0.8405 MB / 0.727 GB, free: 13.46 MB / 474.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.007047/0.7297, allocations: 3.79 MB / 0.7307 GB, free: 10.45 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00723/0.7369, allocations: 2.656 MB / 0.7333 GB, free: 8.035 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009051/0.7379, allocations: 0.5421 MB / 0.7338 GB, free: 7.734 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000123/0.738, allocations: 16.7 kB / 0.7338 GB, free: 7.723 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001209/0.7392, allocations: 0.674 MB / 0.7345 GB, free: 7.258 MB / 474.7 MB Notification: Performance of pre-optimization done (n=96): time 6.282e-06/0.7392, allocations: 0 / 0.7345 GB, free: 7.258 MB / 474.7 MB Notification: Performance of matching and sorting (n=96): time 0.01262/0.7519, allocations: 4.028 MB / 0.7384 GB, free: 3.762 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.014e-05/0.752, allocations: 111.6 kB / 0.7385 GB, free: 3.629 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001834/0.7538, allocations: 0.891 MB / 0.7394 GB, free: 2.953 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002105/0.754, allocations: 42.89 kB / 0.7394 GB, free: 2.918 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003793/0.7544, allocations: 0.5008 MB / 0.7399 GB, free: 2.645 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005175/0.755, allocations: 350.6 kB / 0.7403 GB, free: 2.344 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001195/0.7551, allocations: 22.69 kB / 0.7403 GB, free: 2.336 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001547/0.7553, allocations: 347.5 kB / 0.7406 GB, free: 2.008 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009041/0.7562, allocations: 456.9 kB / 0.741 GB, free: 1.762 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009728/0.7572, allocations: 0.5775 MB / 0.7416 GB, free: 1.359 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009458/0.7581, allocations: 0.5533 MB / 0.7421 GB, free: 0.9961 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.612e-06/0.7581, allocations: 4 kB / 0.7421 GB, free: 0.9922 MB / 474.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.01304/0.7712, allocations: 4.088 MB / 0.7461 GB, free: 13.43 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.291e-05/0.7713, allocations: 63.36 kB / 0.7462 GB, free: 13.36 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.142e-05/0.7714, allocations: 4 kB / 0.7462 GB, free: 13.36 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005933/0.7773, allocations: 1.529 MB / 0.7477 GB, free: 11.9 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001161/0.7785, allocations: 183.8 kB / 0.7479 GB, free: 11.72 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01506/0.7936, allocations: 6.729 MB / 0.7544 GB, free: 4.848 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001777/0.7954, allocations: 207 kB / 0.7546 GB, free: 4.645 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000248/0.7956, allocations: 35.98 kB / 0.7547 GB, free: 4.609 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.0004961/0.7962, allocations: 199.1 kB / 0.7549 GB, free: 4.406 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005328/0.7967, allocations: 126.4 kB / 0.755 GB, free: 4.281 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01239/0.8091, allocations: 4.147 MB / 0.759 GB, free: 112 kB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.638e-05/0.8092, allocations: 12 kB / 0.759 GB, free: 100 kB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.064e-05/0.8092, allocations: 8 kB / 0.7591 GB, free: 92 kB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.844e-05/0.8092, allocations: 3.984 kB / 0.7591 GB, free: 88 kB / 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.01495/0.8242, allocations: 5.695 MB / 0.7646 GB, free: 10.28 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.805e-06/0.8243, allocations: 0 / 0.7646 GB, free: 10.28 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000621/0.8249, allocations: 103.8 kB / 0.7647 GB, free: 10.18 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004858/0.8298, allocations: 1.489 MB / 0.7662 GB, free: 8.684 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001528/0.8299, allocations: 20 kB / 0.7662 GB, free: 8.664 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01451/0.8444, allocations: 7.72 MB / 0.7737 GB, free: 0.6641 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.991e-06/0.8445, allocations: 4 kB / 0.7737 GB, free: 0.6602 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.014/0.8585, allocations: 4.881 MB / 0.7785 GB, free: 11.74 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006557/0.8592, allocations: 231.2 kB / 0.7787 GB, free: 11.49 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004932/0.8597, allocations: 20 kB / 0.7787 GB, free: 11.47 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001563/0.8613, allocations: 143.9 kB / 0.7789 GB, free: 11.33 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00074/0.8621, allocations: 196.6 kB / 0.7791 GB, free: 11.14 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001569/0.8623, allocations: 27.98 kB / 0.7791 GB, free: 11.11 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001299/0.8636, allocations: 0.6856 MB / 0.7798 GB, free: 10.42 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.21e-07/0.8636, allocations: 0 / 0.7798 GB, free: 10.42 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.001897/0.8655, allocations: 435.5 kB / 0.7802 GB, free: 9.992 MB / 0.5105 GB 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.01446/0.88, allocations: 5.547 MB / 0.7856 GB, free: 4.398 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.005565/0.8856, allocations: 2.061 MB / 0.7876 GB, free: 2.289 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.884e-06/0.8856, allocations: 4 kB / 0.7876 GB, free: 2.285 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00423/0.8899, allocations: 1.576 MB / 0.7892 GB, free: 0.6719 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001183/0.8911, allocations: 111.3 kB / 0.7893 GB, free: 0.5625 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005035/0.8961, allocations: 1.941 MB / 0.7912 GB, free: 14.57 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007916/0.897, allocations: 1.15 MB / 0.7923 GB, free: 13.39 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0004878/0.8975, allocations: 94.75 kB / 0.7924 GB, free: 13.3 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006777/0.8981, allocations: 471.6 kB / 0.7928 GB, free: 12.84 MB / 0.5261 GB Notification: Performance of SimCode: time 1.122e-06/0.8982, allocations: 4 kB / 0.7928 GB, free: 12.83 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06274/0.9609, allocations: 30.81 MB / 0.8229 GB, free: 14.19 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002009/0.9612, allocations: 211 kB / 0.8231 GB, free: 13.96 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.051/4.012, allocations: 0 / 0.8231 GB, free: 13.96 MB / 0.5573 GB (rm -f OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; mkfifo OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; head -c 1048576 < OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe >> ../files/OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_2_0_0_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_2_0_0_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous.fmu > OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe 2>&1)