Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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.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 2.048/2.048, allocations: 209.2 MB / 225.4 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004607/0.0004609, allocations: 12 kB / 283.1 MB, free: 9.715 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4616/0.4621, allocations: 48.7 MB / 331.8 MB, free: 6.48 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1426/0.6048, allocations: 73.96 MB / 405.7 MB, free: 4.492 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002775/0.6051, allocations: 67.97 kB / 405.8 MB, free: 4.426 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004424/0.6096, allocations: 0.9487 MB / 406.8 MB, free: 3.48 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.366e-06/0.6096, allocations: 0 / 406.8 MB, free: 3.48 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.355e-06/0.6096, allocations: 0 / 406.8 MB, free: 3.48 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.0006007/0.6103, allocations: 347.2 kB / 407.1 MB, free: 3.094 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.781e-05/0.6103, allocations: 8.031 kB / 407.1 MB, free: 3.086 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.539e-05/0.6104, allocations: 4 kB / 407.1 MB, free: 3.082 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002636/0.6106, allocations: 190.8 kB / 407.3 MB, free: 2.855 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.979e-05/0.6107, allocations: 4 kB / 407.3 MB, free: 2.852 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.095e-05/0.6107, allocations: 7.938 kB / 407.3 MB, free: 2.844 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002067/0.6109, allocations: 49.67 kB / 407.4 MB, free: 2.789 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.365e-05/0.611, allocations: 4 kB / 407.4 MB, free: 2.785 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.418e-05/0.611, allocations: 4 kB / 407.4 MB, free: 2.781 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.611, allocations: 0 / 407.4 MB, free: 2.781 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001497/0.6112, allocations: 19.98 kB / 407.4 MB, free: 2.762 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005851/0.6118, allocations: 280.8 kB / 407.7 MB, free: 2.438 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001369/0.6119, allocations: 34.58 kB / 407.7 MB, free: 2.395 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.018e-05/0.612, allocations: 0 / 407.7 MB, free: 2.395 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002848/0.6123, allocations: 71.45 kB / 407.8 MB, free: 2.312 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 1.793e-06/0.6123, allocations: 0 / 407.8 MB, free: 2.312 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0004609/0.6128, allocations: 97.5 kB / 407.9 MB, free: 2.211 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.633e-05/0.6128, allocations: 51.41 kB / 407.9 MB, free: 2.148 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001368/0.613, allocations: 110.6 kB / 408 MB, free: 2.027 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.661e-05/0.613, allocations: 29.7 kB / 408 MB, free: 1.992 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.152e-05/0.6131, allocations: 154.6 kB / 408.2 MB, free: 1.84 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.218e-05/0.6132, allocations: 19.73 kB / 408.2 MB, free: 1.82 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.015e-06/0.6132, allocations: 4 kB / 408.2 MB, free: 1.816 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.6133, allocations: 320.3 kB / 408.5 MB, free: 1.496 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.733e-05/0.6134, allocations: 15.98 kB / 408.6 MB, free: 1.48 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001134/0.6136, allocations: 40.3 kB / 408.6 MB, free: 1.426 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001106/0.6137, allocations: 27.92 kB / 408.6 MB, free: 1.398 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.6137, allocations: 0 / 408.6 MB, free: 1.398 MB / 330.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002999/0.614, allocations: 85.73 kB / 408.7 MB, free: 1.309 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.005e-05/0.6141, allocations: 8.031 kB / 408.7 MB, free: 1.301 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.6141, allocations: 4 kB / 408.7 MB, free: 1.297 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.932e-05/0.6141, allocations: 0 / 408.7 MB, free: 1.297 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001462/0.6143, allocations: 19.92 kB / 408.7 MB, free: 1.277 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.056e-06/0.6143, allocations: 0 / 408.7 MB, free: 1.277 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.009e-05/0.6144, allocations: 4 kB / 408.7 MB, free: 1.273 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.466e-05/0.6144, allocations: 4 kB / 408.7 MB, free: 1.27 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.0001419/0.6145, allocations: 117.8 kB / 408.9 MB, free: 1.145 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.015e-05/0.6146, allocations: 10.8 kB / 408.9 MB, free: 1.137 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.07e-05/0.6146, allocations: 15.89 kB / 408.9 MB, free: 1.117 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.6147, allocations: 0 / 408.9 MB, free: 1.117 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.6147, allocations: 0 / 408.9 MB, free: 1.117 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.6147, allocations: 3.938 kB / 408.9 MB, free: 1.113 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001967/0.6149, allocations: 173.6 kB / 409.1 MB, free: 0.8945 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.6149, allocations: 0 / 409.1 MB, free: 0.8945 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001082/0.615, allocations: 11.98 kB / 409.1 MB, free: 0.8828 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.562e-06/0.615, allocations: 7.938 kB / 409.1 MB, free: 0.875 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.381e-05/0.6151, allocations: 0 / 409.1 MB, free: 0.875 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.6151, allocations: 4 kB / 409.1 MB, free: 0.8711 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.6151, allocations: 0 / 409.1 MB, free: 0.8711 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004219/0.6155, allocations: 117 kB / 409.2 MB, free: 0.7383 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.673e-05/0.6156, allocations: 85.05 kB / 409.3 MB, free: 0.6367 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.777e-05/0.6157, allocations: 3.984 kB / 409.3 MB, free: 0.6328 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.97e-05/0.6157, allocations: 8.062 kB / 409.3 MB, free: 0.625 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.463e-05/0.6158, allocations: 0 / 409.3 MB, free: 0.625 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.452e-05/0.6158, allocations: 4 kB / 409.3 MB, free: 0.6211 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.642e-05/0.6159, allocations: 87.27 kB / 409.4 MB, free: 0.5352 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.8e-07/0.6159, allocations: 4 kB / 409.4 MB, free: 0.5312 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002731/0.6162, allocations: 12 kB / 409.4 MB, free: 0.5195 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.0001652/0.6164, allocations: 103.2 kB / 409.5 MB, free: 420 kB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002773/0.6167, allocations: 43.92 kB / 409.5 MB, free: 376 kB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.442e-06/0.6167, allocations: 0 / 409.5 MB, free: 376 kB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001084/0.6168, allocations: 23.92 kB / 409.6 MB, free: 352 kB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001539/0.617, allocations: 11.89 kB / 409.6 MB, free: 340 kB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000531/0.6175, allocations: 205.2 kB / 409.8 MB, free: 100 kB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003547/0.6179, allocations: 0.6848 MB / 410.5 MB, free: 15.39 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.638e-05/0.618, allocations: 15.44 kB / 410.5 MB, free: 15.37 MB / 346.7 MB Notification: Performance of SimCode: time 1.332e-06/0.618, allocations: 0 / 410.5 MB, free: 15.37 MB / 346.7 MB Notification: Performance of Templates: time 0.00311/0.6211, allocations: 0.7357 MB / 411.2 MB, free: 14.64 MB / 346.7 MB