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: "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.022/2.022, allocations: 209.2 MB / 224.8 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006109/0.000611, allocations: 8 kB / 282.7 MB, free: 9.562 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.452/0.4527, allocations: 48.7 MB / 331.4 MB, free: 6.531 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1457/0.5984, allocations: 73.97 MB / 405.3 MB, free: 4.434 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003193/0.5988, allocations: 63.97 kB / 405.4 MB, free: 4.371 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00559/0.6044, allocations: 0.938 MB / 406.3 MB, free: 3.438 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.826e-06/0.6045, allocations: 0 / 406.3 MB, free: 3.438 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.197e-06/0.6045, allocations: 0 / 406.3 MB, free: 3.438 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.0006654/0.6052, allocations: 359.2 kB / 406.7 MB, free: 3.039 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.512e-05/0.6053, allocations: 12.03 kB / 406.7 MB, free: 3.027 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.846e-05/0.6054, allocations: 34.55 kB / 406.7 MB, free: 2.984 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.649e-05/0.6054, allocations: 3.906 kB / 406.7 MB, free: 2.98 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003036/0.6057, allocations: 186.9 kB / 406.9 MB, free: 2.758 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.893e-05/0.6058, allocations: 7.938 kB / 406.9 MB, free: 2.75 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.538e-05/0.6058, allocations: 4 kB / 406.9 MB, free: 2.746 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002614/0.6061, allocations: 53.67 kB / 407 MB, free: 2.688 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.576e-05/0.6062, allocations: 0 / 407 MB, free: 2.688 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.721e-05/0.6062, allocations: 0 / 407 MB, free: 2.688 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.123e-06/0.6062, allocations: 0 / 407 MB, free: 2.688 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001935/0.6064, allocations: 23.98 kB / 407 MB, free: 2.664 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007404/0.6072, allocations: 284.8 kB / 407.3 MB, free: 2.336 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001722/0.6074, allocations: 34.56 kB / 407.3 MB, free: 2.293 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.244e-05/0.6074, allocations: 0 / 407.3 MB, free: 2.293 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003643/0.6078, allocations: 75.47 kB / 407.4 MB, free: 2.207 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 3.397e-06/0.6078, allocations: 0.5469 kB / 407.4 MB, free: 2.207 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0005707/0.6084, allocations: 89.5 kB / 407.5 MB, free: 2.113 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.767e-05/0.6085, allocations: 51.41 kB / 407.5 MB, free: 2.051 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001436/0.6087, allocations: 105.2 kB / 407.6 MB, free: 1.938 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.111e-05/0.6087, allocations: 31.12 kB / 407.7 MB, free: 1.902 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001003/0.6088, allocations: 158.6 kB / 407.8 MB, free: 1.746 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.349e-05/0.6089, allocations: 11.75 kB / 407.8 MB, free: 1.734 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.293e-06/0.6089, allocations: 0 / 407.8 MB, free: 1.734 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001799/0.6091, allocations: 326.8 kB / 408.1 MB, free: 1.406 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001498/0.6092, allocations: 8 kB / 408.1 MB, free: 1.398 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001719/0.6094, allocations: 52.28 kB / 408.2 MB, free: 1.332 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001571/0.6096, allocations: 23.92 kB / 408.2 MB, free: 1.309 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.822e-06/0.6096, allocations: 0 / 408.2 MB, free: 1.309 MB / 330.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0003973/0.6101, allocations: 85.64 kB / 408.3 MB, free: 1.219 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.797e-05/0.6101, allocations: 4 kB / 408.3 MB, free: 1.215 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/0.6101, allocations: 4 kB / 408.3 MB, free: 1.211 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.285e-05/0.6102, allocations: 0 / 408.3 MB, free: 1.211 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001839/0.6104, allocations: 22.55 kB / 408.3 MB, free: 1.191 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.427e-06/0.6104, allocations: 0 / 408.3 MB, free: 1.191 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001194/0.6105, allocations: 8 kB / 408.3 MB, free: 1.184 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.734e-05/0.6106, allocations: 4 kB / 408.3 MB, free: 1.18 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.0001623/0.6107, allocations: 122.3 kB / 408.5 MB, free: 1.051 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.011e-05/0.6108, allocations: 3.906 kB / 408.5 MB, free: 1.047 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.139e-05/0.6109, allocations: 11.89 kB / 408.5 MB, free: 1.035 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.6109, allocations: 0 / 408.5 MB, free: 1.035 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.6109, allocations: 3.938 kB / 408.5 MB, free: 1.031 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.6109, allocations: 0 / 408.5 MB, free: 1.031 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002381/0.6112, allocations: 173.6 kB / 408.7 MB, free: 0.8125 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.6112, allocations: 0 / 408.7 MB, free: 0.8125 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001436/0.6113, allocations: 8 kB / 408.7 MB, free: 0.8047 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.306e-06/0.6114, allocations: 11.92 kB / 408.7 MB, free: 0.793 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.633e-05/0.6114, allocations: 0 / 408.7 MB, free: 0.793 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.6114, allocations: 0 / 408.7 MB, free: 0.793 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.235e-06/0.6114, allocations: 0 / 408.7 MB, free: 0.793 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005397/0.612, allocations: 121 kB / 408.8 MB, free: 0.6562 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.384e-05/0.6121, allocations: 85.2 kB / 408.9 MB, free: 0.5547 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.447e-05/0.6121, allocations: 4 kB / 408.9 MB, free: 0.5508 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.784e-05/0.6123, allocations: 7.984 kB / 408.9 MB, free: 0.543 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.505e-05/0.6123, allocations: 4 kB / 408.9 MB, free: 0.5391 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.547e-05/0.6124, allocations: 4 kB / 408.9 MB, free: 0.5352 MB / 330.7 MB Notification: Performance of sorting global known variables: time 9.797e-05/0.6125, allocations: 91.27 kB / 409 MB, free: 456 kB / 330.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.6125, allocations: 3.938 kB / 409 MB, free: 452 kB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004784/0.613, allocations: 8 kB / 409 MB, free: 444 kB / 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.00101/0.614, allocations: 0.6592 MB / 409.7 MB, free: 15.75 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003362/0.6144, allocations: 47.98 kB / 409.7 MB, free: 15.7 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.51e-06/0.6144, allocations: 0 / 409.7 MB, free: 15.7 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001424/0.6146, allocations: 15.98 kB / 409.7 MB, free: 15.68 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002081/0.6148, allocations: 4 kB / 409.7 MB, free: 15.68 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001433/0.6162, allocations: 1.031 MB / 410.7 MB, free: 14.57 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003844/0.6167, allocations: 0.6887 MB / 411.4 MB, free: 13.86 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.805e-05/0.6168, allocations: 15.42 kB / 411.5 MB, free: 13.84 MB / 346.7 MB Notification: Performance of SimCode: time 1.463e-06/0.6168, allocations: 0 / 411.5 MB, free: 13.84 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.642/3.259, allocations: 1.006 MB / 412.5 MB, free: 12.84 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.Mean_res.mat does not exist to compare? outputFormat=mat