Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.95/1.95, allocations: 209.2 MB / 225.4 MB, free: 0.6094 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000635/0.0006352, allocations: 8 kB / 283.1 MB, free: 9.695 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3902/0.3908, allocations: 48.7 MB / 331.8 MB, free: 6.488 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1322/0.5231, allocations: 73.15 MB / 405 MB, free: 5.285 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002764/0.5235, allocations: 75.95 kB / 405 MB, free: 5.211 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008475/0.5319, allocations: 1.775 MB / 406.8 MB, free: 3.438 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.532, allocations: 5.422 kB / 406.8 MB, free: 3.434 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.987e-06/0.532, allocations: 0 / 406.8 MB, free: 3.434 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.0005048/0.5325, allocations: 367.2 kB / 407.2 MB, free: 3.027 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.816e-05/0.5326, allocations: 8.031 kB / 407.2 MB, free: 3.02 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.664e-05/0.5327, allocations: 7.938 kB / 407.2 MB, free: 3.012 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001542/0.5328, allocations: 175 kB / 407.4 MB, free: 2.801 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.853e-05/0.5328, allocations: 4 kB / 407.4 MB, free: 2.797 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.827e-05/0.5329, allocations: 4 kB / 407.4 MB, free: 2.793 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000166/0.5331, allocations: 53.62 kB / 407.4 MB, free: 2.734 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.047e-05/0.5331, allocations: 3.906 kB / 407.4 MB, free: 2.73 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.197e-05/0.5331, allocations: 0 / 407.4 MB, free: 2.73 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.5331, allocations: 8 kB / 407.4 MB, free: 2.723 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001031/0.5332, allocations: 31.97 kB / 407.5 MB, free: 2.691 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002312/0.5335, allocations: 165.6 kB / 407.6 MB, free: 2.48 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000294/0.5338, allocations: 58.58 kB / 407.7 MB, free: 2.414 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003596/0.5342, allocations: 113.1 kB / 407.8 MB, free: 2.285 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.863e-05/0.5342, allocations: 30.56 kB / 407.8 MB, free: 2.246 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 5.73e-06/0.5342, allocations: 3.984 kB / 407.8 MB, free: 2.242 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.07745/0.6117, allocations: 2.819 MB / 410.6 MB, free: 15.39 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.737e-05/0.6118, allocations: 51.41 kB / 410.7 MB, free: 15.32 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001001/0.6119, allocations: 101.9 kB / 410.8 MB, free: 15.21 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.261e-05/0.612, allocations: 25.7 kB / 410.8 MB, free: 15.18 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.425e-05/0.6121, allocations: 154.6 kB / 411 MB, free: 15.03 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001189/0.6122, allocations: 70.98 kB / 411 MB, free: 14.96 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.284e-05/0.6122, allocations: 0 / 411 MB, free: 14.96 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001824/0.6124, allocations: 322.8 kB / 411.3 MB, free: 14.64 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007473/0.6132, allocations: 195.8 kB / 411.5 MB, free: 14.45 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007387/0.6139, allocations: 190.1 kB / 411.7 MB, free: 14.26 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009813/0.6149, allocations: 219.9 kB / 411.9 MB, free: 14.05 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.615, allocations: 0 / 411.9 MB, free: 14.05 MB / 346.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001951/0.6169, allocations: 493.4 kB / 412.4 MB, free: 13.56 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.892e-05/0.617, allocations: 7.594 kB / 412.4 MB, free: 13.55 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.617, allocations: 0 / 412.4 MB, free: 13.55 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.836e-05/0.617, allocations: 4 kB / 412.4 MB, free: 13.55 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006903/0.6177, allocations: 71.94 kB / 412.5 MB, free: 13.48 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.549e-05/0.6178, allocations: 4 kB / 412.5 MB, free: 13.48 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003998/0.6182, allocations: 27.92 kB / 412.5 MB, free: 13.45 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.152e-05/0.6183, allocations: 19.98 kB / 412.6 MB, free: 13.43 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.0001917/0.6185, allocations: 121.7 kB / 412.7 MB, free: 13.3 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.127e-05/0.6185, allocations: 11.89 kB / 412.7 MB, free: 13.29 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002384/0.6209, allocations: 0.5748 MB / 413.3 MB, free: 12.71 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.091e-05/0.621, allocations: 4 kB / 413.3 MB, free: 12.7 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.621, allocations: 3.938 kB / 413.3 MB, free: 12.7 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.621, allocations: 0 / 413.3 MB, free: 12.7 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00385/0.6249, allocations: 0.9445 MB / 414.2 MB, free: 11.68 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.492e-06/0.6249, allocations: 0 / 414.2 MB, free: 11.68 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005609/0.6255, allocations: 80.12 kB / 414.3 MB, free: 11.6 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.648e-05/0.6255, allocations: 7.953 kB / 414.3 MB, free: 11.59 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.128e-05/0.6256, allocations: 19.92 kB / 414.3 MB, free: 11.57 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.042e-06/0.6256, allocations: 0 / 414.3 MB, free: 11.57 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.582e-06/0.6256, allocations: 4 kB / 414.3 MB, free: 11.57 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001813/0.6274, allocations: 492.6 kB / 414.8 MB, free: 11.05 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.628e-05/0.6276, allocations: 85.02 kB / 414.9 MB, free: 10.95 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.101e-05/0.6277, allocations: 12 kB / 414.9 MB, free: 10.94 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003777/0.6281, allocations: 27.97 kB / 414.9 MB, free: 10.91 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.314e-05/0.6281, allocations: 23.88 kB / 414.9 MB, free: 10.89 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.748e-05/0.6282, allocations: 19.98 kB / 415 MB, free: 10.87 MB / 346.7 MB Notification: Performance of sorting global known variables: time 7.5e-05/0.6283, allocations: 83.28 kB / 415 MB, free: 10.79 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.6283, allocations: 0 / 415 MB, free: 10.79 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001478/0.6298, allocations: 343.7 kB / 415.4 MB, free: 10.45 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.002717/0.6325, allocations: 278.8 kB / 415.7 MB, free: 10.17 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001657/0.6342, allocations: 370.5 kB / 416 MB, free: 9.812 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.525e-06/0.6343, allocations: 4 kB / 416 MB, free: 9.809 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006956/0.635, allocations: 160.2 kB / 416.2 MB, free: 9.652 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002564/0.6353, allocations: 11.95 kB / 416.2 MB, free: 9.641 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002365/0.6376, allocations: 0.4942 MB / 416.7 MB, free: 9.09 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003395/0.638, allocations: 0.7084 MB / 417.4 MB, free: 8.352 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000345/0.6384, allocations: 47.41 kB / 417.4 MB, free: 8.305 MB / 346.7 MB Notification: Performance of SimCode: time 9.21e-07/0.6384, allocations: 0 / 417.4 MB, free: 8.305 MB / 346.7 MB Notification: Performance of Templates: time 0.0187/0.6571, allocations: 7.429 MB / 424.9 MB, free: 0.9023 MB / 346.7 MB