Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/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.1_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives") Notification: Performance of loadModel(ModelicaTest): time 1.874/1.874, allocations: 209.3 MB / 224.8 MB, free: 204 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004379/0.0004381, allocations: 12 kB / 282.6 MB, free: 9.59 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2861/0.2866, allocations: 48.7 MB / 331.3 MB, free: 6.504 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1089/0.3955, allocations: 73.16 MB / 404.4 MB, free: 5.293 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001969/0.3957, allocations: 67.97 kB / 404.5 MB, free: 5.227 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007209/0.403, allocations: 1.775 MB / 406.3 MB, free: 3.453 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.68e-06/0.403, allocations: 0 / 406.3 MB, free: 3.453 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.495e-06/0.403, allocations: 0 / 406.3 MB, free: 3.453 MB / 330.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.0004215/0.4035, allocations: 367.2 kB / 406.6 MB, free: 3.047 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.4035, allocations: 8.031 kB / 406.6 MB, free: 3.039 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.064e-05/0.4036, allocations: 4 kB / 406.6 MB, free: 3.035 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001456/0.4037, allocations: 174.9 kB / 406.8 MB, free: 2.824 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.531e-05/0.4037, allocations: 8 kB / 406.8 MB, free: 2.816 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.619e-05/0.4038, allocations: 4 kB / 406.8 MB, free: 2.812 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001341/0.4039, allocations: 61.55 kB / 406.9 MB, free: 2.746 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.623e-05/0.404, allocations: 3.906 kB / 406.9 MB, free: 2.742 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.594e-06/0.404, allocations: 0 / 406.9 MB, free: 2.742 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.541e-06/0.404, allocations: 4 kB / 406.9 MB, free: 2.738 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.746e-05/0.4041, allocations: 27.92 kB / 406.9 MB, free: 2.711 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002296/0.4043, allocations: 177.6 kB / 407.1 MB, free: 2.488 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002491/0.4046, allocations: 62.55 kB / 407.2 MB, free: 2.418 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002759/0.4049, allocations: 109.1 kB / 407.3 MB, free: 2.293 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.469e-05/0.4049, allocations: 34.78 kB / 407.3 MB, free: 2.25 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 2.178e-06/0.4049, allocations: 0 / 407.3 MB, free: 2.25 MB / 330.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.04248/0.4474, allocations: 2.804 MB / 410.1 MB, free: 15.41 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.712e-05/0.4475, allocations: 51.41 kB / 410.2 MB, free: 15.34 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001099/0.4477, allocations: 101 kB / 410.3 MB, free: 15.24 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.534e-05/0.4477, allocations: 25.7 kB / 410.3 MB, free: 15.21 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.357e-05/0.4478, allocations: 154.6 kB / 410.4 MB, free: 15.05 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000108/0.4479, allocations: 63.02 kB / 410.5 MB, free: 14.99 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.365e-05/0.448, allocations: 4 kB / 410.5 MB, free: 14.99 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000165/0.4482, allocations: 322.8 kB / 410.8 MB, free: 14.66 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005754/0.4487, allocations: 187.9 kB / 411 MB, free: 14.48 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005733/0.4493, allocations: 194.6 kB / 411.2 MB, free: 14.29 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007986/0.4502, allocations: 219.9 kB / 411.4 MB, free: 14.08 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.023e-06/0.4502, allocations: 3.938 kB / 411.4 MB, free: 14.07 MB / 346.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001532/0.4517, allocations: 481.4 kB / 411.9 MB, free: 13.6 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.217e-05/0.4518, allocations: 4 kB / 411.9 MB, free: 13.59 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.548e-06/0.4518, allocations: 0 / 411.9 MB, free: 13.59 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.094e-05/0.4518, allocations: 4 kB / 411.9 MB, free: 13.59 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004922/0.4523, allocations: 83.88 kB / 412 MB, free: 13.51 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.067e-05/0.4523, allocations: 4 kB / 412 MB, free: 13.5 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002577/0.4526, allocations: 28.22 kB / 412 MB, free: 13.48 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.564e-05/0.4527, allocations: 19.98 kB / 412 MB, free: 13.46 MB / 346.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.0001736/0.4529, allocations: 121.7 kB / 412.1 MB, free: 13.33 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.958e-05/0.4529, allocations: 7.906 kB / 412.1 MB, free: 13.32 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0019/0.4548, allocations: 0.5704 MB / 412.7 MB, free: 12.75 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.447e-06/0.4549, allocations: 8 kB / 412.7 MB, free: 12.74 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.885e-06/0.4549, allocations: 0 / 412.7 MB, free: 12.74 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.848e-06/0.4549, allocations: 3.984 kB / 412.7 MB, free: 12.73 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002966/0.4579, allocations: 0.9444 MB / 413.7 MB, free: 11.72 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.99e-06/0.4579, allocations: 4 kB / 413.7 MB, free: 11.71 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003924/0.4583, allocations: 72.36 kB / 413.7 MB, free: 11.64 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.25e-05/0.4584, allocations: 7.953 kB / 413.7 MB, free: 11.64 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.575e-05/0.4584, allocations: 20.17 kB / 413.8 MB, free: 11.62 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.152e-06/0.4584, allocations: 4 kB / 413.8 MB, free: 11.61 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.263e-06/0.4585, allocations: 7.938 kB / 413.8 MB, free: 11.61 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001423/0.4599, allocations: 0.5455 MB / 414.3 MB, free: 10.99 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.748e-05/0.46, allocations: 89 kB / 414.4 MB, free: 10.88 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.036e-05/0.46, allocations: 8 kB / 414.4 MB, free: 10.88 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002688/0.4603, allocations: 27.98 kB / 414.4 MB, free: 10.85 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.746e-05/0.4604, allocations: 19.88 kB / 414.5 MB, free: 10.83 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.92e-05/0.4604, allocations: 19.98 kB / 414.5 MB, free: 10.81 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.434e-05/0.4605, allocations: 87.27 kB / 414.6 MB, free: 10.72 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.88e-06/0.4605, allocations: 0 / 414.6 MB, free: 10.72 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001159/0.4617, allocations: 343.6 kB / 414.9 MB, free: 10.39 MB / 346.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.001743/0.4634, allocations: 274.8 kB / 415.2 MB, free: 10.11 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001198/0.4647, allocations: 379.5 kB / 415.5 MB, free: 9.742 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.3e-06/0.4647, allocations: 0 / 415.5 MB, free: 9.742 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005126/0.4652, allocations: 160.2 kB / 415.7 MB, free: 9.586 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002404/0.4655, allocations: 15.88 kB / 415.7 MB, free: 9.57 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001715/0.4672, allocations: 0.4942 MB / 416.2 MB, free: 9.02 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003938/0.4676, allocations: 0.7045 MB / 416.9 MB, free: 8.285 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000259/0.4679, allocations: 51.41 kB / 417 MB, free: 8.234 MB / 346.7 MB Notification: Performance of SimCode: time 1.591e-06/0.4679, allocations: 0 / 417 MB, free: 8.234 MB / 346.7 MB Notification: Performance of Templates: time 0.01488/0.4828, allocations: 7.418 MB / 424.4 MB, free: 0.8516 MB / 346.7 MB