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.TestNonlinear.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.TestNonlinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="//possible continuous states|//possible discrete states",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestNonlinear") Notification: Performance of loadModel(ModelicaTest): time 2.297/2.297, allocations: 235.1 MB / 243 MB, free: 9.496 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.116e-05/2.132e-05, allocations: 4 kB / 303.2 MB, free: 13.21 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2775/0.2776, allocations: 54.85 MB / 358 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1458/0.4234, allocations: 82.7 MB / 440.7 MB, free: 12.14 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003322/0.4238, allocations: 59.97 kB / 440.8 MB, free: 12.08 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08253/0.5064, allocations: 12.88 MB / 453.7 MB, free: 15.18 MB / 394.7 MB Notification: Performance of FrontEnd: time 4.751e-06/0.5064, allocations: 0 / 453.7 MB, free: 15.18 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.762e-06/0.5065, allocations: 3.938 kB / 453.7 MB, free: 15.17 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0006514/0.5071, allocations: 448.6 kB / 454.1 MB, free: 14.68 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.875e-05/0.5072, allocations: 12.03 kB / 454.1 MB, free: 14.67 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.184e-05/0.5073, allocations: 83.23 kB / 454.2 MB, free: 14.59 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001508/0.5074, allocations: 234.4 kB / 454.4 MB, free: 14.32 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.197e-05/0.5075, allocations: 154.5 kB / 454.6 MB, free: 14.17 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.876e-05/0.5076, allocations: 154.5 kB / 454.7 MB, free: 14.02 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.757e-05/0.5077, allocations: 154.6 kB / 454.9 MB, free: 13.86 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.7e-05/0.5078, allocations: 105 kB / 455 MB, free: 13.75 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.421e-05/0.5079, allocations: 79.27 kB / 455.1 MB, free: 13.68 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.528e-05/0.508, allocations: 154.5 kB / 455.2 MB, free: 13.52 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.39e-05/0.508, allocations: 154.5 kB / 455.4 MB, free: 13.37 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003401/0.5084, allocations: 426.5 kB / 455.8 MB, free: 12.92 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001209/0.5085, allocations: 173.1 kB / 455.9 MB, free: 12.74 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.432e-05/0.5086, allocations: 80.14 kB / 456 MB, free: 12.66 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.207e-05/0.5086, allocations: 75.28 kB / 456.1 MB, free: 12.58 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.847e-05/0.5087, allocations: 131.5 kB / 456.2 MB, free: 12.44 MB / 394.7 MB Notification: Performance of pre-optimization done (n=0): time 2.025e-06/0.5088, allocations: 0 / 456.2 MB, free: 12.44 MB / 394.7 MB Notification: Performance of matching and sorting (n=0): time 8.979e-05/0.5088, allocations: 33.7 kB / 456.3 MB, free: 12.4 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.477e-05/0.5089, allocations: 77.11 kB / 456.3 MB, free: 12.3 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.221e-05/0.509, allocations: 92.98 kB / 456.4 MB, free: 12.21 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.003e-05/0.509, allocations: 25.7 kB / 456.5 MB, free: 12.18 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.169e-05/0.5091, allocations: 150.6 kB / 456.6 MB, free: 12.03 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.84e-06/0.5091, allocations: 0 / 456.6 MB, free: 12.03 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.81e-07/0.5091, allocations: 0 / 456.6 MB, free: 12.03 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.5093, allocations: 318.8 kB / 456.9 MB, free: 11.71 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.146e-06/0.5093, allocations: 3.938 kB / 456.9 MB, free: 11.7 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.666e-05/0.5093, allocations: 4 kB / 456.9 MB, free: 11.7 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.797e-05/0.5094, allocations: 75.28 kB / 457 MB, free: 11.62 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.799e-05/0.5094, allocations: 75.28 kB / 457.1 MB, free: 11.55 MB / 394.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 8.087e-05/0.5095, allocations: 29.7 kB / 457.1 MB, free: 11.52 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.09e-05/0.5096, allocations: 79.28 kB / 457.2 MB, free: 11.44 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-05/0.5096, allocations: 79.33 kB / 457.2 MB, free: 11.36 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.113e-05/0.5097, allocations: 161.2 kB / 457.4 MB, free: 11.2 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.845e-05/0.5098, allocations: 83.3 kB / 457.5 MB, free: 11.12 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.364e-05/0.5099, allocations: 150.6 kB / 457.6 MB, free: 10.97 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001016/0.51, allocations: 79.22 kB / 457.7 MB, free: 10.89 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.286e-05/0.5101, allocations: 83.28 kB / 457.8 MB, free: 10.81 MB / 394.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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.0001578/0.5102, allocations: 259.4 kB / 458 MB, free: 10.55 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.783e-05/0.5103, allocations: 109 kB / 458.2 MB, free: 10.44 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.077e-05/0.5104, allocations: 112.7 kB / 458.3 MB, free: 10.32 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.296e-05/0.5105, allocations: 180.2 kB / 458.4 MB, free: 10.14 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.962e-05/0.5106, allocations: 176.3 kB / 458.6 MB, free: 9.957 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.409e-05/0.5107, allocations: 184.2 kB / 458.8 MB, free: 9.77 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000281/0.511, allocations: 381.8 kB / 459.2 MB, free: 9.352 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.548e-05/0.5111, allocations: 108.9 kB / 459.3 MB, free: 9.238 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.679e-05/0.5111, allocations: 104.9 kB / 459.4 MB, free: 9.129 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.288e-05/0.5112, allocations: 180.3 kB / 459.6 MB, free: 8.945 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.827e-05/0.5113, allocations: 176.3 kB / 459.7 MB, free: 8.766 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.162e-05/0.5114, allocations: 180.2 kB / 459.9 MB, free: 8.582 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.351e-05/0.5116, allocations: 188.2 kB / 460.1 MB, free: 8.391 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001878/0.5118, allocations: 303.8 kB / 460.4 MB, free: 8.07 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001027/0.5119, allocations: 182 kB / 460.6 MB, free: 7.867 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001035/0.512, allocations: 188.2 kB / 460.7 MB, free: 7.676 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001132/0.5121, allocations: 105.3 kB / 460.8 MB, free: 7.566 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001111/0.5122, allocations: 184.3 kB / 461 MB, free: 7.379 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.513e-05/0.5123, allocations: 101 kB / 461.1 MB, free: 7.273 MB / 394.7 MB Notification: Performance of sorting global known variables: time 4.192e-05/0.5124, allocations: 79.22 kB / 461.2 MB, free: 7.195 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.21e-07/0.5124, allocations: 0 / 461.2 MB, free: 7.195 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008765/0.5132, allocations: 167.7 kB / 461.4 MB, free: 7.031 MB / 394.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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.001125/0.5144, allocations: 463.5 kB / 461.8 MB, free: 6.578 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 4.589e-05/0.5145, allocations: 0 / 461.8 MB, free: 6.578 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.973e-06/0.5145, allocations: 0 / 461.8 MB, free: 6.578 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.462e-06/0.5145, allocations: 0 / 461.8 MB, free: 6.578 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004008/0.5149, allocations: 0.5302 MB / 462.3 MB, free: 6.043 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001692/0.5151, allocations: 148.9 kB / 462.5 MB, free: 5.867 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000339/0.5154, allocations: 0.6729 MB / 463.2 MB, free: 5.168 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.593e-05/0.5155, allocations: 7.438 kB / 463.2 MB, free: 5.16 MB / 394.7 MB Notification: Performance of SimCode: time 1.582e-06/0.5155, allocations: 0 / 463.2 MB, free: 5.16 MB / 394.7 MB Notification: Performance of Templates: time 0.007127/0.5226, allocations: 2.95 MB / 466.1 MB, free: 2.207 MB / 394.7 MB