Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.363/2.363, allocations: 235 MB / 248.1 MB, free: 14.57 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.344e-05/2.382e-05, allocations: 0 / 309.7 MB, free: 1.547 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3248/0.3249, allocations: 54.85 MB / 364.5 MB, free: 5.516 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1217/0.4467, allocations: 79.45 MB / 444 MB, free: 1.066 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002182/0.4469, allocations: 67.95 kB / 444.1 MB, free: 1 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0074/0.4543, allocations: 1.772 MB / 445.8 MB, free: 15.24 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.98e-06/0.4544, allocations: 0 / 445.8 MB, free: 15.24 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.503e-06/0.4544, allocations: 1.219 kB / 445.8 MB, free: 15.24 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.0004097/0.4548, allocations: 354.3 kB / 446.2 MB, free: 14.85 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.662e-05/0.4549, allocations: 15.97 kB / 446.2 MB, free: 14.83 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.349e-05/0.4549, allocations: 11.91 kB / 446.2 MB, free: 14.82 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001521/0.4551, allocations: 167 kB / 446.4 MB, free: 14.62 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.315e-05/0.4551, allocations: 0 / 446.4 MB, free: 14.62 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.073e-05/0.4552, allocations: 7.984 kB / 446.4 MB, free: 14.61 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001439/0.4553, allocations: 49.69 kB / 446.4 MB, free: 14.55 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.302e-05/0.4553, allocations: 0.75 kB / 446.4 MB, free: 14.55 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.549e-05/0.4554, allocations: 8.578 kB / 446.4 MB, free: 14.55 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.677e-06/0.4554, allocations: 0 / 446.4 MB, free: 14.55 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.082e-05/0.4555, allocations: 24 kB / 446.5 MB, free: 14.52 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000236/0.4557, allocations: 181.5 kB / 446.6 MB, free: 14.3 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002576/0.456, allocations: 57.95 kB / 446.7 MB, free: 14.23 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.746e-05/0.4561, allocations: 21.89 kB / 446.7 MB, free: 14.21 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002793/0.4564, allocations: 109.1 kB / 446.8 MB, free: 14.09 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.314e-05/0.4564, allocations: 39.47 kB / 446.9 MB, free: 14.04 MB / 378.7 MB Notification: Performance of pre-optimization done (n=9): time 2.221e-06/0.4565, allocations: 0 / 446.9 MB, free: 14.04 MB / 378.7 MB Notification: Performance of matching and sorting (n=19): time 0.03789/0.4944, allocations: 2.067 MB / 448.9 MB, free: 11.95 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.603e-05/0.4945, allocations: 59.36 kB / 449 MB, free: 11.88 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001002/0.4946, allocations: 93.94 kB / 449.1 MB, free: 11.78 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.698e-05/0.4946, allocations: 29.69 kB / 449.1 MB, free: 11.74 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.404e-05/0.4947, allocations: 154.6 kB / 449.2 MB, free: 11.59 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.705e-05/0.4948, allocations: 59.11 kB / 449.3 MB, free: 11.53 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.102e-05/0.4949, allocations: 0 / 449.3 MB, free: 11.53 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001645/0.495, allocations: 322.8 kB / 449.6 MB, free: 11.21 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003639/0.4954, allocations: 140 kB / 449.8 MB, free: 11.07 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000363/0.4958, allocations: 140 kB / 449.9 MB, free: 10.93 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005573/0.4964, allocations: 165.5 kB / 450.1 MB, free: 10.77 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.564e-06/0.4964, allocations: 0 / 450.1 MB, free: 10.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001146/0.4975, allocations: 393.4 kB / 450.4 MB, free: 10.38 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.425e-05/0.4976, allocations: 11.39 kB / 450.5 MB, free: 10.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.979e-06/0.4976, allocations: 3.938 kB / 450.5 MB, free: 10.37 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.965e-05/0.4976, allocations: 4.734 kB / 450.5 MB, free: 10.37 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000586/0.4982, allocations: 75.95 kB / 450.5 MB, free: 10.29 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.127e-05/0.4983, allocations: 3.984 kB / 450.5 MB, free: 10.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002629/0.4985, allocations: 23.98 kB / 450.6 MB, free: 10.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.826e-05/0.4986, allocations: 19.98 kB / 450.6 MB, free: 10.25 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 () * 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.0001481/0.4988, allocations: 112.9 kB / 450.7 MB, free: 10.13 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.359e-05/0.4988, allocations: 11.91 kB / 450.7 MB, free: 10.12 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00149/0.5003, allocations: 483.5 kB / 451.2 MB, free: 9.637 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.94e-06/0.5004, allocations: 4 kB / 451.2 MB, free: 9.633 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.375e-06/0.5004, allocations: 3.984 kB / 451.2 MB, free: 9.629 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.15e-05/0.5004, allocations: 4.141 kB / 451.2 MB, free: 9.625 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002577/0.503, allocations: 0.8558 MB / 452 MB, free: 8.695 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.182e-06/0.503, allocations: 3.938 kB / 452 MB, free: 8.691 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004612/0.5035, allocations: 75.94 kB / 452.1 MB, free: 8.617 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.173e-06/0.5035, allocations: 0 / 452.1 MB, free: 8.617 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.063e-05/0.5036, allocations: 19.98 kB / 452.1 MB, free: 8.598 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.205e-05/0.5036, allocations: 7.938 kB / 452.1 MB, free: 8.59 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.172e-06/0.5036, allocations: 4.125 kB / 452.2 MB, free: 8.586 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009915/0.5046, allocations: 466.6 kB / 452.6 MB, free: 8.059 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.328e-05/0.5047, allocations: 85.02 kB / 452.7 MB, free: 7.957 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.812e-05/0.5048, allocations: 8.734 kB / 452.7 MB, free: 7.949 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002838/0.5051, allocations: 27.98 kB / 452.7 MB, free: 7.922 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.209e-05/0.5051, allocations: 15.98 kB / 452.7 MB, free: 7.906 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.634e-05/0.5052, allocations: 15.98 kB / 452.8 MB, free: 7.891 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.89e-05/0.5053, allocations: 81.16 kB / 452.8 MB, free: 7.812 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.49e-07/0.5053, allocations: 0 / 452.8 MB, free: 7.812 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001156/0.5065, allocations: 355.6 kB / 453.2 MB, free: 7.465 MB / 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 () * 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.001682/0.5082, allocations: 274.8 kB / 453.5 MB, free: 7.188 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007735/0.5089, allocations: 263.9 kB / 453.7 MB, free: 6.93 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.509, allocations: 7.938 kB / 453.7 MB, free: 6.922 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003268/0.5093, allocations: 115.8 kB / 453.8 MB, free: 6.809 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002183/0.5095, allocations: 8 kB / 453.8 MB, free: 6.801 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001561/0.5111, allocations: 397.6 kB / 454.2 MB, free: 6.367 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003924/0.5115, allocations: 0.7007 MB / 454.9 MB, free: 5.637 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002983/0.5118, allocations: 51.39 kB / 455 MB, free: 5.586 MB / 378.7 MB Notification: Performance of SimCode: time 1.878e-06/0.5119, allocations: 0 / 455 MB, free: 5.586 MB / 378.7 MB Notification: Performance of Templates: time 0.01512/0.527, allocations: 7.242 MB / 462.2 MB, free: 14.36 MB / 394.7 MB