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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.25/2.25, allocations: 235.1 MB / 243 MB, free: 9.496 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.694e-05/1.714e-05, allocations: 4 kB / 303.2 MB, free: 13.22 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2832/0.2832, allocations: 54.86 MB / 358 MB, free: 14.93 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1247/0.4079, allocations: 79.93 MB / 438 MB, free: 14.89 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001856/0.4082, allocations: 55.97 kB / 438 MB, free: 14.84 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02834/0.4365, allocations: 6.299 MB / 444.3 MB, free: 8.531 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.073e-06/0.4366, allocations: 0 / 444.3 MB, free: 8.531 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.789e-06/0.4366, allocations: 0 / 444.3 MB, free: 8.531 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.0003743/0.437, allocations: 372.8 kB / 444.7 MB, free: 8.117 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/0.437, allocations: 12.03 kB / 444.7 MB, free: 8.105 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.529e-05/0.4371, allocations: 7.953 kB / 444.7 MB, free: 8.098 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001187/0.4372, allocations: 159.1 kB / 444.9 MB, free: 7.902 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.312e-05/0.4372, allocations: 0 / 444.9 MB, free: 7.902 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.404e-06/0.4372, allocations: 0 / 444.9 MB, free: 7.902 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.343e-05/0.4373, allocations: 0 / 444.9 MB, free: 7.902 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.896e-05/0.4374, allocations: 29.7 kB / 444.9 MB, free: 7.867 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.4374, allocations: 3.984 kB / 444.9 MB, free: 7.863 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.12e-06/0.4374, allocations: 0 / 444.9 MB, free: 7.863 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.646e-06/0.4374, allocations: 3.953 kB / 444.9 MB, free: 7.859 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001352/0.4376, allocations: 126.2 kB / 445 MB, free: 7.699 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.601e-05/0.4376, allocations: 22.55 kB / 445 MB, free: 7.668 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.666e-05/0.4376, allocations: 8.859 kB / 445 MB, free: 7.656 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.972e-06/0.4377, allocations: 3.984 kB / 445 MB, free: 7.652 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.81e-05/0.4377, allocations: 56.27 kB / 445.1 MB, free: 7.582 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 2.038e-06/0.4377, allocations: 0 / 445.1 MB, free: 7.582 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002003/0.438, allocations: 41.75 kB / 445.1 MB, free: 7.535 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.956e-05/0.438, allocations: 77.11 kB / 445.2 MB, free: 7.441 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.288e-05/0.4381, allocations: 88.91 kB / 445.3 MB, free: 7.348 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.918e-05/0.4381, allocations: 25.7 kB / 445.3 MB, free: 7.316 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.285e-05/0.4382, allocations: 150.6 kB / 445.5 MB, free: 7.168 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.516e-05/0.4382, allocations: 0 / 445.5 MB, free: 7.168 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.773e-06/0.4382, allocations: 4 kB / 445.5 MB, free: 7.164 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001642/0.4384, allocations: 318.8 kB / 445.8 MB, free: 6.844 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.111e-06/0.4384, allocations: 0 / 445.8 MB, free: 6.844 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.474e-06/0.4385, allocations: 4.031 kB / 445.8 MB, free: 6.84 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.104e-05/0.4385, allocations: 7.938 kB / 445.8 MB, free: 6.832 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.519e-06/0.4385, allocations: 0 / 445.8 MB, free: 6.832 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001302/0.4387, allocations: 37.62 kB / 445.8 MB, free: 6.789 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.381e-05/0.4387, allocations: 33.7 kB / 445.9 MB, free: 6.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.214e-06/0.4388, allocations: 0 / 445.9 MB, free: 6.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.296e-05/0.4388, allocations: 0 / 445.9 MB, free: 6.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.094e-06/0.4388, allocations: 4 kB / 445.9 MB, free: 6.746 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.069e-06/0.4388, allocations: 0 / 445.9 MB, free: 6.746 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.698e-05/0.4388, allocations: 4.094 kB / 445.9 MB, free: 6.742 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.718e-06/0.4389, allocations: 0 / 445.9 MB, free: 6.742 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 () * 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.0001144/0.439, allocations: 138.6 kB / 446 MB, free: 6.594 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.091e-05/0.439, allocations: 0 / 446 MB, free: 6.594 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.306e-05/0.439, allocations: 11.64 kB / 446 MB, free: 6.586 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.217e-06/0.439, allocations: 0 / 446 MB, free: 6.586 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.165e-05/0.4391, allocations: 0 / 446 MB, free: 6.586 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.105e-06/0.4391, allocations: 4 kB / 446 MB, free: 6.582 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001166/0.4392, allocations: 126.2 kB / 446.2 MB, free: 6.422 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.902e-06/0.4392, allocations: 0 / 446.2 MB, free: 6.422 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.725e-06/0.4392, allocations: 7.953 kB / 446.2 MB, free: 6.414 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.301e-06/0.4392, allocations: 3.984 kB / 446.2 MB, free: 6.41 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.229e-06/0.4393, allocations: 0 / 446.2 MB, free: 6.41 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.325e-06/0.4393, allocations: 4 kB / 446.2 MB, free: 6.406 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.4393, allocations: 3.938 kB / 446.2 MB, free: 6.402 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001289/0.4394, allocations: 53.14 kB / 446.2 MB, free: 6.332 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.977e-05/0.4395, allocations: 81.09 kB / 446.3 MB, free: 6.234 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.968e-05/0.4395, allocations: 11.98 kB / 446.3 MB, free: 6.223 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.321e-05/0.4395, allocations: 0 / 446.3 MB, free: 6.223 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.153e-05/0.4396, allocations: 4 kB / 446.3 MB, free: 6.219 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.322e-06/0.4396, allocations: 0 / 446.3 MB, free: 6.219 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.1e-05/0.4396, allocations: 75.28 kB / 446.4 MB, free: 6.145 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.03e-07/0.4396, allocations: 0 / 446.4 MB, free: 6.145 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002654/0.4399, allocations: 8 kB / 446.4 MB, free: 6.137 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) * 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.0003095/0.4402, allocations: 121.8 kB / 446.5 MB, free: 6.012 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000108/0.4404, allocations: 55.41 kB / 446.6 MB, free: 5.945 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.797e-06/0.4404, allocations: 3.938 kB / 446.6 MB, free: 5.941 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.415e-05/0.4404, allocations: 55.41 kB / 446.6 MB, free: 5.875 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001025/0.4406, allocations: 0 / 446.6 MB, free: 5.875 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001806/0.4407, allocations: 73.72 kB / 446.7 MB, free: 5.773 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003514/0.4411, allocations: 0.6768 MB / 447.4 MB, free: 5.07 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.422e-05/0.4411, allocations: 11.56 kB / 447.4 MB, free: 5.059 MB / 378.7 MB Notification: Performance of SimCode: time 1.502e-06/0.4412, allocations: 0 / 447.4 MB, free: 5.059 MB / 378.7 MB Notification: Performance of Templates: time 0.002116/0.4433, allocations: 454.3 kB / 447.8 MB, free: 4.617 MB / 378.7 MB