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.0009113/0.0009114, allocations: 176.2 kB / 7.649 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.237/1.237, allocations: 221.5 MB / 229.6 MB, free: 7.582 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.0008904/0.0008905, allocations: 89.72 kB / 280.5 MB, free: 5.336 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4481/0.4481, allocations: 78.07 MB / 409.3 MB, free: 6.359 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.576e-05/1.579e-05, allocations: 4 kB / 485 MB, free: 12.2 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1175/0.1176, allocations: 69.36 MB / 0.5414 GB, free: 6.766 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3606/0.4782, allocations: 96.97 MB / 0.6361 GB, free: 2.531 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002165/0.4784, allocations: 79.95 kB / 0.6362 GB, free: 2.453 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08446/0.5629, allocations: 32.36 MB / 0.6678 GB, free: 2.082 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.5629, allocations: 4 kB / 0.6678 GB, free: 2.078 MB / 474.7 MB Notification: Performance of Transformations before backend: time 4.693e-05/0.563, allocations: 24 kB / 0.6678 GB, free: 2.055 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.003629/0.5666, allocations: 1.581 MB / 0.6693 GB, free: 440 kB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.643e-05/0.5667, allocations: 8.031 kB / 0.6693 GB, free: 432 kB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00312/0.5698, allocations: 0.5486 MB / 0.6699 GB, free: 15.87 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001052/0.5709, allocations: 0.7094 MB / 0.6706 GB, free: 15.11 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002545/0.5711, allocations: 236.2 kB / 0.6708 GB, free: 14.84 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001111/0.5713, allocations: 47.91 kB / 0.6708 GB, free: 14.8 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001232/0.5725, allocations: 0.7499 MB / 0.6716 GB, free: 14.05 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001434/0.5739, allocations: 0.8945 MB / 0.6724 GB, free: 13.13 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.605e-05/0.574, allocations: 0 / 0.6724 GB, free: 13.13 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.236e-05/0.574, allocations: 0 / 0.6724 GB, free: 13.13 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.698e-05/0.5741, allocations: 18.38 kB / 0.6725 GB, free: 13.11 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.005233/0.5793, allocations: 3.393 MB / 0.6758 GB, free: 9.543 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00698/0.5863, allocations: 2.535 MB / 0.6783 GB, free: 6.918 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007837/0.5871, allocations: 0.4883 MB / 0.6787 GB, free: 6.426 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001123/0.5872, allocations: 26.28 kB / 0.6788 GB, free: 6.402 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.668e-05/0.5873, allocations: 47.34 kB / 0.6788 GB, free: 6.348 MB / 490.7 MB Notification: Performance of pre-optimization done (n=92): time 2.625e-06/0.5873, allocations: 0 / 0.6788 GB, free: 6.348 MB / 490.7 MB Notification: Performance of matching and sorting (n=92): time 0.01204/0.5993, allocations: 3.848 MB / 0.6826 GB, free: 2.48 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000113/0.5995, allocations: 93.89 kB / 0.6826 GB, free: 2.371 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001137/0.6006, allocations: 0.7171 MB / 0.6833 GB, free: 1.637 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001564/0.6008, allocations: 25.7 kB / 0.6834 GB, free: 1.605 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003254/0.6011, allocations: 484.7 kB / 0.6838 GB, free: 1.125 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002969/0.6014, allocations: 291.7 kB / 0.6841 GB, free: 0.8359 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.655e-05/0.6015, allocations: 0 / 0.6841 GB, free: 0.8359 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001194/0.6016, allocations: 337.9 kB / 0.6844 GB, free: 0.5 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005704/0.6022, allocations: 378.5 kB / 0.6848 GB, free: 136 kB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006873/0.6029, allocations: 0.5381 MB / 0.6853 GB, free: 15.52 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006328/0.6035, allocations: 434.8 kB / 0.6857 GB, free: 15.1 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.6035, allocations: 0 / 0.6857 GB, free: 15.1 MB / 0.4948 GB Notification: Performance of matching and sorting (n=113) (initialization): time 0.01168/0.6152, allocations: 3.817 MB / 0.6895 GB, free: 11.27 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.641e-05/0.6153, allocations: 9.719 kB / 0.6895 GB, free: 11.26 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.529e-05/0.6153, allocations: 13.33 kB / 0.6895 GB, free: 11.25 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004909/0.6202, allocations: 1.441 MB / 0.6909 GB, free: 9.801 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006373/0.6209, allocations: 143.8 kB / 0.691 GB, free: 9.66 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01211/0.633, allocations: 6.388 MB / 0.6973 GB, free: 3.145 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001176/0.6342, allocations: 147.3 kB / 0.6974 GB, free: 3 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.496e-05/0.6343, allocations: 39.98 kB / 0.6974 GB, free: 2.961 MB / 0.4948 GB 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.0002757/0.6346, allocations: 134.6 kB / 0.6976 GB, free: 2.824 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01145/0.646, allocations: 3.854 MB / 0.7013 GB, free: 14.96 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001927/0.6462, allocations: 114.6 kB / 0.7014 GB, free: 14.84 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01111/0.6573, allocations: 3.763 MB / 0.7051 GB, free: 11.06 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.229e-05/0.6574, allocations: 12 kB / 0.7051 GB, free: 11.05 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.724e-06/0.6574, allocations: 4 kB / 0.7051 GB, free: 11.05 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.611e-05/0.6574, allocations: 7.984 kB / 0.7051 GB, free: 11.04 MB / 0.5105 GB 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.0126/0.67, allocations: 5.075 MB / 0.7101 GB, free: 5.863 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/0.67, allocations: 1.031 kB / 0.7101 GB, free: 5.863 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005747/0.6706, allocations: 107.8 kB / 0.7102 GB, free: 5.758 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00455/0.6752, allocations: 1.442 MB / 0.7116 GB, free: 4.309 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.662e-05/0.6753, allocations: 8 kB / 0.7116 GB, free: 4.301 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01263/0.6879, allocations: 8.698 MB / 0.7201 GB, free: 11.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.6879, allocations: 0 / 0.7201 GB, free: 11.3 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01299/0.7009, allocations: 4.623 MB / 0.7246 GB, free: 6.652 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004436/0.7014, allocations: 211.4 kB / 0.7248 GB, free: 6.426 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001591/0.7016, allocations: 4 kB / 0.7248 GB, free: 6.422 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009975/0.7026, allocations: 111.9 kB / 0.7249 GB, free: 6.312 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004848/0.7031, allocations: 172.4 kB / 0.7251 GB, free: 6.145 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.767e-05/0.7032, allocations: 24.84 kB / 0.7251 GB, free: 6.121 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0007117/0.7039, allocations: 0.5567 MB / 0.7257 GB, free: 5.555 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.9e-07/0.7039, allocations: 3.938 kB / 0.7257 GB, free: 5.551 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.001142/0.705, allocations: 363.5 kB / 0.726 GB, free: 5.195 MB / 0.5261 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 () * 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.01298/0.718, allocations: 5.286 MB / 0.7312 GB, free: 15.86 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.004415/0.7225, allocations: 1.756 MB / 0.7329 GB, free: 14.1 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 4.137e-06/0.7225, allocations: 0 / 0.7329 GB, free: 14.1 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.003487/0.726, allocations: 1.269 MB / 0.7341 GB, free: 12.83 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001332/0.7273, allocations: 315.5 kB / 0.7344 GB, free: 12.51 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003372/0.7307, allocations: 1.693 MB / 0.7361 GB, free: 10.78 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005628/0.7313, allocations: 1.096 MB / 0.7372 GB, free: 9.66 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0003051/0.7316, allocations: 79.44 kB / 0.7372 GB, free: 9.582 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004983/0.7321, allocations: 420.5 kB / 0.7376 GB, free: 9.172 MB / 0.5417 GB Notification: Performance of SimCode: time 5.11e-07/0.7321, allocations: 0 / 0.7376 GB, free: 9.172 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.279/1.011, allocations: 26 MB / 0.763 GB, free: 147.6 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001261/1.011, allocations: 159.7 kB / 0.7632 GB, free: 147.4 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.584/3.595, allocations: 0 / 0.7632 GB, free: 147.4 MB / 0.5573 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)