Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_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_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete,fileNamePrefix="OpenIPSL_release_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.005982/0.005982, allocations: 173.2 kB / 15.12 MB, free: 5.973 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.33/1.33, allocations: 223.2 MB / 239 MB, free: 1.789 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.0009636/0.0009633, allocations: 88.02 kB / 290.2 MB, free: 13.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4772/0.4772, allocations: 78.59 MB / 419.9 MB, free: 44.2 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000345/0.0003449, allocations: 16 kB / 499.9 MB, free: 2.859 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3628/0.3631, allocations: 69.35 MB / 0.5559 GB, free: 38.85 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1225/0.4857, allocations: 97.71 MB / 0.6513 GB, free: 8.789 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000347/0.4861, allocations: 79.95 kB / 0.6514 GB, free: 8.711 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08678/0.5729, allocations: 32.86 MB / 0.6835 GB, free: 7.648 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.136e-06/0.5729, allocations: 7.938 kB / 0.6835 GB, free: 7.641 MB / 490.7 MB Notification: Performance of Transformations before backend: time 5.146e-05/0.573, allocations: 20 kB / 0.6835 GB, free: 7.621 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.004422/0.5774, allocations: 1.826 MB / 0.6853 GB, free: 5.742 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/0.5775, allocations: 8.031 kB / 0.6853 GB, free: 5.734 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001553/0.5776, allocations: 118.5 kB / 0.6854 GB, free: 5.609 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003315/0.5809, allocations: 0.5526 MB / 0.6859 GB, free: 5.055 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001187/0.5821, allocations: 0.7084 MB / 0.6866 GB, free: 4.293 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002793/0.5824, allocations: 272.1 kB / 0.6869 GB, free: 3.988 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000135/0.5826, allocations: 75.91 kB / 0.6869 GB, free: 3.914 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002332/0.5849, allocations: 1.23 MB / 0.6881 GB, free: 2.66 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.653e-05/0.5849, allocations: 0 / 0.6881 GB, free: 2.66 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001164/0.5851, allocations: 28 kB / 0.6882 GB, free: 2.633 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.654e-05/0.5851, allocations: 20 kB / 0.6882 GB, free: 2.613 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001961/0.5871, allocations: 1.02 MB / 0.6892 GB, free: 1.59 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.005618/0.5927, allocations: 3.516 MB / 0.6926 GB, free: 13.88 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007898/0.6006, allocations: 2.851 MB / 0.6954 GB, free: 10.94 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001053/0.6007, allocations: 12.64 kB / 0.6954 GB, free: 10.93 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.703e-05/0.6008, allocations: 43.22 kB / 0.6955 GB, free: 10.88 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=92): time 2.304e-06/0.6008, allocations: 0 / 0.6955 GB, free: 10.88 MB / 0.4948 GB Notification: Performance of matching and sorting (n=92): time 0.02953/0.6303, allocations: 8.158 MB / 0.7034 GB, free: 2.656 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.62e-05/0.6304, allocations: 97.75 kB / 0.7035 GB, free: 2.543 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001208/0.6317, allocations: 0.8121 MB / 0.7043 GB, free: 1.715 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001313/0.6318, allocations: 41.7 kB / 0.7044 GB, free: 1.668 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003393/0.6321, allocations: 477 kB / 0.7048 GB, free: 1.195 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003058/0.6325, allocations: 299.6 kB / 0.7051 GB, free: 0.8984 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.452e-05/0.6325, allocations: 20 kB / 0.7051 GB, free: 0.8789 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001133/0.6326, allocations: 341.9 kB / 0.7054 GB, free: 0.5391 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001219/0.6339, allocations: 0.5798 MB / 0.706 GB, free: 15.96 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001264/0.6351, allocations: 0.7565 MB / 0.7067 GB, free: 15.13 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001236/0.6364, allocations: 0.6374 MB / 0.7074 GB, free: 14.5 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.6364, allocations: 4 kB / 0.7074 GB, free: 14.49 MB / 0.5105 GB Notification: Performance of matching and sorting (n=113) (initialization): time 0.01335/0.6498, allocations: 4.493 MB / 0.7118 GB, free: 9.988 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.977e-05/0.6498, allocations: 8 kB / 0.7118 GB, free: 9.98 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.564e-05/0.6498, allocations: 4 kB / 0.7118 GB, free: 9.977 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006031/0.6559, allocations: 1.851 MB / 0.7136 GB, free: 8.121 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000726/0.6566, allocations: 143.8 kB / 0.7137 GB, free: 7.98 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0199/0.6765, allocations: 9.222 MB / 0.7227 GB, free: 14.62 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001367/0.6779, allocations: 167.3 kB / 0.7229 GB, free: 14.46 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.024e-05/0.678, allocations: 39.98 kB / 0.7229 GB, free: 14.42 MB / 0.5261 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.0005192/0.6786, allocations: 248.3 kB / 0.7232 GB, free: 14.17 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009727/0.6795, allocations: 364.7 kB / 0.7235 GB, free: 13.8 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01252/0.6921, allocations: 4.428 MB / 0.7278 GB, free: 9.355 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.237e-05/0.6921, allocations: 8 kB / 0.7278 GB, free: 9.348 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.091e-05/0.6921, allocations: 11.94 kB / 0.7278 GB, free: 9.336 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.381e-05/0.6921, allocations: 7.984 kB / 0.7279 GB, free: 9.328 MB / 0.5261 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.01405/0.7062, allocations: 5.796 MB / 0.7335 GB, free: 3.418 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-05/0.7063, allocations: 7.984 kB / 0.7335 GB, free: 3.41 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007076/0.707, allocations: 107.9 kB / 0.7336 GB, free: 3.305 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005583/0.7126, allocations: 1.86 MB / 0.7354 GB, free: 1.438 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001469/0.7127, allocations: 19.98 kB / 0.7355 GB, free: 1.418 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01933/0.7321, allocations: 11.21 MB / 0.7464 GB, free: 5.879 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.08e-06/0.7321, allocations: 7.953 kB / 0.7464 GB, free: 5.871 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01516/0.7473, allocations: 5.533 MB / 0.7518 GB, free: 312 kB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005023/0.7478, allocations: 219.4 kB / 0.752 GB, free: 72 kB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001498/0.748, allocations: 23.95 kB / 0.752 GB, free: 48 kB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001016/0.749, allocations: 119.9 kB / 0.7522 GB, free: 15.93 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005553/0.7496, allocations: 176.6 kB / 0.7523 GB, free: 15.76 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.577e-05/0.7497, allocations: 27.98 kB / 0.7524 GB, free: 15.73 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.000846/0.7505, allocations: 0.6278 MB / 0.753 GB, free: 15.09 MB / 0.5573 GB Notification: Performance of sort global known variables: time 2.31e-07/0.7505, allocations: 0 / 0.753 GB, free: 15.09 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.001169/0.7517, allocations: 399.6 kB / 0.7533 GB, free: 14.7 MB / 0.5573 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.01513/0.7668, allocations: 6.221 MB / 0.7594 GB, free: 8.438 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.005388/0.7723, allocations: 2.247 MB / 0.7616 GB, free: 6.18 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.7723, allocations: 3.938 kB / 0.7616 GB, free: 6.176 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.003798/0.7761, allocations: 1.512 MB / 0.7631 GB, free: 4.648 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001339/0.7774, allocations: 369.8 kB / 0.7635 GB, free: 4.277 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2372/1.015, allocations: 14.07 MB / 0.7772 GB, free: 146.3 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004144/1.015, allocations: 1.1 MB / 0.7783 GB, free: 145.6 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0003194/1.015, allocations: 79.8 kB / 0.7783 GB, free: 145.6 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004697/1.016, allocations: 420.8 kB / 0.7787 GB, free: 145.6 MB / 0.5573 GB Notification: Performance of SimCode: time 7.42e-07/1.016, allocations: 0 / 0.7787 GB, free: 145.6 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04646/1.062, allocations: 28.1 MB / 0.8062 GB, free: 144.5 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001488/1.063, allocations: 241.1 kB / 0.8064 GB, free: 144.2 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.734/3.797, allocations: 0 / 0.8064 GB, free: 144.2 MB / 0.5573 GB (rm -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; mkfifo OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; head -c 1048576 < OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe >> ../files/OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=0.001 OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete.fmu > OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe 2>&1)