Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/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.1_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") Notification: Performance of loadModel(ModelicaTest): time 2.075/2.075, allocations: 209.2 MB / 225.4 MB, free: 0.625 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004176/0.0004177, allocations: 8 kB / 283.1 MB, free: 9.707 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3402/0.3407, allocations: 48.69 MB / 331.8 MB, free: 6.5 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1303/0.471, allocations: 74.13 MB / 405.9 MB, free: 4.324 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002764/0.4714, allocations: 71.97 kB / 406 MB, free: 4.254 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04634/0.5177, allocations: 8.197 MB / 414.2 MB, free: 12.05 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.5178, allocations: 3.938 kB / 414.2 MB, free: 12.04 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.58e-06/0.5178, allocations: 0 / 414.2 MB, free: 12.04 MB / 346.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.000424/0.5182, allocations: 347.4 kB / 414.5 MB, free: 11.66 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/0.5183, allocations: 11.97 kB / 414.5 MB, free: 11.64 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.768e-05/0.5183, allocations: 4 kB / 414.5 MB, free: 11.64 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001017/0.5184, allocations: 163.1 kB / 414.7 MB, free: 11.44 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.717e-05/0.5185, allocations: 3.953 kB / 414.7 MB, free: 11.44 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.127e-05/0.5185, allocations: 0 / 414.7 MB, free: 11.44 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001266/0.5186, allocations: 37.7 kB / 414.7 MB, free: 11.39 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.151e-05/0.5187, allocations: 4 kB / 414.8 MB, free: 11.39 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.465e-05/0.5187, allocations: 3.984 kB / 414.8 MB, free: 11.39 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.5187, allocations: 4 kB / 414.8 MB, free: 11.38 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.464e-05/0.5187, allocations: 7.938 kB / 414.8 MB, free: 11.38 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003935/0.5191, allocations: 244.8 kB / 415 MB, free: 11.09 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.24e-05/0.5192, allocations: 22.59 kB / 415 MB, free: 11.05 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.757e-05/0.5193, allocations: 4.062 kB / 415 MB, free: 11.05 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.832e-05/0.5193, allocations: 30.56 kB / 415.1 MB, free: 11.01 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 1.804e-06/0.5193, allocations: 4 kB / 415.1 MB, free: 11.01 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001709/0.5195, allocations: 37.64 kB / 415.1 MB, free: 10.96 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.409e-05/0.5195, allocations: 51.41 kB / 415.2 MB, free: 10.9 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.302e-05/0.5196, allocations: 101.8 kB / 415.3 MB, free: 10.79 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.696e-05/0.5197, allocations: 25.7 kB / 415.3 MB, free: 10.76 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.006e-05/0.5197, allocations: 154.5 kB / 415.4 MB, free: 10.61 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.117e-05/0.5198, allocations: 7.891 kB / 415.4 MB, free: 10.6 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.466e-06/0.5198, allocations: 256 / 415.4 MB, free: 10.6 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001146/0.5199, allocations: 322.8 kB / 415.8 MB, free: 10.28 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.795e-05/0.5199, allocations: 4 kB / 415.8 MB, free: 10.27 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.828e-05/0.52, allocations: 22.56 kB / 415.8 MB, free: 10.24 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.648e-05/0.52, allocations: 4 kB / 415.8 MB, free: 10.24 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.52, allocations: 0 / 415.8 MB, free: 10.24 MB / 346.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001062/0.5201, allocations: 49.64 kB / 415.8 MB, free: 10.18 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/0.5202, allocations: 4 kB / 415.8 MB, free: 10.18 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.905e-05/0.5202, allocations: 4 kB / 415.8 MB, free: 10.18 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.759e-05/0.5202, allocations: 7.922 kB / 415.8 MB, free: 10.17 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.964e-05/0.5203, allocations: 4 kB / 415.9 MB, free: 10.16 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.493e-06/0.5203, allocations: 0 / 415.9 MB, free: 10.16 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.517e-05/0.5203, allocations: 0 / 415.9 MB, free: 10.16 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.606e-06/0.5203, allocations: 4 kB / 415.9 MB, free: 10.16 MB / 346.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 8.807e-05/0.5204, allocations: 113.8 kB / 416 MB, free: 10.04 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.999e-05/0.5205, allocations: 12.03 kB / 416 MB, free: 10.03 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001415/0.5206, allocations: 40.81 kB / 416 MB, free: 9.98 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.453e-06/0.5207, allocations: 0 / 416 MB, free: 9.98 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.5207, allocations: 7.875 kB / 416 MB, free: 9.973 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.5207, allocations: 0 / 416 MB, free: 9.973 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001751/0.5209, allocations: 153.6 kB / 416.2 MB, free: 9.773 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.736e-06/0.5209, allocations: 4 kB / 416.2 MB, free: 9.77 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.022e-06/0.5209, allocations: 0 / 416.2 MB, free: 9.77 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.975e-06/0.5209, allocations: 4.031 kB / 416.2 MB, free: 9.766 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.013e-06/0.5209, allocations: 0 / 416.2 MB, free: 9.766 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.5209, allocations: 0 / 416.2 MB, free: 9.766 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.521, allocations: 0 / 416.2 MB, free: 9.766 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000117/0.5211, allocations: 131.5 kB / 416.3 MB, free: 9.621 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6e-05/0.5211, allocations: 81.09 kB / 416.4 MB, free: 9.523 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.368e-05/0.5212, allocations: 4 kB / 416.4 MB, free: 9.52 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.06e-05/0.5213, allocations: 0 / 416.4 MB, free: 9.52 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.34e-05/0.5213, allocations: 4.031 kB / 416.4 MB, free: 9.516 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.02e-05/0.5213, allocations: 4 kB / 416.4 MB, free: 9.512 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.25e-05/0.5214, allocations: 79.28 kB / 416.5 MB, free: 9.434 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.5214, allocations: 0 / 416.5 MB, free: 9.434 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004616/0.5219, allocations: 51.92 kB / 416.5 MB, free: 9.383 MB / 346.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.0003967/0.5223, allocations: 147.1 kB / 416.7 MB, free: 9.227 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001255/0.5224, allocations: 37.86 kB / 416.7 MB, free: 9.184 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.5224, allocations: 0 / 416.7 MB, free: 9.184 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.95e-05/0.5225, allocations: 33.69 kB / 416.7 MB, free: 9.145 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001646/0.5227, allocations: 8.625 kB / 416.8 MB, free: 9.137 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002681/0.5229, allocations: 116.8 kB / 416.9 MB, free: 8.988 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000253/0.5232, allocations: 0.6809 MB / 417.5 MB, free: 8.281 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.5e-05/0.5232, allocations: 7.438 kB / 417.6 MB, free: 8.273 MB / 346.7 MB Notification: Performance of SimCode: time 9.42e-07/0.5232, allocations: 0 / 417.6 MB, free: 8.273 MB / 346.7 MB Notification: Performance of Templates: time 0.003518/0.5268, allocations: 0.9894 MB / 418.5 MB, free: 7.285 MB / 346.7 MB