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 1.884/1.884, allocations: 209.2 MB / 224.8 MB, free: 0.5352 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006527/0.0006528, allocations: 12 kB / 282.6 MB, free: 9.59 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.399/0.3997, allocations: 48.71 MB / 331.3 MB, free: 6.488 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.002031/0.4018, allocations: 1.163 MB / 332.4 MB, free: 5.918 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009615/0.4028, allocations: 467.8 kB / 332.9 MB, free: 5.605 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.172e-05/0.4029, allocations: 1.562 kB / 332.9 MB, free: 5.605 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 1.648e-05/0.4029, allocations: 4.516 kB / 332.9 MB, free: 5.602 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 7.808e-05/0.403, allocations: 6.109 kB / 332.9 MB, free: 5.598 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002007/0.4032, allocations: 29.38 kB / 332.9 MB, free: 5.578 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 8.09e-05/0.4033, allocations: 25.5 kB / 333 MB, free: 5.566 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001032/0.4034, allocations: 5.703 kB / 333 MB, free: 5.566 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001118/0.4035, allocations: 20.69 kB / 333 MB, free: 5.555 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.61e-05/0.4036, allocations: 17.28 kB / 333 MB, free: 5.547 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.157e-05/0.4037, allocations: 1.312 kB / 333 MB, free: 5.547 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.591e-05/0.4037, allocations: 5.438 kB / 333 MB, free: 5.543 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.81e-05/0.4037, allocations: 3.219 kB / 333 MB, free: 5.543 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.233e-05/0.4038, allocations: 33.36 kB / 333 MB, free: 5.508 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 8.296e-05/0.4038, allocations: 24.95 kB / 333.1 MB, free: 5.5 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.525e-06/0.4039, allocations: 0 / 333.1 MB, free: 5.5 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.4039, allocations: 1.438 kB / 333.1 MB, free: 5.5 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.1e-06/0.4039, allocations: 0 / 333.1 MB, free: 5.5 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.0004622/0.4044, allocations: 345.8 kB / 333.4 MB, free: 5.145 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.599e-05/0.4044, allocations: 14.22 kB / 333.4 MB, free: 5.141 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.577e-05/0.4045, allocations: 31.78 kB / 333.5 MB, free: 5.102 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.082e-05/0.4045, allocations: 6.906 kB / 333.5 MB, free: 5.098 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001431/0.4047, allocations: 175 kB / 333.6 MB, free: 4.895 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.289e-05/0.4047, allocations: 2.562 kB / 333.6 MB, free: 4.895 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.73e-05/0.4047, allocations: 3 kB / 333.6 MB, free: 4.895 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001809/0.4049, allocations: 52.45 kB / 333.7 MB, free: 4.855 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.229e-05/0.4049, allocations: 1.375 kB / 333.7 MB, free: 4.855 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.476e-05/0.405, allocations: 8.609 kB / 333.7 MB, free: 4.848 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.405, allocations: 1.094 kB / 333.7 MB, free: 4.848 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001373/0.4051, allocations: 19.61 kB / 333.7 MB, free: 4.848 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004097/0.4055, allocations: 273.7 kB / 334 MB, free: 4.562 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001131/0.4057, allocations: 45.14 kB / 334 MB, free: 4.523 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.96e-05/0.4057, allocations: 1.406 kB / 334 MB, free: 4.523 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002356/0.4059, allocations: 70.81 kB / 334.1 MB, free: 4.469 MB / 266.7 MB Notification: Performance of pre-optimization done (n=4): time 2.254e-06/0.406, allocations: 0 / 334.1 MB, free: 4.469 MB / 266.7 MB Notification: Performance of matching and sorting (n=4): time 0.0003766/0.4063, allocations: 87.66 kB / 334.2 MB, free: 4.422 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.461e-05/0.4064, allocations: 56.44 kB / 334.2 MB, free: 4.355 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.343e-05/0.4065, allocations: 114.9 kB / 334.4 MB, free: 4.25 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.503e-05/0.4065, allocations: 27.48 kB / 334.4 MB, free: 4.219 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.584e-05/0.4066, allocations: 159.8 kB / 334.5 MB, free: 4.062 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.383e-05/0.4066, allocations: 15.08 kB / 334.6 MB, free: 4.051 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.771e-06/0.4066, allocations: 0 / 334.6 MB, free: 4.051 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.978e-05/0.4067, allocations: 321.2 kB / 334.9 MB, free: 3.73 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.459e-05/0.4068, allocations: 16.2 kB / 334.9 MB, free: 3.727 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001004/0.4069, allocations: 48.7 kB / 334.9 MB, free: 3.68 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.538e-05/0.407, allocations: 22.34 kB / 335 MB, free: 3.672 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.407, allocations: 0.5156 kB / 335 MB, free: 3.672 MB / 266.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002508/0.4073, allocations: 87.77 kB / 335 MB, free: 3.621 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.845e-05/0.4073, allocations: 6.281 kB / 335 MB, free: 3.621 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.4073, allocations: 2.062 kB / 335 MB, free: 3.621 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.584e-05/0.4074, allocations: 5.25 kB / 335 MB, free: 3.617 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001624/0.4075, allocations: 12.12 kB / 335.1 MB, free: 3.617 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.099e-05/0.4076, allocations: 10.88 kB / 335.1 MB, free: 3.609 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.537e-05/0.4076, allocations: 4.375 kB / 335.1 MB, free: 3.609 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.243e-05/0.4077, allocations: 2.969 kB / 335.1 MB, free: 3.609 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 8.185e-05/0.4078, allocations: 119 kB / 335.2 MB, free: 3.488 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.942e-05/0.4078, allocations: 6.969 kB / 335.2 MB, free: 3.484 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.81e-05/0.4078, allocations: 14.58 kB / 335.2 MB, free: 3.469 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.4078, allocations: 0 / 335.2 MB, free: 3.469 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.4079, allocations: 5.234 kB / 335.2 MB, free: 3.465 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.4079, allocations: 0.6562 kB / 335.2 MB, free: 3.465 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001229/0.408, allocations: 170.2 kB / 335.4 MB, free: 3.266 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.836e-06/0.408, allocations: 1.125 kB / 335.4 MB, free: 3.266 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.777e-05/0.4081, allocations: 7.484 kB / 335.4 MB, free: 3.266 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.4081, allocations: 0 / 335.4 MB, free: 3.266 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.737e-05/0.4082, allocations: 6.188 kB / 335.4 MB, free: 3.262 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.903e-06/0.4082, allocations: 3.938 kB / 335.4 MB, free: 3.258 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.4082, allocations: 1.875 kB / 335.4 MB, free: 3.258 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003505/0.4085, allocations: 124.5 kB / 335.5 MB, free: 3.168 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.986e-05/0.4086, allocations: 89.72 kB / 335.6 MB, free: 3.066 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.438e-05/0.4086, allocations: 0.6562 kB / 335.6 MB, free: 3.066 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.78e-05/0.4087, allocations: 4.125 kB / 335.6 MB, free: 3.066 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.226e-05/0.4088, allocations: 8.344 kB / 335.6 MB, free: 3.062 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.618e-06/0.4088, allocations: 2.141 kB / 335.6 MB, free: 3.062 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.695e-05/0.4089, allocations: 89.02 kB / 335.7 MB, free: 2.984 MB / 266.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.4089, allocations: 0 / 335.7 MB, free: 2.984 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002442/0.4091, allocations: 7.953 kB / 335.7 MB, free: 2.984 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 0.0005223/0.4096, allocations: 0.66 MB / 336.4 MB, free: 2.363 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000228/0.4099, allocations: 41.44 kB / 336.4 MB, free: 2.355 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/0.4099, allocations: 0 / 336.4 MB, free: 2.355 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001061/0.41, allocations: 24.59 kB / 336.5 MB, free: 2.348 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001385/0.4102, allocations: 3.203 kB / 336.5 MB, free: 2.348 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006503/0.4108, allocations: 432.8 kB / 336.9 MB, free: 1.922 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001305/0.411, allocations: 0.6858 MB / 337.6 MB, free: 1.227 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.625e-05/0.4111, allocations: 17.47 kB / 337.6 MB, free: 1.215 MB / 266.7 MB Notification: Performance of SimCode: time 1.012e-06/0.4111, allocations: 0 / 337.6 MB, free: 1.215 MB / 266.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.363/2.774, allocations: 0.9919 MB / 338.6 MB, free: 1.055 MB / 266.7 MB "Error: Could not read variable sine.pi in file ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.Mean_res.mat. Warning: Get data of variable sine.pi from file ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.Mean_res.mat failed! " Variables in the reference:time,mean.x,mean.y Variables in the result:der(mean.x),mean.f,mean.t0,mean.u,mean.x,mean.x0,mean.y,mean.yGreaterOrEqualZero,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,sine.y,time