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.TestRegRoot2Derivatives.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.TestRegRoot2Derivatives,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.TestRegRoot2Derivatives") Notification: Performance of loadModel(ModelicaTest): time 2.24/2.24, allocations: 234.9 MB / 250.5 MB, free: 9.48 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004292/0.0004294, allocations: 8 kB / 314.3 MB, free: 9.52 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2749/0.2753, allocations: 54.87 MB / 369.2 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.0006538/0.276, allocations: 264.3 kB / 369.4 MB, free: 10.46 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008257/0.2769, allocations: 377.3 kB / 369.8 MB, free: 10.09 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.974e-05/0.277, allocations: 0 / 369.8 MB, free: 10.09 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.407e-05/0.277, allocations: 0 / 369.8 MB, free: 10.09 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 2.846e-05/0.277, allocations: 0 / 369.8 MB, free: 10.09 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004329/0.2775, allocations: 95.7 kB / 369.9 MB, free: 10 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.742e-05/0.2775, allocations: 15.97 kB / 369.9 MB, free: 9.984 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.045e-05/0.2776, allocations: 0 / 369.9 MB, free: 9.984 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.8e-05/0.2776, allocations: 15.94 kB / 369.9 MB, free: 9.969 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.743e-05/0.2777, allocations: 19.91 kB / 370 MB, free: 9.949 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.122e-05/0.2777, allocations: 0 / 370 MB, free: 9.949 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002891/0.278, allocations: 131.8 kB / 370.1 MB, free: 9.82 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.779e-05/0.278, allocations: 11.98 kB / 370.1 MB, free: 9.809 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.49e-05/0.2781, allocations: 29.64 kB / 370.1 MB, free: 9.773 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001692/0.2783, allocations: 75.88 kB / 370.2 MB, free: 9.699 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.65e-06/0.2783, allocations: 0 / 370.2 MB, free: 9.699 MB / 298.7 MB Notification: Performance of FrontEnd: time 5.606e-06/0.2783, allocations: 4 kB / 370.2 MB, free: 9.695 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.795e-06/0.2783, allocations: 3.938 kB / 370.2 MB, free: 9.691 MB / 298.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.0004706/0.2788, allocations: 356 kB / 370.6 MB, free: 9.297 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.2788, allocations: 8.031 kB / 370.6 MB, free: 9.289 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.967e-05/0.2789, allocations: 11.86 kB / 370.6 MB, free: 9.277 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001453/0.2791, allocations: 167.1 kB / 370.7 MB, free: 9.074 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.522e-05/0.2791, allocations: 4 kB / 370.7 MB, free: 9.07 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.868e-05/0.2791, allocations: 4 kB / 370.7 MB, free: 9.066 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001398/0.2793, allocations: 57.62 kB / 370.8 MB, free: 9.004 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.271e-05/0.2793, allocations: 0 / 370.8 MB, free: 9.004 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.888e-06/0.2793, allocations: 0 / 370.8 MB, free: 9.004 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.018e-05/0.2793, allocations: 7.953 kB / 370.8 MB, free: 8.996 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.866e-05/0.2794, allocations: 31.97 kB / 370.8 MB, free: 8.965 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002239/0.2797, allocations: 169.5 kB / 371 MB, free: 8.75 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000246/0.2799, allocations: 58.58 kB / 371.1 MB, free: 8.684 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002926/0.2802, allocations: 117.1 kB / 371.2 MB, free: 8.551 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.247e-05/0.2803, allocations: 30.56 kB / 371.2 MB, free: 8.512 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 2.243e-06/0.2803, allocations: 0 / 371.2 MB, free: 8.512 MB / 298.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.1387/0.419, allocations: 6.387 MB / 377.6 MB, free: 2.086 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.332e-05/0.4191, allocations: 59.41 kB / 377.7 MB, free: 2.016 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001057/0.4192, allocations: 101.8 kB / 377.8 MB, free: 1.906 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.949e-05/0.4193, allocations: 33.7 kB / 377.8 MB, free: 1.867 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.121e-05/0.4194, allocations: 150.6 kB / 377.9 MB, free: 1.719 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001108/0.4195, allocations: 59.09 kB / 378 MB, free: 1.66 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.916e-05/0.4196, allocations: 8 kB / 378 MB, free: 1.652 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001619/0.4198, allocations: 310.8 kB / 378.3 MB, free: 1.34 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006475/0.4204, allocations: 223.9 kB / 378.5 MB, free: 1.121 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006293/0.4211, allocations: 223.1 kB / 378.7 MB, free: 0.9062 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001418/0.4225, allocations: 279.8 kB / 379 MB, free: 0.6328 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.04e-06/0.4225, allocations: 0 / 379 MB, free: 0.6328 MB / 298.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.002274/0.4248, allocations: 0.5909 MB / 379.6 MB, free: 36 kB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.417e-05/0.4249, allocations: 4 kB / 379.6 MB, free: 32 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.993e-06/0.4249, allocations: 0 / 379.6 MB, free: 32 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.848e-05/0.4249, allocations: 3.953 kB / 379.6 MB, free: 28 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006509/0.4256, allocations: 91.91 kB / 379.7 MB, free: 15.94 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.927e-06/0.4256, allocations: 0 / 379.7 MB, free: 15.94 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003628/0.426, allocations: 27.97 kB / 379.7 MB, free: 15.91 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.061e-05/0.4261, allocations: 19.97 kB / 379.7 MB, free: 15.89 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 () * 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.0001826/0.4263, allocations: 121.8 kB / 379.9 MB, free: 15.76 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.783e-05/0.4263, allocations: 7.906 kB / 379.9 MB, free: 15.75 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002684/0.429, allocations: 0.6839 MB / 380.6 MB, free: 15.07 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.632e-06/0.4291, allocations: 7.938 kB / 380.6 MB, free: 15.06 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.243e-06/0.4291, allocations: 0 / 380.6 MB, free: 15.06 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.624e-06/0.4291, allocations: 3.984 kB / 380.6 MB, free: 15.06 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004233/0.4333, allocations: 1.089 MB / 381.7 MB, free: 13.89 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.127e-05/0.4334, allocations: 0 / 381.7 MB, free: 13.89 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005474/0.434, allocations: 87.84 kB / 381.7 MB, free: 13.8 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.086e-05/0.434, allocations: 7.938 kB / 381.8 MB, free: 13.8 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.617e-05/0.4341, allocations: 24.22 kB / 381.8 MB, free: 13.77 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.585e-06/0.4341, allocations: 192 / 381.8 MB, free: 13.77 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.821e-06/0.4341, allocations: 12.47 kB / 381.8 MB, free: 13.76 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002087/0.4362, allocations: 0.5627 MB / 382.4 MB, free: 13.16 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.729e-05/0.4363, allocations: 92.95 kB / 382.4 MB, free: 13.05 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.686e-05/0.4364, allocations: 4 kB / 382.4 MB, free: 13.05 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003802/0.4368, allocations: 27.98 kB / 382.5 MB, free: 13.02 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.719e-05/0.4368, allocations: 19.92 kB / 382.5 MB, free: 13 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.578e-05/0.4369, allocations: 19.97 kB / 382.5 MB, free: 12.98 MB / 314.7 MB Notification: Performance of sorting global known variables: time 8.504e-05/0.437, allocations: 87.27 kB / 382.6 MB, free: 12.9 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.42e-07/0.437, allocations: 0 / 382.6 MB, free: 12.9 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002243/0.4393, allocations: 0.6366 MB / 383.2 MB, free: 12.26 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 () * 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.004251/0.4436, allocations: 318.9 kB / 383.5 MB, free: 11.94 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001389/0.445, allocations: 423.6 kB / 384 MB, free: 11.53 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.901e-06/0.445, allocations: 0 / 384 MB, free: 11.53 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006001/0.4456, allocations: 199.9 kB / 384.2 MB, free: 11.33 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002548/0.4459, allocations: 12.38 kB / 384.2 MB, free: 11.32 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002218/0.4481, allocations: 0.5467 MB / 384.7 MB, free: 10.72 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003963/0.4486, allocations: 0.7007 MB / 385.4 MB, free: 9.992 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003257/0.4489, allocations: 67.3 kB / 385.5 MB, free: 9.926 MB / 314.7 MB Notification: Performance of SimCode: time 1.675e-06/0.4489, allocations: 0 / 385.5 MB, free: 9.926 MB / 314.7 MB Notification: Performance of Templates: time 0.03444/0.4834, allocations: 18.09 MB / 403.6 MB, free: 7.84 MB / 330.7 MB