Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.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.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 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_Discrete,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete",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.0009363/0.0009363, allocations: 174.5 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.181/1.181, allocations: 221.4 MB / 234.6 MB, free: 14.44 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.0009249/0.000925, allocations: 97.73 kB / 285.6 MB, free: 12.97 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4309/0.4309, allocations: 78.92 MB / 415.4 MB, free: 10.22 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.653e-05/2.659e-05, allocations: 8 kB / 492.9 MB, free: 12.98 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2972/0.2972, allocations: 69.49 MB / 0.5492 GB, free: 19.61 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1119/0.4092, allocations: 98.33 MB / 0.6452 GB, free: 1.242 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002022/0.4094, allocations: 87.47 kB / 0.6453 GB, free: 1.16 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3415/0.751, allocations: 33.36 MB / 0.6779 GB, free: 106.2 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.744e-06/0.751, allocations: 0 / 0.6779 GB, free: 106.2 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001316/0.7512, allocations: 23.5 kB / 0.6779 GB, free: 106.2 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: 178 * Number of variables: 178 Notification: Performance of Generate backend data structure: time 0.004927/0.7561, allocations: 1.569 MB / 0.6795 GB, free: 105.8 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.509e-05/0.7561, allocations: 16.16 kB / 0.6795 GB, free: 105.8 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003199/0.7565, allocations: 119.5 kB / 0.6796 GB, free: 105.7 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003579/0.7601, allocations: 0.5526 MB / 0.6801 GB, free: 105.7 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001316/0.7614, allocations: 0.7012 MB / 0.6808 GB, free: 105.3 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002582/0.7617, allocations: 265.1 kB / 0.6811 GB, free: 105.2 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001405/0.7618, allocations: 69.44 kB / 0.6811 GB, free: 105.2 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001742/0.7636, allocations: 1 MB / 0.6821 GB, free: 105 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.636e-05/0.7636, allocations: 0 / 0.6821 GB, free: 105 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.233e-05/0.7637, allocations: 30.66 kB / 0.6821 GB, free: 105 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.786e-05/0.7637, allocations: 17.09 kB / 0.6821 GB, free: 105 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001395/0.7651, allocations: 0.7923 MB / 0.6829 GB, free: 105 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.005777/0.7709, allocations: 3.545 MB / 0.6864 GB, free: 103.8 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006664/0.7776, allocations: 2.573 MB / 0.6889 GB, free: 103.4 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000631/0.7782, allocations: 0.5143 MB / 0.6894 GB, free: 103.4 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001008/0.7783, allocations: 23.83 kB / 0.6894 GB, free: 103.4 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.904e-05/0.7783, allocations: 45.05 kB / 0.6895 GB, free: 103.4 MB / 490.7 MB Notification: Performance of pre-optimization done (n=92): time 2.114e-06/0.7783, allocations: 0 / 0.6895 GB, free: 103.4 MB / 490.7 MB Notification: Performance of matching and sorting (n=92): time 0.01061/0.789, allocations: 3.915 MB / 0.6933 GB, free: 103.1 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.683e-05/0.789, allocations: 101.3 kB / 0.6934 GB, free: 103 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007696/0.7898, allocations: 0.7905 MB / 0.6942 GB, free: 102.8 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 6.38e-05/0.7899, allocations: 40.2 kB / 0.6942 GB, free: 102.8 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002155/0.7901, allocations: 479.1 kB / 0.6946 GB, free: 102.4 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001812/0.7903, allocations: 299.5 kB / 0.6949 GB, free: 102.2 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.388e-05/0.7903, allocations: 15.38 kB / 0.6949 GB, free: 102.2 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 5.894e-05/0.7904, allocations: 344 kB / 0.6953 GB, free: 101.9 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005363/0.7909, allocations: 393.1 kB / 0.6957 GB, free: 101.7 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006058/0.7916, allocations: 0.5614 MB / 0.6962 GB, free: 101.3 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005896/0.7922, allocations: 447.5 kB / 0.6966 GB, free: 101.1 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.7922, allocations: 3.188 kB / 0.6966 GB, free: 101.1 MB / 490.7 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.01029/0.8025, allocations: 3.913 MB / 0.7005 GB, free: 100.3 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.244e-05/0.8025, allocations: 9.25 kB / 0.7005 GB, free: 100.3 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.19e-05/0.8025, allocations: 2.781 kB / 0.7005 GB, free: 100.3 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004427/0.8069, allocations: 1.464 MB / 0.7019 GB, free: 100 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000554/0.8075, allocations: 147.8 kB / 0.702 GB, free: 100 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01101/0.8185, allocations: 6.558 MB / 0.7084 GB, free: 95.14 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001136/0.8197, allocations: 172.7 kB / 0.7086 GB, free: 95 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.195e-05/0.8198, allocations: 28 kB / 0.7086 GB, free: 94.97 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 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: 23 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * 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 {18 14} Notification: Performance of prepare postOptimizeDAE: time 0.0001989/0.82, allocations: 168.3 kB / 0.7088 GB, free: 94.81 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007313/0.8207, allocations: 322.8 kB / 0.7091 GB, free: 94.53 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009776/0.8305, allocations: 3.849 MB / 0.7129 GB, free: 91.54 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.8305, allocations: 8 kB / 0.7129 GB, free: 91.53 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.8305, allocations: 8 kB / 0.7129 GB, free: 91.52 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.598e-06/0.8305, allocations: 2.906 kB / 0.7129 GB, free: 91.52 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.01076/0.8413, allocations: 5.239 MB / 0.718 GB, free: 87.36 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.8413, allocations: 0 / 0.718 GB, free: 87.36 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004952/0.8418, allocations: 109.3 kB / 0.7181 GB, free: 87.27 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003951/0.8458, allocations: 1.473 MB / 0.7195 GB, free: 86.09 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.208e-05/0.8459, allocations: 19.84 kB / 0.7196 GB, free: 86.08 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01061/0.8565, allocations: 8.834 MB / 0.7282 GB, free: 77.58 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.8565, allocations: 0.7031 kB / 0.7282 GB, free: 77.58 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01088/0.8674, allocations: 4.709 MB / 0.7328 GB, free: 72.88 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002664/0.8677, allocations: 219.5 kB / 0.733 GB, free: 72.65 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001361/0.8678, allocations: 16 kB / 0.733 GB, free: 72.63 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000898/0.8687, allocations: 123.9 kB / 0.7331 GB, free: 72.51 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003772/0.8691, allocations: 168.5 kB / 0.7333 GB, free: 72.34 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.686e-05/0.8692, allocations: 27.98 kB / 0.7333 GB, free: 72.32 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0006053/0.8698, allocations: 0.6169 MB / 0.7339 GB, free: 71.69 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.8698, allocations: 0 / 0.7339 GB, free: 71.69 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0009447/0.8708, allocations: 411.5 kB / 0.7343 GB, free: 71.29 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (61): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * 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 {(20,23.0%) 12} * Non-linear torn systems: 1 {3 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.01126/0.882, allocations: 5.384 MB / 0.7396 GB, free: 65.86 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.003847/0.8859, allocations: 1.825 MB / 0.7413 GB, free: 64.03 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.8859, allocations: 0 / 0.7413 GB, free: 64.03 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003005/0.8889, allocations: 1.321 MB / 0.7426 GB, free: 62.7 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009321/0.8898, allocations: 338.9 kB / 0.743 GB, free: 62.35 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002723/0.8926, allocations: 1.765 MB / 0.7447 GB, free: 60.57 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003251/0.8929, allocations: 1.104 MB / 0.7458 GB, free: 59.44 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0002557/0.8932, allocations: 77.5 kB / 0.7458 GB, free: 59.37 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003916/0.8936, allocations: 423.3 kB / 0.7462 GB, free: 58.95 MB / 490.7 MB Notification: Performance of SimCode: time 2.41e-07/0.8936, allocations: 4 kB / 0.7462 GB, free: 58.95 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03587/0.9295, allocations: 27.97 MB / 0.7736 GB, free: 31.48 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001654/0.9297, allocations: 207.1 kB / 0.7738 GB, free: 31.25 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.611/3.54, allocations: 4.75 kB / 0.7738 GB, free: 31.25 MB / 490.7 MB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=0.001 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe 2>&1)