Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestScalarFunctions.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestScalarFunctions") Notification: Performance of loadModel(ModelicaTest): time 2.174/2.174, allocations: 234.9 MB / 250.5 MB, free: 9.461 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004351/0.0004353, allocations: 20 kB / 314.4 MB, free: 9.469 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2796/0.2801, allocations: 54.86 MB / 369.3 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1282/0.4083, allocations: 80.67 MB / 449.9 MB, free: 9.91 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002011/0.4085, allocations: 63.97 kB / 450 MB, free: 9.848 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02928/0.4378, allocations: 6.326 MB / 456.3 MB, free: 3.512 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.59e-06/0.4379, allocations: 4 kB / 456.3 MB, free: 3.508 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.071e-06/0.4379, allocations: 0 / 456.3 MB, free: 3.508 MB / 378.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.0003987/0.4383, allocations: 376.9 kB / 456.7 MB, free: 3.086 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.848e-05/0.4384, allocations: 8.031 kB / 456.7 MB, free: 3.078 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.541e-05/0.4384, allocations: 7.953 kB / 456.7 MB, free: 3.07 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001177/0.4385, allocations: 159.1 kB / 456.9 MB, free: 2.875 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.648e-06/0.4386, allocations: 0 / 456.9 MB, free: 2.875 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.197e-05/0.4386, allocations: 0 / 456.9 MB, free: 2.875 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.174e-05/0.4387, allocations: 33.69 kB / 456.9 MB, free: 2.836 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.466e-06/0.4387, allocations: 4 kB / 456.9 MB, free: 2.832 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.328e-06/0.4387, allocations: 0 / 456.9 MB, free: 2.832 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.419e-06/0.4387, allocations: 0 / 456.9 MB, free: 2.832 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.087e-05/0.4388, allocations: 3.953 kB / 456.9 MB, free: 2.828 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001664/0.4389, allocations: 149.7 kB / 457.1 MB, free: 2.633 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.44e-05/0.439, allocations: 22.45 kB / 457.1 MB, free: 2.602 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.36e-06/0.439, allocations: 0 / 457.1 MB, free: 2.602 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.609e-05/0.4391, allocations: 64.25 kB / 457.2 MB, free: 2.523 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.707e-06/0.4391, allocations: 64 / 457.2 MB, free: 2.523 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001752/0.4393, allocations: 63.41 kB / 457.2 MB, free: 2.449 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.417e-05/0.4394, allocations: 81.11 kB / 457.3 MB, free: 2.352 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.464e-05/0.4394, allocations: 92.84 kB / 457.4 MB, free: 2.254 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.909e-05/0.4395, allocations: 25.7 kB / 457.4 MB, free: 2.223 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.455e-05/0.4395, allocations: 150.6 kB / 457.6 MB, free: 2.074 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.72e-05/0.4396, allocations: 3.984 kB / 457.6 MB, free: 2.07 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.498e-06/0.4396, allocations: 128 / 457.6 MB, free: 2.07 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001645/0.4398, allocations: 322.8 kB / 457.9 MB, free: 1.746 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.281e-05/0.4398, allocations: 4 kB / 457.9 MB, free: 1.742 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.454e-06/0.4398, allocations: 0 / 457.9 MB, free: 1.742 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.292e-05/0.4398, allocations: 25.7 kB / 457.9 MB, free: 1.711 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.182e-06/0.4398, allocations: 0 / 457.9 MB, free: 1.711 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.000106/0.44, allocations: 63.41 kB / 458 MB, free: 1.637 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.635e-05/0.44, allocations: 29.7 kB / 458 MB, free: 1.602 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.19e-06/0.44, allocations: 3.984 kB / 458 MB, free: 1.598 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.667e-05/0.4401, allocations: 8.094 kB / 458 MB, free: 1.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.673e-06/0.4401, allocations: 3.938 kB / 458 MB, free: 1.586 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.663e-06/0.4401, allocations: 0 / 458 MB, free: 1.586 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.794e-05/0.4401, allocations: 0 / 458 MB, free: 1.586 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.29e-06/0.4401, allocations: 0 / 458 MB, free: 1.586 MB / 378.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: 1 (result) * 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: 1 * Record equations: 0 * 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.0001194/0.4403, allocations: 143.4 kB / 458.1 MB, free: 1.43 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.357e-05/0.4403, allocations: 3.984 kB / 458.2 MB, free: 1.426 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.267e-05/0.4403, allocations: 3.125 kB / 458.2 MB, free: 1.422 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.326e-06/0.4403, allocations: 0 / 458.2 MB, free: 1.422 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.7e-06/0.4403, allocations: 4 kB / 458.2 MB, free: 1.418 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.908e-06/0.4403, allocations: 0 / 458.2 MB, free: 1.418 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001354/0.4405, allocations: 161.6 kB / 458.3 MB, free: 1.211 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.792e-06/0.4405, allocations: 0 / 458.3 MB, free: 1.211 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.148e-06/0.4405, allocations: 0 / 458.3 MB, free: 1.211 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.446e-06/0.4405, allocations: 0 / 458.3 MB, free: 1.211 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.192e-06/0.4405, allocations: 0 / 458.3 MB, free: 1.211 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.758e-06/0.4405, allocations: 0 / 458.3 MB, free: 1.211 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.922e-06/0.4405, allocations: 4 kB / 458.3 MB, free: 1.207 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001345/0.4407, allocations: 94.78 kB / 458.4 MB, free: 1.09 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.868e-05/0.4408, allocations: 77.11 kB / 458.5 MB, free: 0.9961 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.739e-05/0.4408, allocations: 4 kB / 458.5 MB, free: 0.9922 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.246e-05/0.4408, allocations: 0 / 458.5 MB, free: 0.9922 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.258e-05/0.4408, allocations: 0 / 458.5 MB, free: 0.9922 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.71e-06/0.4408, allocations: 3.938 kB / 458.5 MB, free: 0.9883 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.021e-05/0.4409, allocations: 83.2 kB / 458.6 MB, free: 0.9062 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.56e-07/0.4409, allocations: 0 / 458.6 MB, free: 0.9062 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003047/0.4412, allocations: 8 kB / 458.6 MB, free: 0.8984 MB / 378.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: 1 (result) * Number of discrete states: 1 (result) * 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: 1 * Record equations: 0 * 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.0002855/0.4415, allocations: 111.4 kB / 458.7 MB, free: 0.7852 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000109/0.4416, allocations: 59.39 kB / 458.8 MB, free: 0.7148 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.69e-06/0.4417, allocations: 4 kB / 458.8 MB, free: 0.7109 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.796e-05/0.4417, allocations: 55.41 kB / 458.8 MB, free: 0.6445 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.697e-05/0.4418, allocations: 5.25 kB / 458.8 MB, free: 0.6406 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001864/0.442, allocations: 108.5 kB / 458.9 MB, free: 0.5 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003778/0.4424, allocations: 0.677 MB / 459.6 MB, free: 15.8 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.146e-05/0.4425, allocations: 7.438 kB / 459.6 MB, free: 15.79 MB / 394.7 MB Notification: Performance of SimCode: time 1.305e-06/0.4425, allocations: 0 / 459.6 MB, free: 15.79 MB / 394.7 MB Notification: Performance of Templates: time 0.001975/0.4445, allocations: 453 kB / 460 MB, free: 15.35 MB / 394.7 MB