Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.Mean.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.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.Mean") Notification: Performance of loadModel(ModelicaTest): time 1.886/1.886, allocations: 209.3 MB / 224.8 MB, free: 208 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004306/0.0004308, allocations: 12 kB / 282.5 MB, free: 9.656 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3143/0.3147, allocations: 48.71 MB / 331.2 MB, free: 6.48 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.001538/0.3163, allocations: 1.168 MB / 332.4 MB, free: 5.895 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007723/0.3171, allocations: 462.3 kB / 332.8 MB, free: 5.59 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.266e-05/0.3172, allocations: 1.25 kB / 332.8 MB, free: 5.59 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 1.314e-05/0.3172, allocations: 0.6094 kB / 332.8 MB, free: 5.59 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 5.997e-05/0.3173, allocations: 9.906 kB / 332.8 MB, free: 5.582 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001695/0.3175, allocations: 29.38 kB / 332.8 MB, free: 5.562 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 7.365e-05/0.3175, allocations: 29.73 kB / 332.9 MB, free: 5.547 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.47e-05/0.3176, allocations: 4.703 kB / 332.9 MB, free: 5.547 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.508e-05/0.3177, allocations: 17.75 kB / 332.9 MB, free: 5.539 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.737e-05/0.3178, allocations: 17.47 kB / 332.9 MB, free: 5.531 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.324e-05/0.3178, allocations: 1.344 kB / 332.9 MB, free: 5.531 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.239e-05/0.3179, allocations: 5.281 kB / 332.9 MB, free: 5.527 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.671e-05/0.3179, allocations: 7.031 kB / 332.9 MB, free: 5.523 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.888e-05/0.3179, allocations: 38.16 kB / 333 MB, free: 5.484 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 6.527e-05/0.318, allocations: 22.94 kB / 333 MB, free: 5.48 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.589e-06/0.318, allocations: 4 kB / 333 MB, free: 5.477 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.888e-06/0.318, allocations: 0 / 333 MB, free: 5.477 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.326e-06/0.3181, allocations: 1.406 kB / 333 MB, free: 5.477 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003757/0.3184, allocations: 341.7 kB / 333.3 MB, free: 5.117 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.768e-05/0.3185, allocations: 8.469 kB / 333.3 MB, free: 5.117 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.708e-05/0.3185, allocations: 3.781 kB / 333.3 MB, free: 5.117 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001313/0.3187, allocations: 180.1 kB / 333.5 MB, free: 4.91 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.404e-05/0.3187, allocations: 5.344 kB / 333.5 MB, free: 4.906 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.586e-05/0.3187, allocations: 2.625 kB / 333.5 MB, free: 4.906 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000151/0.3189, allocations: 57.31 kB / 333.6 MB, free: 4.863 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.281e-05/0.3189, allocations: 0.8438 kB / 333.6 MB, free: 4.863 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.247e-05/0.319, allocations: 1.312 kB / 333.6 MB, free: 4.863 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.925e-06/0.319, allocations: 0 / 333.6 MB, free: 4.863 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001064/0.3191, allocations: 22.73 kB / 333.6 MB, free: 4.859 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003453/0.3194, allocations: 275.1 kB / 333.9 MB, free: 4.574 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001054/0.3196, allocations: 34.66 kB / 333.9 MB, free: 4.547 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.537e-05/0.3196, allocations: 11.86 kB / 333.9 MB, free: 4.535 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001922/0.3198, allocations: 70.92 kB / 334 MB, free: 4.48 MB / 266.7 MB Notification: Performance of pre-optimization done (n=4): time 2.35e-06/0.3198, allocations: 1.281 kB / 334 MB, free: 4.48 MB / 266.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002939/0.3201, allocations: 81.91 kB / 334.1 MB, free: 4.438 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.973e-05/0.3202, allocations: 57.55 kB / 334.1 MB, free: 4.371 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.59e-05/0.3203, allocations: 119.3 kB / 334.2 MB, free: 4.262 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.388e-05/0.3203, allocations: 29.7 kB / 334.3 MB, free: 4.227 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.846e-05/0.3203, allocations: 157.3 kB / 334.4 MB, free: 4.074 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.938e-05/0.3204, allocations: 14.45 kB / 334.4 MB, free: 4.062 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.228e-06/0.3204, allocations: 1.062 kB / 334.4 MB, free: 4.062 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.944e-05/0.3204, allocations: 316.5 kB / 334.7 MB, free: 3.746 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.832e-05/0.3205, allocations: 15.7 kB / 334.8 MB, free: 3.742 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.872e-05/0.3206, allocations: 52.52 kB / 334.8 MB, free: 3.691 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.675e-05/0.3207, allocations: 18.8 kB / 334.8 MB, free: 3.688 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.776e-06/0.3207, allocations: 1.438 kB / 334.8 MB, free: 3.688 MB / 266.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002172/0.3209, allocations: 91.27 kB / 334.9 MB, free: 3.633 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/0.321, allocations: 7.281 kB / 334.9 MB, free: 3.633 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.462e-06/0.321, allocations: 1.469 kB / 334.9 MB, free: 3.633 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.451e-05/0.321, allocations: 1.125 kB / 334.9 MB, free: 3.633 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.801e-05/0.3211, allocations: 12.39 kB / 334.9 MB, free: 3.633 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.732e-06/0.3211, allocations: 2.328 kB / 334.9 MB, free: 3.633 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.791e-05/0.3212, allocations: 9.859 kB / 335 MB, free: 3.629 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.151e-05/0.3212, allocations: 6.719 kB / 335 MB, free: 3.625 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 ($PRE.mean.y,mean.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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 6.931e-05/0.3213, allocations: 117.7 kB / 335.1 MB, free: 3.504 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.028e-05/0.3214, allocations: 11.14 kB / 335.1 MB, free: 3.496 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.966e-05/0.3214, allocations: 10.19 kB / 335.1 MB, free: 3.484 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.847e-06/0.3214, allocations: 1.094 kB / 335.1 MB, free: 3.484 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.846e-06/0.3214, allocations: 0 / 335.1 MB, free: 3.484 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.976e-06/0.3214, allocations: 1.938 kB / 335.1 MB, free: 3.484 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001159/0.3216, allocations: 177.5 kB / 335.3 MB, free: 3.277 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.085e-06/0.3216, allocations: 5.312 kB / 335.3 MB, free: 3.273 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.501e-05/0.3217, allocations: 7.656 kB / 335.3 MB, free: 3.273 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.199e-06/0.3217, allocations: 0 / 335.3 MB, free: 3.273 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.235e-05/0.3217, allocations: 2.203 kB / 335.3 MB, free: 3.273 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.434e-06/0.3217, allocations: 0 / 335.3 MB, free: 3.273 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.155e-06/0.3217, allocations: 5.094 kB / 335.3 MB, free: 3.27 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002889/0.322, allocations: 124.2 kB / 335.4 MB, free: 3.18 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.377e-05/0.3221, allocations: 85.97 kB / 335.5 MB, free: 3.082 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.24e-05/0.3221, allocations: 2.781 kB / 335.5 MB, free: 3.082 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.988e-05/0.3222, allocations: 3.062 kB / 335.5 MB, free: 3.082 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.428e-05/0.3222, allocations: 3.203 kB / 335.5 MB, free: 3.082 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.07e-05/0.3223, allocations: 1.75 kB / 335.5 MB, free: 3.082 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.344e-05/0.3223, allocations: 89.56 kB / 335.6 MB, free: 3.004 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.08e-07/0.3223, allocations: 64 / 335.6 MB, free: 3.004 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002685/0.3226, allocations: 15.94 kB / 335.6 MB, free: 2.996 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (mean.x) * Number of discrete variables: 2 ($whenCondition1,mean.y) * Number of discrete states: 1 (mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 8.388e-05/0.3227, allocations: 95.38 kB / 335.7 MB, free: 2.91 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001916/0.3229, allocations: 42.09 kB / 335.7 MB, free: 2.902 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.952e-06/0.3229, allocations: 1.25 kB / 335.7 MB, free: 2.902 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.476e-05/0.323, allocations: 27.78 kB / 335.8 MB, free: 2.891 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001189/0.3232, allocations: 9.781 kB / 335.8 MB, free: 2.883 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003629/0.3235, allocations: 196.4 kB / 336 MB, free: 2.711 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001185/0.3237, allocations: 0.6859 MB / 336.7 MB, free: 2.016 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.383e-05/0.3237, allocations: 10.58 kB / 336.7 MB, free: 2.008 MB / 266.7 MB Notification: Performance of SimCode: time 1.337e-06/0.3237, allocations: 4 kB / 336.7 MB, free: 2.004 MB / 266.7 MB Notification: Performance of Templates: time 0.002401/0.3261, allocations: 0.714 MB / 337.4 MB, free: 1.973 MB / 266.7 MB