Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.44/2.44, allocations: 234.9 MB / 251.1 MB, free: 9.562 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007108/0.000711, allocations: 16 kB / 314.9 MB, free: 9.629 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3539/0.3547, allocations: 54.86 MB / 369.8 MB, free: 10.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1545/0.5092, allocations: 80.66 MB / 450.4 MB, free: 9.977 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002656/0.5095, allocations: 71.97 kB / 450.5 MB, free: 9.906 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03021/0.5397, allocations: 6.337 MB / 456.9 MB, free: 3.559 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.5398, allocations: 0 / 456.9 MB, free: 3.559 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.5398, allocations: 0 / 456.9 MB, free: 3.559 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.0003806/0.5402, allocations: 372.9 kB / 457.2 MB, free: 3.141 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.584e-05/0.5402, allocations: 15.97 kB / 457.2 MB, free: 3.125 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.186e-05/0.5403, allocations: 3.953 kB / 457.2 MB, free: 3.121 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001077/0.5404, allocations: 163.1 kB / 457.4 MB, free: 2.922 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.735e-05/0.5404, allocations: 3.938 kB / 457.4 MB, free: 2.918 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.509e-05/0.5405, allocations: 8 kB / 457.4 MB, free: 2.91 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.405e-05/0.5406, allocations: 29.7 kB / 457.4 MB, free: 2.875 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.635e-06/0.5406, allocations: 0 / 457.4 MB, free: 2.875 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.087e-06/0.5406, allocations: 0 / 457.4 MB, free: 2.875 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.5406, allocations: 0 / 457.4 MB, free: 2.875 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.292e-05/0.5406, allocations: 7.953 kB / 457.4 MB, free: 2.867 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001549/0.5408, allocations: 149.7 kB / 457.6 MB, free: 2.672 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.669e-05/0.5409, allocations: 18.52 kB / 457.6 MB, free: 2.645 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.847e-06/0.5409, allocations: 4 kB / 457.6 MB, free: 2.641 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.166e-05/0.5409, allocations: 60.36 kB / 457.7 MB, free: 2.566 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.443e-06/0.541, allocations: 0 / 457.7 MB, free: 2.566 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001953/0.5412, allocations: 63.39 kB / 457.7 MB, free: 2.492 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.572e-05/0.5412, allocations: 81.11 kB / 457.8 MB, free: 2.395 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.135e-05/0.5413, allocations: 93.77 kB / 457.9 MB, free: 2.293 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.49e-05/0.5413, allocations: 25.7 kB / 457.9 MB, free: 2.262 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.122e-05/0.5414, allocations: 154.7 kB / 458.1 MB, free: 2.109 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.184e-05/0.5414, allocations: 3.984 kB / 458.1 MB, free: 2.105 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.755e-06/0.5414, allocations: 0 / 458.1 MB, free: 2.105 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001356/0.5416, allocations: 318.8 kB / 458.4 MB, free: 1.785 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.366e-05/0.5416, allocations: 0 / 458.4 MB, free: 1.785 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.013e-06/0.5416, allocations: 3.938 kB / 458.4 MB, free: 1.781 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.489e-05/0.5417, allocations: 29.7 kB / 458.4 MB, free: 1.746 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.5417, allocations: 0 / 458.4 MB, free: 1.746 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.649e-05/0.5418, allocations: 63.48 kB / 458.5 MB, free: 1.672 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.185e-05/0.5418, allocations: 37.7 kB / 458.5 MB, free: 1.629 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.112e-06/0.5418, allocations: 0 / 458.5 MB, free: 1.629 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.681e-05/0.5419, allocations: 0 / 458.5 MB, free: 1.629 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.633e-06/0.5419, allocations: 0 / 458.5 MB, free: 1.629 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.54e-06/0.5419, allocations: 0 / 458.5 MB, free: 1.629 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.15e-05/0.5419, allocations: 0 / 458.5 MB, free: 1.629 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.052e-05/0.5419, allocations: 7.922 kB / 458.5 MB, free: 1.621 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.0001129/0.5421, allocations: 143.5 kB / 458.7 MB, free: 1.465 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.428e-06/0.5421, allocations: 0 / 458.7 MB, free: 1.465 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.494e-05/0.5421, allocations: 7.125 kB / 458.7 MB, free: 1.457 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.609e-06/0.5421, allocations: 4 kB / 458.7 MB, free: 1.453 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.5421, allocations: 0 / 458.7 MB, free: 1.453 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.5421, allocations: 0 / 458.7 MB, free: 1.453 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001204/0.5423, allocations: 149.6 kB / 458.8 MB, free: 1.258 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.5423, allocations: 3.938 kB / 458.8 MB, free: 1.254 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.52e-07/0.5423, allocations: 3.938 kB / 458.8 MB, free: 1.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.5423, allocations: 0 / 458.8 MB, free: 1.25 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.658e-05/0.5423, allocations: 8 kB / 458.9 MB, free: 1.242 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.5424, allocations: 0 / 458.9 MB, free: 1.242 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.5424, allocations: 0 / 458.9 MB, free: 1.242 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00013/0.5425, allocations: 98.78 kB / 458.9 MB, free: 1.121 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.052e-05/0.5426, allocations: 77.11 kB / 459 MB, free: 1.027 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.521e-05/0.5426, allocations: 0 / 459 MB, free: 1.027 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.196e-05/0.5426, allocations: 0 / 459 MB, free: 1.027 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.846e-05/0.5426, allocations: 0 / 459 MB, free: 1.027 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.384e-06/0.5426, allocations: 4 kB / 459 MB, free: 1.023 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.389e-05/0.5427, allocations: 79.31 kB / 459.1 MB, free: 0.9453 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.5427, allocations: 0 / 459.1 MB, free: 0.9453 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002455/0.543, allocations: 4 kB / 459.1 MB, free: 0.9414 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.0003155/0.5433, allocations: 127.7 kB / 459.2 MB, free: 0.8125 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001018/0.5434, allocations: 59.34 kB / 459.3 MB, free: 0.7422 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.5434, allocations: 0 / 459.3 MB, free: 0.7422 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.294e-05/0.5435, allocations: 63.47 kB / 459.4 MB, free: 0.668 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.93e-05/0.5436, allocations: 3.953 kB / 459.4 MB, free: 0.6641 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001995/0.5438, allocations: 108.4 kB / 459.5 MB, free: 0.5234 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002697/0.5441, allocations: 0.6692 MB / 460.1 MB, free: 15.83 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.116e-05/0.5441, allocations: 7.438 kB / 460.1 MB, free: 15.82 MB / 394.7 MB Notification: Performance of SimCode: time 7.52e-07/0.5441, allocations: 0 / 460.1 MB, free: 15.82 MB / 394.7 MB Notification: Performance of Templates: time 0.002201/0.5463, allocations: 449 kB / 460.6 MB, free: 15.38 MB / 394.7 MB