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.175/2.175, allocations: 234.9 MB / 250.5 MB, free: 9.473 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004367/0.0004368, allocations: 16 kB / 314.3 MB, free: 9.508 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2723/0.2728, allocations: 54.86 MB / 369.2 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.0006293/0.2735, allocations: 264.3 kB / 369.4 MB, free: 10.45 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007566/0.2743, allocations: 341.3 kB / 369.8 MB, free: 10.11 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.986e-05/0.2743, allocations: 7.938 kB / 369.8 MB, free: 10.11 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.585e-05/0.2743, allocations: 3.938 kB / 369.8 MB, free: 10.1 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 3.769e-05/0.2744, allocations: 3.938 kB / 369.8 MB, free: 10.1 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003447/0.2747, allocations: 71.84 kB / 369.9 MB, free: 10.03 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.775e-05/0.2748, allocations: 15.98 kB / 369.9 MB, free: 10.01 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.576e-05/0.2749, allocations: 7.938 kB / 369.9 MB, free: 10 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.106e-05/0.2749, allocations: 4 kB / 369.9 MB, free: 10 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.867e-05/0.275, allocations: 19.91 kB / 369.9 MB, free: 9.98 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.545e-05/0.275, allocations: 7.938 kB / 369.9 MB, free: 9.973 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00023/0.2752, allocations: 103.9 kB / 370 MB, free: 9.871 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.968e-05/0.2753, allocations: 11.92 kB / 370 MB, free: 9.859 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.388e-05/0.2753, allocations: 29.7 kB / 370.1 MB, free: 9.824 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001441/0.2755, allocations: 59.91 kB / 370.1 MB, free: 9.766 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.2755, allocations: 8 kB / 370.1 MB, free: 9.758 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.997e-06/0.2755, allocations: 0 / 370.1 MB, free: 9.758 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.567e-06/0.2755, allocations: 0 / 370.1 MB, free: 9.758 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.0004518/0.276, allocations: 352 kB / 370.5 MB, free: 9.367 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.276, allocations: 12.03 kB / 370.5 MB, free: 9.355 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.432e-05/0.2761, allocations: 7.859 kB / 370.5 MB, free: 9.348 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001532/0.2762, allocations: 171 kB / 370.7 MB, free: 9.141 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.364e-05/0.2763, allocations: 0 / 370.7 MB, free: 9.141 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.937e-05/0.2763, allocations: 8 kB / 370.7 MB, free: 9.133 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001488/0.2765, allocations: 53.67 kB / 370.7 MB, free: 9.074 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.559e-05/0.2765, allocations: 4 kB / 370.7 MB, free: 9.07 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.897e-06/0.2765, allocations: 0 / 370.7 MB, free: 9.07 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.2765, allocations: 4 kB / 370.7 MB, free: 9.066 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.84e-05/0.2766, allocations: 27.94 kB / 370.7 MB, free: 9.039 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002214/0.2769, allocations: 177.4 kB / 370.9 MB, free: 8.816 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002438/0.2771, allocations: 54.56 kB / 371 MB, free: 8.754 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003034/0.2774, allocations: 117.1 kB / 371.1 MB, free: 8.621 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.109e-05/0.2775, allocations: 34.56 kB / 371.1 MB, free: 8.578 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 6.005e-06/0.2775, allocations: 0 / 371.1 MB, free: 8.578 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.04335/0.3209, allocations: 2.822 MB / 373.9 MB, free: 5.723 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.14e-05/0.321, allocations: 55.41 kB / 374 MB, free: 5.656 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001056/0.3211, allocations: 101.8 kB / 374.1 MB, free: 5.547 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.211e-05/0.3212, allocations: 33.7 kB / 374.1 MB, free: 5.508 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.132e-05/0.3212, allocations: 154.5 kB / 374.3 MB, free: 5.355 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.975e-05/0.3214, allocations: 63.02 kB / 374.3 MB, free: 5.293 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.502e-05/0.3214, allocations: 4 kB / 374.3 MB, free: 5.289 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001667/0.3216, allocations: 322.8 kB / 374.7 MB, free: 4.965 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005554/0.3221, allocations: 187.9 kB / 374.8 MB, free: 4.781 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005344/0.3227, allocations: 192.9 kB / 375 MB, free: 4.594 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007497/0.3235, allocations: 216.6 kB / 375.2 MB, free: 4.383 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.253e-06/0.3235, allocations: 0 / 375.2 MB, free: 4.383 MB / 298.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001485/0.325, allocations: 486.8 kB / 375.7 MB, free: 3.902 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.325, allocations: 4 kB / 375.7 MB, free: 3.898 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.401e-06/0.325, allocations: 4 kB / 375.7 MB, free: 3.895 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.649e-05/0.3251, allocations: 4.469 kB / 375.7 MB, free: 3.891 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004891/0.3256, allocations: 79.86 kB / 375.8 MB, free: 3.812 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.096e-05/0.3256, allocations: 7.891 kB / 375.8 MB, free: 3.805 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002604/0.3259, allocations: 35.97 kB / 375.9 MB, free: 3.77 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.397e-05/0.3259, allocations: 16.23 kB / 375.9 MB, free: 3.754 MB / 298.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.0001654/0.3261, allocations: 121.8 kB / 376 MB, free: 3.625 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.976e-05/0.3262, allocations: 7.906 kB / 376 MB, free: 3.617 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00189/0.3281, allocations: 0.5791 MB / 376.6 MB, free: 3.031 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.513e-06/0.3281, allocations: 4 kB / 376.6 MB, free: 3.027 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.298e-06/0.3281, allocations: 0 / 376.6 MB, free: 3.027 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.983e-06/0.3281, allocations: 0 / 376.6 MB, free: 3.027 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00286/0.331, allocations: 0.9555 MB / 377.5 MB, free: 1.996 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.088e-06/0.331, allocations: 4 kB / 377.5 MB, free: 1.992 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003914/0.3314, allocations: 75.88 kB / 377.6 MB, free: 1.918 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.12e-05/0.3315, allocations: 8.188 kB / 377.6 MB, free: 1.91 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.013e-05/0.3315, allocations: 16 kB / 377.6 MB, free: 1.895 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.984e-06/0.3315, allocations: 3.984 kB / 377.6 MB, free: 1.891 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.641e-06/0.3316, allocations: 4 kB / 377.6 MB, free: 1.887 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001293/0.3329, allocations: 488.3 kB / 378.1 MB, free: 1.375 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.307e-05/0.3329, allocations: 85.02 kB / 378.2 MB, free: 1.273 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.788e-05/0.333, allocations: 7.953 kB / 378.2 MB, free: 1.266 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002753/0.3333, allocations: 31.97 kB / 378.2 MB, free: 1.234 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.778e-05/0.3333, allocations: 15.98 kB / 378.3 MB, free: 1.219 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.213e-05/0.3334, allocations: 12 kB / 378.3 MB, free: 1.207 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.371e-05/0.3335, allocations: 87.2 kB / 378.4 MB, free: 1.121 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.29e-07/0.3335, allocations: 4 kB / 378.4 MB, free: 1.117 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001128/0.3346, allocations: 319.9 kB / 378.7 MB, free: 0.8047 MB / 298.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.001708/0.3363, allocations: 231.1 kB / 378.9 MB, free: 0.5664 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00117/0.3375, allocations: 371.7 kB / 379.3 MB, free: 208 kB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.3376, allocations: 0 / 379.3 MB, free: 208 kB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005066/0.3381, allocations: 164.2 kB / 379.4 MB, free: 44 kB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002419/0.3383, allocations: 15.98 kB / 379.4 MB, free: 28 kB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001674/0.34, allocations: 0.4979 MB / 379.9 MB, free: 15.48 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003796/0.3404, allocations: 0.6929 MB / 380.6 MB, free: 14.75 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002582/0.3407, allocations: 55.39 kB / 380.7 MB, free: 14.7 MB / 314.7 MB Notification: Performance of SimCode: time 1.595e-06/0.3407, allocations: 0 / 380.7 MB, free: 14.7 MB / 314.7 MB Notification: Performance of Templates: time 0.01486/0.3556, allocations: 7.579 MB / 388.3 MB, free: 7.141 MB / 314.7 MB