Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_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.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_Discrete,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete,fileNamePrefix="OpenIPSL_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.007079/0.007079, allocations: 168.2 kB / 15.11 MB, free: 5.969 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.478/1.478, allocations: 223.2 MB / 239 MB, free: 80 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001034/0.001034, allocations: 103.6 kB / 290.2 MB, free: 4.539 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.477/0.477, allocations: 78.51 MB / 419.8 MB, free: 36.36 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003857/0.0003857, allocations: 12 kB / 499.8 MB, free: 7.008 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1507/0.1511, allocations: 69.36 MB / 0.5558 GB, free: 1.672 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4266/0.5778, allocations: 97.71 MB / 0.6512 GB, free: 4.496 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002468/0.5781, allocations: 86.83 kB / 0.6513 GB, free: 4.449 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0856/0.6637, allocations: 32.85 MB / 0.6834 GB, free: 3.992 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.394e-06/0.6637, allocations: 0 / 0.6834 GB, free: 3.992 MB / 474.7 MB Notification: Performance of Transformations before backend: time 5.852e-05/0.6638, allocations: 29.34 kB / 0.6834 GB, free: 3.965 MB / 474.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.004732/0.6686, allocations: 1.826 MB / 0.6852 GB, free: 2.09 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.068e-05/0.6686, allocations: 8.031 kB / 0.6852 GB, free: 2.082 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002427/0.6689, allocations: 125.1 kB / 0.6853 GB, free: 1.953 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003411/0.6723, allocations: 0.5565 MB / 0.6859 GB, free: 1.395 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001628/0.6739, allocations: 0.7123 MB / 0.6866 GB, free: 0.6289 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003021/0.6742, allocations: 264.2 kB / 0.6868 GB, free: 340 kB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001469/0.6744, allocations: 71.91 kB / 0.6869 GB, free: 268 kB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002547/0.677, allocations: 1.24 MB / 0.6881 GB, free: 15 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.759e-05/0.677, allocations: 0 / 0.6881 GB, free: 15 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.788e-05/0.6771, allocations: 24 kB / 0.6881 GB, free: 14.97 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.622e-05/0.6771, allocations: 20 kB / 0.6881 GB, free: 14.95 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002106/0.6792, allocations: 1.016 MB / 0.6891 GB, free: 13.93 MB / 490.7 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.006221/0.6855, allocations: 3.523 MB / 0.6926 GB, free: 10.22 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007691/0.6932, allocations: 2.839 MB / 0.6954 GB, free: 7.285 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001862/0.6934, allocations: 23.81 kB / 0.6954 GB, free: 7.266 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.965e-05/0.6935, allocations: 43.22 kB / 0.6954 GB, free: 7.215 MB / 490.7 MB Notification: Performance of pre-optimization done (n=92): time 3.537e-06/0.6935, allocations: 0 / 0.6954 GB, free: 7.215 MB / 490.7 MB Notification: Performance of matching and sorting (n=92): time 0.02852/0.722, allocations: 8.158 MB / 0.7034 GB, free: 15 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001303/0.7222, allocations: 97.77 kB / 0.7035 GB, free: 14.89 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001346/0.7235, allocations: 0.8082 MB / 0.7043 GB, free: 14.06 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001936/0.7237, allocations: 37.7 kB / 0.7043 GB, free: 14.02 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003966/0.7241, allocations: 481 kB / 0.7048 GB, free: 13.54 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003595/0.7245, allocations: 303.6 kB / 0.7051 GB, free: 13.24 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.967e-05/0.7246, allocations: 16 kB / 0.7051 GB, free: 13.23 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001424/0.7247, allocations: 345.9 kB / 0.7054 GB, free: 12.88 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001215/0.7259, allocations: 0.5759 MB / 0.706 GB, free: 12.31 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001341/0.7273, allocations: 0.7559 MB / 0.7067 GB, free: 11.48 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001322/0.7286, allocations: 0.6374 MB / 0.7073 GB, free: 10.84 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.673e-06/0.7286, allocations: 4 kB / 0.7073 GB, free: 10.84 MB / 0.4948 GB Notification: Performance of matching and sorting (n=113) (initialization): time 0.01316/0.7418, allocations: 4.493 MB / 0.7117 GB, free: 6.336 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 3.469e-05/0.7419, allocations: 8 kB / 0.7117 GB, free: 6.328 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.763e-05/0.7419, allocations: 8 kB / 0.7117 GB, free: 6.32 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006031/0.748, allocations: 1.847 MB / 0.7135 GB, free: 4.469 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007405/0.7487, allocations: 139.8 kB / 0.7137 GB, free: 4.332 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02054/0.7693, allocations: 9.216 MB / 0.7227 GB, free: 10.98 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001508/0.7708, allocations: 177.3 kB / 0.7228 GB, free: 10.81 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.445e-05/0.7709, allocations: 31.98 kB / 0.7229 GB, free: 10.78 MB / 0.5105 GB Warning: Assuming fixed start value for the following 4 variables: order4.w:VARIABLE(start = 1.0 fixed = true ) "Rotor speed [pu]" 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 order4.delta:VARIABLE(start = order4.delta0 unit = "rad" fixed = true ) "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 () * Number of clocked states: 4 (aVRTypeII.vf,aVRTypeII.vr2,aVRTypeII.vr1,aVRTypeII.vm) * 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.0005851/0.7715, allocations: 240.4 kB / 0.7231 GB, free: 10.54 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001052/0.7726, allocations: 364.7 kB / 0.7234 GB, free: 10.17 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01256/0.7851, allocations: 4.428 MB / 0.7278 GB, free: 5.723 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.173e-05/0.7852, allocations: 16 kB / 0.7278 GB, free: 5.707 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.233e-05/0.7852, allocations: 4 kB / 0.7278 GB, free: 5.703 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.109e-05/0.7853, allocations: 7.984 kB / 0.7278 GB, free: 5.695 MB / 0.5105 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.01492/0.8002, allocations: 5.796 MB / 0.7334 GB, free: 15.78 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.559e-05/0.8003, allocations: 0 / 0.7334 GB, free: 15.78 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007438/0.801, allocations: 107.8 kB / 0.7336 GB, free: 15.68 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005826/0.8069, allocations: 1.864 MB / 0.7354 GB, free: 13.8 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002124/0.8071, allocations: 21 kB / 0.7354 GB, free: 13.79 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02006/0.8272, allocations: 11.21 MB / 0.7463 GB, free: 2.246 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.539e-06/0.8272, allocations: 3.953 kB / 0.7463 GB, free: 2.242 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01543/0.8427, allocations: 5.537 MB / 0.7518 GB, free: 12.67 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005521/0.8433, allocations: 211.4 kB / 0.752 GB, free: 12.45 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002294/0.8435, allocations: 27.95 kB / 0.752 GB, free: 12.42 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001059/0.8446, allocations: 123.9 kB / 0.7521 GB, free: 12.3 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005585/0.8452, allocations: 168.7 kB / 0.7523 GB, free: 12.13 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.175e-05/0.8453, allocations: 25.22 kB / 0.7523 GB, free: 12.11 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0009055/0.8462, allocations: 0.6317 MB / 0.7529 GB, free: 11.47 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.9e-07/0.8462, allocations: 4 kB / 0.7529 GB, free: 11.46 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.001417/0.8476, allocations: 403.6 kB / 0.7533 GB, free: 11.07 MB / 0.5417 GB 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 () * Number of clocked states: 4 (aVRTypeII.vm,aVRTypeII.vr1,aVRTypeII.vr2,aVRTypeII.vf) * 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 {(19,24.4%) 13} * Non-linear torn systems: 1 {3 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.01544/0.8631, allocations: 6.209 MB / 0.7594 GB, free: 4.816 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.005706/0.8688, allocations: 2.26 MB / 0.7616 GB, free: 2.555 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.8688, allocations: 0 / 0.7616 GB, free: 2.555 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.004027/0.8729, allocations: 1.517 MB / 0.763 GB, free: 1.027 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001524/0.8744, allocations: 359 kB / 0.7634 GB, free: 0.6641 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0249/0.8994, allocations: 14.09 MB / 0.7771 GB, free: 2.18 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006409/0.9001, allocations: 1.096 MB / 0.7782 GB, free: 1.055 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0004052/0.9005, allocations: 82.02 kB / 0.7783 GB, free: 0.9727 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005725/0.9011, allocations: 419.3 kB / 0.7787 GB, free: 0.5664 MB / 0.5573 GB Notification: Performance of SimCode: time 5.71e-07/0.9011, allocations: 4.188 kB / 0.7787 GB, free: 0.5625 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2802/1.181, allocations: 28.08 MB / 0.8061 GB, free: 158.1 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001565/1.181, allocations: 233.8 kB / 0.8063 GB, free: 157.9 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.947/4.128, allocations: 3.5 kB / 0.8063 GB, free: 157.9 MB / 0.573 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=0.001 OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe 2>&1)