Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.003992/0.003991, allocations: 362.5 kB / 15.95 MB, free: 6.203 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 3.959/3.959, allocations: 388.9 MB / 405.6 MB, free: 10.32 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.004396/0.004395, allocations: 220.5 kB / 451 MB, free: 145.1 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.5803/0.5803, allocations: 80.02 MB / 0.5627 GB, free: 19.86 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004796/0.0004799, allocations: 15.98 kB / 0.6265 GB, free: 96.56 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.101, allocations: 54.86 MB / 0.6801 GB, free: 41.68 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4426/0.5436, allocations: 80.51 MB / 0.7587 GB, free: 4.758 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002169/0.5439, allocations: 66.78 kB / 0.7588 GB, free: 4.723 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04806/0.592, allocations: 8.207 MB / 0.7668 GB, free: 13.64 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.592, allocations: 0 / 0.7668 GB, free: 13.64 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.57e-06/0.5921, allocations: 0 / 0.7668 GB, free: 13.64 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004573/0.5925, allocations: 354.4 kB / 0.7671 GB, free: 13.25 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.331e-05/0.5926, allocations: 12.03 kB / 0.7671 GB, free: 13.24 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.235e-05/0.5926, allocations: 3.953 kB / 0.7671 GB, free: 13.23 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001075/0.5928, allocations: 162.9 kB / 0.7673 GB, free: 13.04 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.428e-05/0.5928, allocations: 0 / 0.7673 GB, free: 13.04 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.501e-05/0.5928, allocations: 8 kB / 0.7673 GB, free: 13.03 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001332/0.593, allocations: 37.62 kB / 0.7673 GB, free: 12.99 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.327e-06/0.593, allocations: 0 / 0.7673 GB, free: 12.99 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.213e-05/0.593, allocations: 0 / 0.7673 GB, free: 12.99 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.711e-06/0.593, allocations: 0 / 0.7673 GB, free: 12.99 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.613e-05/0.5931, allocations: 7.953 kB / 0.7673 GB, free: 12.98 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004478/0.5935, allocations: 248 kB / 0.7676 GB, free: 12.7 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.482e-05/0.5936, allocations: 26.52 kB / 0.7676 GB, free: 12.66 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.496e-05/0.5936, allocations: 4.859 kB / 0.7676 GB, free: 12.66 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.53e-05/0.5937, allocations: 0 / 0.7676 GB, free: 12.66 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.536e-05/0.5937, allocations: 42.06 kB / 0.7676 GB, free: 12.61 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.503e-06/0.5937, allocations: 0 / 0.7676 GB, free: 12.61 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001761/0.5939, allocations: 37.59 kB / 0.7677 GB, free: 12.57 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.601e-05/0.594, allocations: 59.39 kB / 0.7677 GB, free: 12.5 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.273e-05/0.594, allocations: 96.8 kB / 0.7678 GB, free: 12.39 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.561e-05/0.5941, allocations: 25.7 kB / 0.7679 GB, free: 12.36 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.167e-05/0.5941, allocations: 88.05 kB / 0.7679 GB, free: 12.27 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.766e-06/0.5942, allocations: 3.906 kB / 0.7679 GB, free: 12.27 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.677e-06/0.5942, allocations: 0 / 0.7679 GB, free: 12.27 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001151/0.5943, allocations: 314.4 kB / 0.7682 GB, free: 11.96 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.139e-05/0.5943, allocations: 7.984 kB / 0.7682 GB, free: 11.95 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.904e-05/0.5944, allocations: 18.7 kB / 0.7683 GB, free: 11.92 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.542e-05/0.5944, allocations: 4 kB / 0.7683 GB, free: 11.92 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.5944, allocations: 0 / 0.7683 GB, free: 11.92 MB / 362.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001054/0.5945, allocations: 52.69 kB / 0.7683 GB, free: 11.86 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.5946, allocations: 4 kB / 0.7683 GB, free: 11.86 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.698e-05/0.5946, allocations: 3.875 kB / 0.7683 GB, free: 11.86 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.835e-05/0.5946, allocations: 7.953 kB / 0.7683 GB, free: 11.85 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.368e-05/0.5947, allocations: 4.094 kB / 0.7683 GB, free: 11.85 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.602e-06/0.5947, allocations: 7.938 kB / 0.7683 GB, free: 11.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.061e-05/0.5948, allocations: 3.938 kB / 0.7684 GB, free: 11.84 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.338e-05/0.5948, allocations: 8.484 kB / 0.7684 GB, free: 11.83 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.702e-05/0.5949, allocations: 106.6 kB / 0.7685 GB, free: 11.71 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.706e-05/0.5949, allocations: 0 / 0.7685 GB, free: 11.71 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001461/0.5951, allocations: 48.02 kB / 0.7685 GB, free: 11.67 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.623e-06/0.5951, allocations: 7.984 kB / 0.7685 GB, free: 11.66 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.5951, allocations: 0 / 0.7685 GB, free: 11.66 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.5951, allocations: 4 kB / 0.7685 GB, free: 11.66 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001784/0.5953, allocations: 145.7 kB / 0.7687 GB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.64e-06/0.5953, allocations: 0 / 0.7687 GB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.022e-06/0.5953, allocations: 0 / 0.7687 GB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.5953, allocations: 4 kB / 0.7687 GB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.782e-06/0.5953, allocations: 3.938 kB / 0.7687 GB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.5954, allocations: 0 / 0.7687 GB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/0.5954, allocations: 3.953 kB / 0.7687 GB, free: 11.45 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001161/0.5955, allocations: 134.9 kB / 0.7688 GB, free: 11.31 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.597e-05/0.5956, allocations: 77.11 kB / 0.7689 GB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.33e-05/0.5956, allocations: 0 / 0.7689 GB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.805e-05/0.5957, allocations: 4 kB / 0.7689 GB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.378e-05/0.5957, allocations: 3.812 kB / 0.7689 GB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.835e-06/0.5957, allocations: 3.953 kB / 0.7689 GB, free: 11.21 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.416e-05/0.5958, allocations: 83.27 kB / 0.769 GB, free: 11.12 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.5958, allocations: 4.125 kB / 0.769 GB, free: 11.12 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004697/0.5962, allocations: 47.94 kB / 0.769 GB, free: 11.07 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003952/0.5967, allocations: 150.5 kB / 0.7692 GB, free: 10.92 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00012/0.5968, allocations: 33.64 kB / 0.7692 GB, free: 10.88 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.5968, allocations: 4 kB / 0.7692 GB, free: 10.88 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.6e-05/0.5968, allocations: 25.7 kB / 0.7692 GB, free: 10.85 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002786/0.5971, allocations: 7.312 kB / 0.7692 GB, free: 10.84 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000304/0.5974, allocations: 95.34 kB / 0.7693 GB, free: 10.72 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002505/0.5977, allocations: 0.6731 MB / 0.77 GB, free: 10.02 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.139e-05/0.5978, allocations: 3.984 kB / 0.77 GB, free: 10.02 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.657e-05/0.5978, allocations: 7.438 kB / 0.77 GB, free: 10.01 MB / 362.7 MB Notification: Performance of SimCode: time 7.01e-07/0.5978, allocations: 0 / 0.77 GB, free: 10.01 MB / 362.7 MB Notification: Performance of Templates: time 0.004526/0.6023, allocations: 0.9748 MB / 0.7709 GB, free: 9.051 MB / 362.7 MB