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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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 2.031/2.031, allocations: 209.4 MB / 217.3 MB, free: 4.172 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.536e-05/1.556e-05, allocations: 4 kB / 271.3 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2622/0.2622, allocations: 48.68 MB / 320 MB, free: 14.41 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1183/0.3805, allocations: 72.41 MB / 392.4 MB, free: 8.047 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002303/0.3808, allocations: 67.97 kB / 392.5 MB, free: 7.98 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007295/0.3881, allocations: 1.766 MB / 394.2 MB, free: 6.211 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.356e-06/0.3882, allocations: 0 / 394.2 MB, free: 6.211 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.942e-06/0.3882, allocations: 0 / 394.2 MB, free: 6.211 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.0003956/0.3886, allocations: 357.9 kB / 394.6 MB, free: 5.82 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/0.3887, allocations: 16.03 kB / 394.6 MB, free: 5.805 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.415e-05/0.3887, allocations: 3.906 kB / 394.6 MB, free: 5.801 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001472/0.3889, allocations: 171 kB / 394.8 MB, free: 5.594 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.549e-05/0.3889, allocations: 0 / 394.8 MB, free: 5.594 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.372e-05/0.3889, allocations: 7.938 kB / 394.8 MB, free: 5.586 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001002/0.3891, allocations: 23.98 kB / 394.8 MB, free: 5.562 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001039/0.3892, allocations: 45.69 kB / 394.9 MB, free: 5.512 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.308e-05/0.3892, allocations: 0 / 394.9 MB, free: 5.512 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.671e-06/0.3892, allocations: 0 / 394.9 MB, free: 5.512 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.141e-06/0.3892, allocations: 4 kB / 394.9 MB, free: 5.508 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002042/0.3894, allocations: 158 kB / 395 MB, free: 5.316 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002273/0.3897, allocations: 50.59 kB / 395.1 MB, free: 5.258 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.719e-05/0.3898, allocations: 24.86 kB / 395.1 MB, free: 5.23 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002701/0.3901, allocations: 113.1 kB / 395.2 MB, free: 5.102 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.803e-05/0.3901, allocations: 34.5 kB / 395.2 MB, free: 5.059 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 2.523e-06/0.3901, allocations: 0 / 395.2 MB, free: 5.059 MB / 330.7 MB Notification: Performance of matching and sorting (n=19): time 0.03785/0.428, allocations: 2.094 MB / 397.3 MB, free: 2.93 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.275e-05/0.4281, allocations: 51.41 kB / 397.4 MB, free: 2.867 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.238e-05/0.4282, allocations: 101 kB / 397.5 MB, free: 2.762 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.747e-05/0.4282, allocations: 25.7 kB / 397.5 MB, free: 2.73 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.519e-05/0.4283, allocations: 150.6 kB / 397.6 MB, free: 2.582 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.353e-05/0.4284, allocations: 63.05 kB / 397.7 MB, free: 2.52 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.023e-05/0.4285, allocations: 0 / 397.7 MB, free: 2.52 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001659/0.4286, allocations: 322.8 kB / 398 MB, free: 2.195 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002996/0.429, allocations: 136 kB / 398.2 MB, free: 2.062 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002981/0.4293, allocations: 142.7 kB / 398.3 MB, free: 1.926 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007578/0.43, allocations: 191.9 kB / 398.5 MB, free: 1.738 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.479e-06/0.4301, allocations: 0 / 398.5 MB, free: 1.738 MB / 330.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001232/0.4313, allocations: 409.4 kB / 398.9 MB, free: 1.332 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.352e-05/0.4313, allocations: 8 kB / 398.9 MB, free: 1.324 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.647e-06/0.4313, allocations: 0 / 398.9 MB, free: 1.324 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.526e-05/0.4314, allocations: 0 / 398.9 MB, free: 1.324 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005129/0.4319, allocations: 83.88 kB / 399 MB, free: 1.242 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.441e-06/0.4319, allocations: 0 / 399 MB, free: 1.242 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002534/0.4322, allocations: 23.97 kB / 399 MB, free: 1.219 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.93e-05/0.4323, allocations: 20 kB / 399 MB, free: 1.199 MB / 330.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.0001469/0.4324, allocations: 112.9 kB / 399.1 MB, free: 1.082 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.189e-05/0.4325, allocations: 7.906 kB / 399.1 MB, free: 1.074 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001583/0.4341, allocations: 497.1 kB / 399.6 MB, free: 0.5859 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.127e-06/0.4341, allocations: 4.188 kB / 399.6 MB, free: 0.582 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.557e-06/0.4341, allocations: 3.938 kB / 399.6 MB, free: 0.5781 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.842e-06/0.4341, allocations: 7.922 kB / 399.6 MB, free: 0.5703 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002622/0.4368, allocations: 0.8443 MB / 400.5 MB, free: 15.66 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.398e-06/0.4368, allocations: 0 / 400.5 MB, free: 15.66 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003948/0.4372, allocations: 71.94 kB / 400.6 MB, free: 15.59 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.004e-05/0.4372, allocations: 4 kB / 400.6 MB, free: 15.59 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.245e-05/0.4373, allocations: 15.98 kB / 400.6 MB, free: 15.57 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.698e-06/0.4373, allocations: 0 / 400.6 MB, free: 15.57 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.007e-05/0.4373, allocations: 16.3 kB / 400.6 MB, free: 15.56 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001145/0.4385, allocations: 480.4 kB / 401.1 MB, free: 15.02 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.268e-05/0.4386, allocations: 85.02 kB / 401.1 MB, free: 14.92 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.664e-05/0.4386, allocations: 8 kB / 401.1 MB, free: 14.91 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002735/0.4389, allocations: 27.97 kB / 401.2 MB, free: 14.88 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.75e-05/0.4389, allocations: 23.88 kB / 401.2 MB, free: 14.86 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.349e-05/0.439, allocations: 12 kB / 401.2 MB, free: 14.85 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.208e-05/0.4391, allocations: 87.27 kB / 401.3 MB, free: 14.76 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.37e-07/0.4391, allocations: 0 / 401.3 MB, free: 14.76 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001113/0.4402, allocations: 335.7 kB / 401.6 MB, free: 14.43 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 () * 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.001711/0.4419, allocations: 270.8 kB / 401.9 MB, free: 14.16 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006649/0.4426, allocations: 263.9 kB / 402.1 MB, free: 13.9 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.4426, allocations: 0 / 402.1 MB, free: 13.9 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002615/0.4429, allocations: 111.9 kB / 402.3 MB, free: 13.79 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002122/0.4431, allocations: 0 / 402.3 MB, free: 13.79 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001385/0.4445, allocations: 391.2 kB / 402.6 MB, free: 13.36 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003624/0.4449, allocations: 0.7041 MB / 403.3 MB, free: 12.62 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002532/0.4452, allocations: 51.41 kB / 403.4 MB, free: 12.57 MB / 346.7 MB Notification: Performance of SimCode: time 1.523e-06/0.4452, allocations: 0 / 403.4 MB, free: 12.57 MB / 346.7 MB Notification: Performance of Templates: time 0.01553/0.4607, allocations: 7.635 MB / 411 MB, free: 4.969 MB / 346.7 MB