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.907/1.907, allocations: 209.3 MB / 224.8 MB, free: 196 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000452/0.0004521, allocations: 16 kB / 282.6 MB, free: 9.594 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2896/0.2901, allocations: 48.7 MB / 331.3 MB, free: 6.488 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1128/0.4029, allocations: 73.96 MB / 405.2 MB, free: 4.469 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002056/0.4032, allocations: 59.97 kB / 405.3 MB, free: 4.41 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003689/0.4069, allocations: 0.9525 MB / 406.2 MB, free: 3.457 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.4069, allocations: 0 / 406.2 MB, free: 3.457 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.644e-06/0.407, allocations: 0 / 406.2 MB, free: 3.457 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004769/0.4074, allocations: 347.2 kB / 406.6 MB, free: 3.07 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.813e-05/0.4075, allocations: 8.031 kB / 406.6 MB, free: 3.062 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.593e-05/0.4075, allocations: 8 kB / 406.6 MB, free: 3.055 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002317/0.4078, allocations: 186.9 kB / 406.8 MB, free: 2.832 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.262e-05/0.4078, allocations: 0 / 406.8 MB, free: 2.832 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.467e-05/0.4079, allocations: 8 kB / 406.8 MB, free: 2.824 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001655/0.408, allocations: 49.67 kB / 406.8 MB, free: 2.77 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/0.4081, allocations: 3.938 kB / 406.8 MB, free: 2.766 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.158e-05/0.4081, allocations: 0 / 406.8 MB, free: 2.766 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.958e-06/0.4081, allocations: 0 / 406.8 MB, free: 2.766 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001129/0.4082, allocations: 27.97 kB / 406.9 MB, free: 2.738 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004994/0.4087, allocations: 284.9 kB / 407.1 MB, free: 2.41 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001103/0.4089, allocations: 30.56 kB / 407.2 MB, free: 2.371 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.412e-05/0.4089, allocations: 0 / 407.2 MB, free: 2.371 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002231/0.4091, allocations: 79.41 kB / 407.3 MB, free: 2.281 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 2.418e-06/0.4091, allocations: 0 / 407.3 MB, free: 2.281 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0003192/0.4095, allocations: 81.58 kB / 407.3 MB, free: 2.195 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.801e-05/0.4095, allocations: 55.41 kB / 407.4 MB, free: 2.129 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001063/0.4096, allocations: 101.2 kB / 407.5 MB, free: 2.02 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.11e-05/0.4097, allocations: 33.7 kB / 407.5 MB, free: 1.98 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.681e-05/0.4098, allocations: 160.7 kB / 407.7 MB, free: 1.824 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.749e-05/0.4098, allocations: 19.69 kB / 407.7 MB, free: 1.805 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.264e-06/0.4098, allocations: 0 / 407.7 MB, free: 1.805 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000172/0.41, allocations: 318.8 kB / 408 MB, free: 1.484 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.193e-05/0.4101, allocations: 16.36 kB / 408 MB, free: 1.469 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.308e-05/0.4102, allocations: 48.28 kB / 408.1 MB, free: 1.406 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.573e-05/0.4103, allocations: 20 kB / 408.1 MB, free: 1.387 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.784e-06/0.4103, allocations: 0 / 408.1 MB, free: 1.387 MB / 330.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002425/0.4106, allocations: 93.48 kB / 408.2 MB, free: 1.289 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.684e-05/0.4106, allocations: 4 kB / 408.2 MB, free: 1.285 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.14e-05/0.4106, allocations: 4 kB / 408.2 MB, free: 1.281 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.38e-05/0.4107, allocations: 0 / 408.2 MB, free: 1.281 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001024/0.4108, allocations: 15.98 kB / 408.2 MB, free: 1.266 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.436e-06/0.4108, allocations: 0 / 408.2 MB, free: 1.266 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.458e-05/0.4109, allocations: 4.156 kB / 408.2 MB, free: 1.262 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.372e-05/0.4109, allocations: 12 kB / 408.2 MB, free: 1.25 MB / 330.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 0.0001357/0.411, allocations: 121.7 kB / 408.3 MB, free: 1.121 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.88e-05/0.4111, allocations: 3.906 kB / 408.3 MB, free: 1.117 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.609e-05/0.4111, allocations: 11.91 kB / 408.4 MB, free: 1.105 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.695e-06/0.4111, allocations: 0 / 408.4 MB, free: 1.105 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.579e-06/0.4111, allocations: 1.75 kB / 408.4 MB, free: 1.105 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.4112, allocations: 0 / 408.4 MB, free: 1.105 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001763/0.4113, allocations: 169.6 kB / 408.5 MB, free: 0.8906 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.138e-06/0.4114, allocations: 0 / 408.5 MB, free: 0.8906 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.63e-05/0.4115, allocations: 11.98 kB / 408.5 MB, free: 0.8789 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.705e-06/0.4115, allocations: 4 kB / 408.5 MB, free: 0.875 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.156e-05/0.4115, allocations: 0 / 408.5 MB, free: 0.875 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.148e-06/0.4115, allocations: 0 / 408.5 MB, free: 0.875 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.498e-06/0.4115, allocations: 0 / 408.5 MB, free: 0.875 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003339/0.4119, allocations: 129 kB / 408.7 MB, free: 0.7305 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.284e-05/0.412, allocations: 89.03 kB / 408.7 MB, free: 0.625 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.143e-05/0.412, allocations: 0 / 408.7 MB, free: 0.625 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.944e-05/0.4121, allocations: 4 kB / 408.8 MB, free: 0.6211 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.193e-05/0.4121, allocations: 0 / 408.8 MB, free: 0.6211 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.302e-05/0.4121, allocations: 3.984 kB / 408.8 MB, free: 0.6172 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.289e-05/0.4122, allocations: 87.28 kB / 408.8 MB, free: 0.5312 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.06e-07/0.4122, allocations: 3.938 kB / 408.8 MB, free: 0.5273 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002778/0.4125, allocations: 15.98 kB / 408.9 MB, free: 0.5117 MB / 330.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 0.0001313/0.4126, allocations: 99.31 kB / 409 MB, free: 416 kB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001996/0.4129, allocations: 47.91 kB / 409 MB, free: 368 kB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.4129, allocations: 0 / 409 MB, free: 368 kB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.774e-05/0.413, allocations: 12.83 kB / 409 MB, free: 356 kB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000125/0.4131, allocations: 16.88 kB / 409 MB, free: 340 kB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004345/0.4136, allocations: 209.9 kB / 409.2 MB, free: 92 kB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000384/0.414, allocations: 0.6848 MB / 409.9 MB, free: 15.38 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.559e-05/0.414, allocations: 11.44 kB / 409.9 MB, free: 15.37 MB / 346.7 MB Notification: Performance of SimCode: time 1.664e-06/0.414, allocations: 0 / 409.9 MB, free: 15.37 MB / 346.7 MB Notification: Performance of Templates: time 0.002324/0.4164, allocations: 0.7384 MB / 410.7 MB, free: 14.62 MB / 346.7 MB