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.Test01RegFun3.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.Test01RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3") Notification: Performance of loadModel(ModelicaTest): time 1.894/1.894, allocations: 209.2 MB / 225.4 MB, free: 0.625 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004414/0.0004416, allocations: 12 kB / 283.1 MB, free: 9.699 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3547/0.3551, allocations: 48.7 MB / 331.8 MB, free: 6.512 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1358/0.491, allocations: 74.12 MB / 405.9 MB, free: 4.348 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002828/0.4914, allocations: 71.95 kB / 406 MB, free: 4.277 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04604/0.5374, allocations: 8.201 MB / 414.2 MB, free: 12.07 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.5375, allocations: 0 / 414.2 MB, free: 12.07 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.294e-06/0.5375, allocations: 4 kB / 414.2 MB, free: 12.06 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004509/0.538, allocations: 339.4 kB / 414.5 MB, free: 11.68 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.573e-05/0.538, allocations: 15.97 kB / 414.5 MB, free: 11.67 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.617e-05/0.5381, allocations: 0 / 414.5 MB, free: 11.67 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001417/0.5382, allocations: 163.1 kB / 414.7 MB, free: 11.47 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.546e-05/0.5383, allocations: 7.953 kB / 414.7 MB, free: 11.46 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.494e-05/0.5383, allocations: 0 / 414.7 MB, free: 11.46 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001047/0.5384, allocations: 33.64 kB / 414.7 MB, free: 11.42 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.245e-06/0.5384, allocations: 0 / 414.7 MB, free: 11.42 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.106e-05/0.5384, allocations: 4 kB / 414.7 MB, free: 11.42 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.5384, allocations: 4 kB / 414.7 MB, free: 11.41 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.105e-05/0.5385, allocations: 0 / 414.7 MB, free: 11.41 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001848/0.5387, allocations: 161.6 kB / 414.9 MB, free: 11.21 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.776e-05/0.5387, allocations: 18.53 kB / 414.9 MB, free: 11.18 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.665e-05/0.5388, allocations: 0 / 414.9 MB, free: 11.18 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.601e-05/0.5388, allocations: 38.56 kB / 415 MB, free: 11.13 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 1.342e-06/0.5388, allocations: 4 kB / 415 MB, free: 11.13 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001521/0.539, allocations: 37.69 kB / 415 MB, free: 11.09 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.708e-05/0.539, allocations: 51.41 kB / 415.1 MB, free: 11.02 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.413e-05/0.5391, allocations: 93.86 kB / 415.1 MB, free: 10.92 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.337e-05/0.5392, allocations: 25.7 kB / 415.2 MB, free: 10.89 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.542e-05/0.5392, allocations: 154.6 kB / 415.3 MB, free: 10.74 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.504e-05/0.5393, allocations: 3.906 kB / 415.3 MB, free: 10.73 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.125e-06/0.5393, allocations: 256 / 415.3 MB, free: 10.73 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.5394, allocations: 314.8 kB / 415.6 MB, free: 10.42 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.416e-05/0.5395, allocations: 0 / 415.6 MB, free: 10.42 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.468e-05/0.5395, allocations: 4 kB / 415.6 MB, free: 10.41 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.097e-05/0.5395, allocations: 3.938 kB / 415.6 MB, free: 10.41 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.5395, allocations: 0 / 415.6 MB, free: 10.41 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.317e-05/0.5396, allocations: 45.64 kB / 415.7 MB, free: 10.36 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/0.5396, allocations: 4 kB / 415.7 MB, free: 10.36 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.648e-05/0.5397, allocations: 4 kB / 415.7 MB, free: 10.35 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.306e-05/0.5397, allocations: 4.094 kB / 415.7 MB, free: 10.35 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.443e-06/0.5397, allocations: 0 / 415.7 MB, free: 10.35 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.15e-06/0.5397, allocations: 0 / 415.7 MB, free: 10.35 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.77e-05/0.5398, allocations: 3.984 kB / 415.7 MB, free: 10.34 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.735e-06/0.5398, allocations: 0 / 415.7 MB, free: 10.34 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (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 prepare postOptimizeDAE: time 9.305e-05/0.5399, allocations: 109.8 kB / 415.8 MB, free: 10.23 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.285e-05/0.5399, allocations: 11.83 kB / 415.8 MB, free: 10.21 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001541/0.5401, allocations: 52.75 kB / 415.9 MB, free: 10.16 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.446e-06/0.5401, allocations: 0 / 415.9 MB, free: 10.16 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.5401, allocations: 0 / 415.9 MB, free: 10.16 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.5401, allocations: 0 / 415.9 MB, free: 10.16 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001278/0.5402, allocations: 149.7 kB / 416 MB, free: 9.961 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.961e-06/0.5403, allocations: 0 / 416 MB, free: 9.961 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.627e-06/0.5403, allocations: 4 kB / 416 MB, free: 9.957 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.068e-06/0.5403, allocations: 0 / 416 MB, free: 9.957 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.979e-06/0.5403, allocations: 3.953 kB / 416 MB, free: 9.953 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.049e-06/0.5403, allocations: 4 kB / 416 MB, free: 9.949 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.5403, allocations: 4.031 kB / 416 MB, free: 9.945 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.485e-05/0.5404, allocations: 61.12 kB / 416.1 MB, free: 9.867 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.611e-05/0.5405, allocations: 77.11 kB / 416.2 MB, free: 9.773 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.633e-05/0.5405, allocations: 0 / 416.2 MB, free: 9.773 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.638e-05/0.5406, allocations: 11.89 kB / 416.2 MB, free: 9.762 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.002e-05/0.5406, allocations: 3.984 kB / 416.2 MB, free: 9.758 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.121e-06/0.5406, allocations: 0 / 416.2 MB, free: 9.758 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.966e-05/0.5407, allocations: 83.31 kB / 416.3 MB, free: 9.676 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.5407, allocations: 0 / 416.3 MB, free: 9.676 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004042/0.5411, allocations: 51.94 kB / 416.3 MB, free: 9.625 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.0004083/0.5415, allocations: 143.2 kB / 416.5 MB, free: 9.473 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001232/0.5417, allocations: 29.7 kB / 416.5 MB, free: 9.438 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.5417, allocations: 0 / 416.5 MB, free: 9.438 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.263e-05/0.5417, allocations: 33.86 kB / 416.5 MB, free: 9.398 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001267/0.5419, allocations: 8.688 kB / 416.5 MB, free: 9.391 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002928/0.5422, allocations: 112.9 kB / 416.6 MB, free: 9.246 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003042/0.5425, allocations: 0.677 MB / 417.3 MB, free: 8.543 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.173e-05/0.5425, allocations: 11.38 kB / 417.3 MB, free: 8.531 MB / 346.7 MB Notification: Performance of SimCode: time 6.61e-07/0.5425, allocations: 0 / 417.3 MB, free: 8.531 MB / 346.7 MB Notification: Performance of Templates: time 0.003469/0.546, allocations: 0.9735 MB / 418.3 MB, free: 7.559 MB / 346.7 MB