Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.012/2.012, allocations: 209.3 MB / 224.8 MB, free: 1.215 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004419/0.0004421, allocations: 8 kB / 282.6 MB, free: 9.734 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08607/0.08654, allocations: 48.71 MB / 331.3 MB, free: 8.93 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3854/0.472, allocations: 74.12 MB / 405.4 MB, free: 11.09 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000334/0.4724, allocations: 71.95 kB / 405.5 MB, free: 11.02 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05847/0.5309, allocations: 8.193 MB / 413.7 MB, free: 2.824 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.679e-06/0.531, allocations: 0 / 413.7 MB, free: 2.824 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.846e-06/0.531, allocations: 4 kB / 413.7 MB, free: 2.82 MB / 330.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.00054/0.5316, allocations: 343.4 kB / 414 MB, free: 2.438 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.006e-05/0.5316, allocations: 8.031 kB / 414 MB, free: 2.43 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.953e-05/0.5317, allocations: 3.938 kB / 414 MB, free: 2.426 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001638/0.5319, allocations: 163 kB / 414.2 MB, free: 2.227 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.897e-05/0.5319, allocations: 4 kB / 414.2 MB, free: 2.223 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.271e-05/0.5319, allocations: 0 / 414.2 MB, free: 2.223 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001646/0.5321, allocations: 37.69 kB / 414.2 MB, free: 2.18 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.534e-05/0.5321, allocations: 7.875 kB / 414.2 MB, free: 2.172 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.664e-05/0.5322, allocations: 7.984 kB / 414.2 MB, free: 2.164 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.096e-05/0.5322, allocations: 4 kB / 414.2 MB, free: 2.16 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.065e-05/0.5323, allocations: 4 kB / 414.2 MB, free: 2.156 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005195/0.5328, allocations: 244.9 kB / 414.5 MB, free: 1.867 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.781e-05/0.5329, allocations: 18.58 kB / 414.5 MB, free: 1.84 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.61e-05/0.5329, allocations: 0 / 414.5 MB, free: 1.84 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.071e-05/0.533, allocations: 38.62 kB / 414.5 MB, free: 1.793 MB / 330.7 MB Notification: Performance of pre-optimization done (n=1): time 2.641e-06/0.533, allocations: 3.938 kB / 414.5 MB, free: 1.789 MB / 330.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002132/0.5332, allocations: 37.69 kB / 414.6 MB, free: 1.746 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.209e-05/0.5333, allocations: 51.41 kB / 414.6 MB, free: 1.684 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001192/0.5334, allocations: 89 kB / 414.7 MB, free: 1.59 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.596e-05/0.5335, allocations: 25.7 kB / 414.7 MB, free: 1.559 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00012/0.5336, allocations: 154.5 kB / 414.9 MB, free: 1.406 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.872e-05/0.5337, allocations: 12.16 kB / 414.9 MB, free: 1.395 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.635e-06/0.5337, allocations: 4 kB / 414.9 MB, free: 1.391 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002106/0.5339, allocations: 314.8 kB / 415.2 MB, free: 1.074 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.497e-05/0.534, allocations: 3.984 kB / 415.2 MB, free: 1.07 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.224e-05/0.534, allocations: 18.58 kB / 415.2 MB, free: 1.043 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.035e-05/0.5341, allocations: 11.94 kB / 415.2 MB, free: 1.031 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.23e-06/0.5341, allocations: 0 / 415.2 MB, free: 1.031 MB / 330.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001529/0.5343, allocations: 49.62 kB / 415.3 MB, free: 0.9766 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.371e-05/0.5343, allocations: 8.781 kB / 415.3 MB, free: 0.9688 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.928e-05/0.5343, allocations: 4 kB / 415.3 MB, free: 0.9648 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.6e-05/0.5344, allocations: 0 / 415.3 MB, free: 0.9648 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.216e-05/0.5344, allocations: 8 kB / 415.3 MB, free: 0.957 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.062e-05/0.5345, allocations: 4 kB / 415.3 MB, free: 0.9531 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.359e-05/0.5345, allocations: 0 / 415.3 MB, free: 0.9531 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.033e-05/0.5345, allocations: 0 / 415.3 MB, free: 0.9531 MB / 330.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 0.0001553/0.5347, allocations: 117.9 kB / 415.4 MB, free: 0.8281 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.293e-05/0.5348, allocations: 0 / 415.4 MB, free: 0.8281 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001901/0.535, allocations: 52.69 kB / 415.5 MB, free: 0.7695 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.95e-06/0.535, allocations: 0 / 415.5 MB, free: 0.7695 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.942e-06/0.535, allocations: 0 / 415.5 MB, free: 0.7695 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.08e-06/0.535, allocations: 0 / 415.5 MB, free: 0.7695 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002839/0.5353, allocations: 153.6 kB / 415.6 MB, free: 0.5703 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.795e-06/0.5354, allocations: 0 / 415.6 MB, free: 0.5703 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.251e-06/0.5354, allocations: 4.031 kB / 415.6 MB, free: 0.5664 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.18e-06/0.5354, allocations: 0 / 415.6 MB, free: 0.5664 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.126e-05/0.5354, allocations: 4 kB / 415.6 MB, free: 0.5625 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.888e-06/0.5354, allocations: 0 / 415.6 MB, free: 0.5625 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.288e-06/0.5355, allocations: 0 / 415.6 MB, free: 0.5625 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001808/0.5357, allocations: 139.4 kB / 415.8 MB, free: 420 kB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.739e-05/0.5357, allocations: 77.11 kB / 415.8 MB, free: 324 kB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.051e-05/0.5358, allocations: 0 / 415.8 MB, free: 324 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001149/0.5359, allocations: 7.969 kB / 415.9 MB, free: 316 kB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.872e-05/0.5359, allocations: 4 kB / 415.9 MB, free: 312 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.509e-06/0.536, allocations: 0 / 415.9 MB, free: 312 kB / 330.7 MB Notification: Performance of sorting global known variables: time 8.072e-05/0.5361, allocations: 79.27 kB / 415.9 MB, free: 232 kB / 330.7 MB Notification: Performance of sort global known variables: time 1.032e-06/0.5361, allocations: 0 / 415.9 MB, free: 232 kB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006872/0.5368, allocations: 51.94 kB / 416 MB, free: 180 kB / 330.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.00042/0.5372, allocations: 151.1 kB / 416.1 MB, free: 20 kB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001382/0.5374, allocations: 41.8 kB / 416.2 MB, free: 15.97 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.264e-06/0.5374, allocations: 0 / 416.2 MB, free: 15.97 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 4.001e-05/0.5374, allocations: 33.64 kB / 416.2 MB, free: 15.93 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001716/0.5376, allocations: 7.391 kB / 416.2 MB, free: 15.93 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002808/0.5379, allocations: 116.8 kB / 416.3 MB, free: 15.78 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003775/0.5383, allocations: 0.6731 MB / 417 MB, free: 15.08 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.917e-05/0.5384, allocations: 11.44 kB / 417 MB, free: 15.07 MB / 346.7 MB Notification: Performance of SimCode: time 1.541e-06/0.5384, allocations: 4.25 kB / 417 MB, free: 15.07 MB / 346.7 MB Notification: Performance of Templates: time 0.003264/0.5416, allocations: 0.9975 MB / 418 MB, free: 14.07 MB / 346.7 MB