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.882/1.882, allocations: 209.3 MB / 222.4 MB, free: 7.727 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.934e-05/3.948e-05, allocations: 7.984 kB / 277.8 MB, free: 15.31 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08687/0.08694, allocations: 48.69 MB / 326.5 MB, free: 14.52 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3371/0.4241, allocations: 73.06 MB / 399.6 MB, free: 10.29 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001701/0.4243, allocations: 71.22 kB / 399.7 MB, free: 10.29 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006555/0.4309, allocations: 1.758 MB / 401.4 MB, free: 9.887 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.796e-06/0.4309, allocations: 0 / 401.4 MB, free: 9.887 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.331e-05/0.4309, allocations: 7.781 kB / 401.4 MB, free: 9.883 MB / 314.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.0002735/0.4312, allocations: 353.2 kB / 401.8 MB, free: 9.512 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/0.4313, allocations: 11.53 kB / 401.8 MB, free: 9.512 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.975e-05/0.4313, allocations: 3.906 kB / 401.8 MB, free: 9.508 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.698e-05/0.4314, allocations: 169.3 kB / 402 MB, free: 9.309 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.296e-05/0.4314, allocations: 11.25 kB / 402 MB, free: 9.301 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.53e-05/0.4315, allocations: 3.844 kB / 402 MB, free: 9.301 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001119/0.4316, allocations: 56.39 kB / 402 MB, free: 9.258 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.312e-05/0.4316, allocations: 3.844 kB / 402 MB, free: 9.258 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.055e-05/0.4316, allocations: 2.438 kB / 402 MB, free: 9.258 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.036e-06/0.4316, allocations: 0 / 402 MB, free: 9.258 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.309e-05/0.4317, allocations: 22.31 kB / 402.1 MB, free: 9.258 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001414/0.4319, allocations: 184.3 kB / 402.2 MB, free: 9.051 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002127/0.4321, allocations: 59.78 kB / 402.3 MB, free: 9.016 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.534e-05/0.4322, allocations: 26.52 kB / 402.3 MB, free: 9.008 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002214/0.4324, allocations: 104.3 kB / 402.4 MB, free: 8.906 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.515e-05/0.4325, allocations: 38.22 kB / 402.5 MB, free: 8.867 MB / 314.7 MB Notification: Performance of pre-optimization done (n=9): time 2.309e-06/0.4325, allocations: 4 kB / 402.5 MB, free: 8.863 MB / 314.7 MB Notification: Performance of matching and sorting (n=19): time 0.03751/0.47, allocations: 2.049 MB / 404.5 MB, free: 7.969 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.679e-05/0.4701, allocations: 63.19 kB / 404.6 MB, free: 7.898 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.743e-05/0.4701, allocations: 94.84 kB / 404.7 MB, free: 7.809 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.005e-05/0.4702, allocations: 29.33 kB / 404.7 MB, free: 7.777 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.078e-05/0.4702, allocations: 150.6 kB / 404.8 MB, free: 7.629 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.656e-05/0.4703, allocations: 66.16 kB / 404.9 MB, free: 7.582 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.558e-05/0.4704, allocations: 6.906 kB / 404.9 MB, free: 7.582 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.852e-05/0.4704, allocations: 314.3 kB / 405.2 MB, free: 7.27 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003193/0.4708, allocations: 143.8 kB / 405.4 MB, free: 7.262 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002816/0.4711, allocations: 146.8 kB / 405.5 MB, free: 7.254 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004587/0.4715, allocations: 160.8 kB / 405.7 MB, free: 7.234 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.129e-06/0.4715, allocations: 3.938 kB / 405.7 MB, free: 7.23 MB / 314.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000977/0.4725, allocations: 387.8 kB / 406 MB, free: 7.16 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.952e-05/0.4726, allocations: 7.875 kB / 406.1 MB, free: 7.16 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.128e-06/0.4726, allocations: 3.984 kB / 406.1 MB, free: 7.156 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.735e-05/0.4726, allocations: 3.938 kB / 406.1 MB, free: 7.152 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004924/0.4731, allocations: 83.91 kB / 406.1 MB, free: 7.129 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.651e-06/0.4731, allocations: 3.75 kB / 406.1 MB, free: 7.129 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002516/0.4734, allocations: 23.06 kB / 406.2 MB, free: 7.121 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.851e-05/0.4735, allocations: 19.33 kB / 406.2 MB, free: 7.117 MB / 314.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.0001061/0.4736, allocations: 119.7 kB / 406.3 MB, free: 7.004 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.748e-05/0.4736, allocations: 11.72 kB / 406.3 MB, free: 6.996 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001226/0.4749, allocations: 479.4 kB / 406.8 MB, free: 6.875 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.874e-06/0.4749, allocations: 3.875 kB / 406.8 MB, free: 6.875 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.906e-06/0.4749, allocations: 0 / 406.8 MB, free: 6.875 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.398e-06/0.4749, allocations: 0 / 406.8 MB, free: 6.875 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002156/0.4771, allocations: 0.8465 MB / 407.6 MB, free: 6.336 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.518e-06/0.4771, allocations: 0.875 kB / 407.6 MB, free: 6.336 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003861/0.4775, allocations: 82.09 kB / 407.7 MB, free: 6.312 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.991e-06/0.4776, allocations: 7.734 kB / 407.7 MB, free: 6.309 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.647e-05/0.4776, allocations: 19.17 kB / 407.7 MB, free: 6.305 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.424e-06/0.4776, allocations: 3.812 kB / 407.7 MB, free: 6.305 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.949e-06/0.4776, allocations: 0 / 407.7 MB, free: 6.305 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007848/0.4784, allocations: 466.1 kB / 408.2 MB, free: 5.984 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.654e-05/0.4785, allocations: 84.89 kB / 408.3 MB, free: 5.887 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.46e-05/0.4785, allocations: 11.28 kB / 408.3 MB, free: 5.883 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000272/0.4788, allocations: 38.7 kB / 408.3 MB, free: 5.867 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.23e-05/0.4789, allocations: 15.67 kB / 408.3 MB, free: 5.859 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.836e-05/0.4789, allocations: 18.02 kB / 408.4 MB, free: 5.855 MB / 314.7 MB Notification: Performance of sorting global known variables: time 3.07e-05/0.479, allocations: 79.09 kB / 408.4 MB, free: 5.781 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.55e-06/0.479, allocations: 0 / 408.4 MB, free: 5.781 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001024/0.48, allocations: 353.8 kB / 408.8 MB, free: 5.715 MB / 314.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.001632/0.4816, allocations: 265 kB / 409 MB, free: 5.559 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006793/0.4823, allocations: 276.1 kB / 409.3 MB, free: 5.539 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.042e-06/0.4824, allocations: 0 / 409.3 MB, free: 5.539 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002687/0.4827, allocations: 115.1 kB / 409.4 MB, free: 5.527 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002284/0.4829, allocations: 16.56 kB / 409.4 MB, free: 5.523 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001466/0.4844, allocations: 390.8 kB / 409.8 MB, free: 5.305 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001372/0.4845, allocations: 0.7 MB / 410.5 MB, free: 4.594 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002562/0.4848, allocations: 54.14 kB / 410.6 MB, free: 4.574 MB / 314.7 MB Notification: Performance of SimCode: time 2.071e-06/0.4848, allocations: 0 / 410.6 MB, free: 4.574 MB / 314.7 MB Notification: Performance of Templates: time 0.01228/0.4971, allocations: 7.236 MB / 417.8 MB, free: 15.18 MB / 330.7 MB