Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.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.Fluid.TestUtilities.TestRegSquare2Derivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|x|y|yd|ydd|k1|k2|y2|y2d|y2dd",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives") Notification: Performance of loadModel(ModelicaTest): time 2.274/2.274, allocations: 234.9 MB / 251.1 MB, free: 9.559 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004525/0.0004525, allocations: 15.98 kB / 314.9 MB, free: 9.605 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3467/0.3472, allocations: 54.86 MB / 369.8 MB, free: 10.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1457/0.4929, allocations: 79.52 MB / 449.3 MB, free: 11.11 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002466/0.4932, allocations: 71.95 kB / 449.4 MB, free: 11.04 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008141/0.5014, allocations: 1.796 MB / 451.2 MB, free: 9.242 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.5015, allocations: 0 / 451.2 MB, free: 9.242 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.069e-05/0.5015, allocations: 4 kB / 451.2 MB, free: 9.238 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004193/0.5019, allocations: 367.1 kB / 451.6 MB, free: 8.832 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/0.502, allocations: 8.031 kB / 451.6 MB, free: 8.824 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.773e-05/0.502, allocations: 7.906 kB / 451.6 MB, free: 8.816 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001197/0.5022, allocations: 171 kB / 451.7 MB, free: 8.609 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.626e-05/0.5022, allocations: 4 kB / 451.7 MB, free: 8.605 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.185e-05/0.5022, allocations: 8 kB / 451.7 MB, free: 8.598 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001566/0.5024, allocations: 49.69 kB / 451.8 MB, free: 8.543 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.357e-05/0.5024, allocations: 0 / 451.8 MB, free: 8.543 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.573e-05/0.5025, allocations: 3.953 kB / 451.8 MB, free: 8.539 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.176e-06/0.5025, allocations: 3.938 kB / 451.8 MB, free: 8.535 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001009/0.5026, allocations: 31.91 kB / 451.8 MB, free: 8.504 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002136/0.5028, allocations: 169.6 kB / 452 MB, free: 8.289 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002863/0.5031, allocations: 58.55 kB / 452.1 MB, free: 8.223 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000327/0.5035, allocations: 113.4 kB / 452.2 MB, free: 8.094 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.311e-05/0.5035, allocations: 34.5 kB / 452.2 MB, free: 8.051 MB / 378.7 MB Notification: Performance of pre-optimization done (n=9): time 1.633e-06/0.5035, allocations: 0 / 452.2 MB, free: 8.051 MB / 378.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: k2 2: k1 3: x Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=19): time 0.07841/0.5819, allocations: 2.807 MB / 455 MB, free: 5.207 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.364e-05/0.582, allocations: 59.34 kB / 455.1 MB, free: 5.137 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.788e-05/0.5821, allocations: 105.9 kB / 455.2 MB, free: 5.023 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.246e-05/0.5822, allocations: 29.7 kB / 455.2 MB, free: 4.988 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.968e-05/0.5823, allocations: 150.6 kB / 455.3 MB, free: 4.84 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001109/0.5824, allocations: 67.08 kB / 455.4 MB, free: 4.773 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.295e-05/0.5824, allocations: 4 kB / 455.4 MB, free: 4.77 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.5826, allocations: 314.8 kB / 455.7 MB, free: 4.453 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007378/0.5833, allocations: 191.9 kB / 455.9 MB, free: 4.266 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007232/0.584, allocations: 187.9 kB / 456.1 MB, free: 4.082 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009423/0.585, allocations: 222.5 kB / 456.3 MB, free: 3.867 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.585, allocations: 0 / 456.3 MB, free: 3.867 MB / 378.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001906/0.5869, allocations: 493.3 kB / 456.8 MB, free: 3.379 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.771e-05/0.587, allocations: 10.45 kB / 456.8 MB, free: 3.371 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.587, allocations: 0 / 456.8 MB, free: 3.371 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.151e-05/0.587, allocations: 11.94 kB / 456.8 MB, free: 3.359 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006865/0.5877, allocations: 75.94 kB / 456.9 MB, free: 3.285 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.395e-06/0.5878, allocations: 480 / 456.9 MB, free: 3.285 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004008/0.5882, allocations: 27.98 kB / 456.9 MB, free: 3.258 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.185e-05/0.5883, allocations: 19.98 kB / 456.9 MB, free: 3.238 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * 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.0001712/0.5884, allocations: 117.8 kB / 457 MB, free: 3.113 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.755e-05/0.5885, allocations: 7.906 kB / 457.1 MB, free: 3.105 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002314/0.5908, allocations: 0.5736 MB / 457.6 MB, free: 2.52 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.196e-06/0.5909, allocations: 4 kB / 457.6 MB, free: 2.516 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.5909, allocations: 0 / 457.6 MB, free: 2.516 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.604e-06/0.5909, allocations: 3.953 kB / 457.6 MB, free: 2.512 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003726/0.5946, allocations: 0.9438 MB / 458.6 MB, free: 1.492 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.674e-06/0.5947, allocations: 4 kB / 458.6 MB, free: 1.488 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000542/0.5952, allocations: 71.94 kB / 458.7 MB, free: 1.418 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.215e-05/0.5953, allocations: 4 kB / 458.7 MB, free: 1.414 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.017e-05/0.5953, allocations: 24.17 kB / 458.7 MB, free: 1.391 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.019e-06/0.5954, allocations: 0 / 458.7 MB, free: 1.391 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.624e-06/0.5954, allocations: 7.938 kB / 458.7 MB, free: 1.383 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001628/0.597, allocations: 492.3 kB / 459.2 MB, free: 0.8672 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.072e-05/0.5971, allocations: 85.02 kB / 459.3 MB, free: 0.7656 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.678e-05/0.5972, allocations: 8 kB / 459.3 MB, free: 0.7578 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003755/0.5975, allocations: 27.97 kB / 459.3 MB, free: 0.7305 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.908e-05/0.5976, allocations: 23.92 kB / 459.3 MB, free: 0.707 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.001e-05/0.5977, allocations: 15.98 kB / 459.3 MB, free: 0.6914 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.551e-05/0.5977, allocations: 87.53 kB / 459.4 MB, free: 0.6055 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5977, allocations: 0 / 459.4 MB, free: 0.6055 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001363/0.5991, allocations: 347.7 kB / 459.8 MB, free: 272 kB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (19): * Single equations (assignments): 19 * 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.002127/0.6012, allocations: 278.7 kB / 460 MB, free: 15.98 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00155/0.6028, allocations: 370.3 kB / 460.4 MB, free: 15.62 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.039e-06/0.6028, allocations: 4 kB / 460.4 MB, free: 15.62 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006788/0.6035, allocations: 168.3 kB / 460.6 MB, free: 15.45 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002369/0.6038, allocations: 13.88 kB / 460.6 MB, free: 15.44 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00229/0.6061, allocations: 0.4902 MB / 461.1 MB, free: 14.9 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002742/0.6064, allocations: 0.7006 MB / 461.8 MB, free: 14.17 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003319/0.6067, allocations: 51.41 kB / 461.8 MB, free: 14.12 MB / 394.7 MB Notification: Performance of SimCode: time 4.167e-06/0.6068, allocations: 0 / 461.8 MB, free: 14.12 MB / 394.7 MB Notification: Performance of Templates: time 0.01777/0.6245, allocations: 7.426 MB / 469.2 MB, free: 6.707 MB / 394.7 MB