Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.Mean.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.212/2.212, allocations: 234.9 MB / 250.5 MB, free: 9.562 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004321/0.0004322, allocations: 12 kB / 314.4 MB, free: 9.52 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3432/0.3437, allocations: 54.86 MB / 369.3 MB, free: 12.77 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003115/0.3468, allocations: 1.779 MB / 371 MB, free: 10.96 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001675/0.3485, allocations: 0.7261 MB / 371.8 MB, free: 10.23 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001351/0.3487, allocations: 7.938 kB / 371.8 MB, free: 10.23 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001146/0.3488, allocations: 27.72 kB / 371.8 MB, free: 10.2 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002216/0.3491, allocations: 43.86 kB / 371.8 MB, free: 10.16 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003662/0.3494, allocations: 107.7 kB / 371.9 MB, free: 10.05 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003377/0.3498, allocations: 191.6 kB / 372.1 MB, free: 9.863 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002595/0.3501, allocations: 98.58 kB / 372.2 MB, free: 9.766 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00021/0.3503, allocations: 95.56 kB / 372.3 MB, free: 9.672 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002229/0.3505, allocations: 119.4 kB / 372.4 MB, free: 9.555 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.877e-05/0.3506, allocations: 12 kB / 372.5 MB, free: 9.543 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.829e-05/0.3506, allocations: 8 kB / 372.5 MB, free: 9.535 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.728e-05/0.3507, allocations: 51.81 kB / 372.5 MB, free: 9.484 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.445e-05/0.3508, allocations: 77.52 kB / 372.6 MB, free: 9.402 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003423/0.3512, allocations: 232.4 kB / 372.8 MB, free: 9.176 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.3512, allocations: 0 / 372.8 MB, free: 9.176 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.654e-06/0.3512, allocations: 4 kB / 372.8 MB, free: 9.172 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.461e-06/0.3512, allocations: 0 / 372.8 MB, free: 9.172 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.001277/0.3525, allocations: 0.5554 MB / 373.4 MB, free: 8.57 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.255e-05/0.3526, allocations: 8.031 kB / 373.4 MB, free: 8.562 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001425/0.3527, allocations: 71 kB / 373.5 MB, free: 8.48 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.488e-05/0.3528, allocations: 35.53 kB / 373.5 MB, free: 8.445 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006394/0.3535, allocations: 318 kB / 373.8 MB, free: 8.094 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.927e-05/0.3535, allocations: 28.56 kB / 373.8 MB, free: 8.066 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.759e-05/0.3536, allocations: 31.98 kB / 373.9 MB, free: 8.035 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008209/0.3545, allocations: 268.8 kB / 374.1 MB, free: 7.766 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.063e-05/0.3545, allocations: 0 / 374.1 MB, free: 7.766 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.427e-05/0.3546, allocations: 19.94 kB / 374.1 MB, free: 7.746 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.568e-06/0.3546, allocations: 4 kB / 374.1 MB, free: 7.742 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007371/0.3553, allocations: 210.1 kB / 374.3 MB, free: 7.539 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001987/0.3573, allocations: 0.8031 MB / 375.1 MB, free: 6.68 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006556/0.358, allocations: 210.8 kB / 375.4 MB, free: 6.465 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.593e-05/0.3581, allocations: 4 kB / 375.4 MB, free: 6.461 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006604/0.3587, allocations: 239.1 kB / 375.6 MB, free: 6.215 MB / 298.7 MB Notification: Performance of pre-optimization done (n=31): time 2.465e-06/0.3587, allocations: 0 / 375.6 MB, free: 6.215 MB / 298.7 MB Notification: Performance of matching and sorting (n=31): time 0.001303/0.3601, allocations: 385.2 kB / 376 MB, free: 5.832 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.826e-05/0.3601, allocations: 55.41 kB / 376 MB, free: 5.766 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003107/0.3604, allocations: 232.9 kB / 376.3 MB, free: 5.531 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.279e-05/0.3605, allocations: 37.7 kB / 376.3 MB, free: 5.488 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001543/0.3607, allocations: 230.9 kB / 376.5 MB, free: 5.258 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001133/0.3608, allocations: 98.64 kB / 376.6 MB, free: 5.16 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.254e-05/0.3608, allocations: 8 kB / 376.6 MB, free: 5.152 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.361, allocations: 326.8 kB / 376.9 MB, free: 4.824 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003531/0.3614, allocations: 88.7 kB / 377 MB, free: 4.734 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004734/0.3618, allocations: 230.6 kB / 377.2 MB, free: 4.449 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004236/0.3623, allocations: 123.8 kB / 377.4 MB, free: 4.328 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.803e-06/0.3623, allocations: 4 kB / 377.4 MB, free: 4.324 MB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001039/0.3633, allocations: 365.4 kB / 377.7 MB, free: 3.961 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.169e-05/0.3634, allocations: 5.25 kB / 377.7 MB, free: 3.957 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/0.3634, allocations: 7.938 kB / 377.7 MB, free: 3.949 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.984e-05/0.3634, allocations: 8 kB / 377.8 MB, free: 3.941 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005197/0.364, allocations: 75.89 kB / 377.8 MB, free: 3.867 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.831e-05/0.364, allocations: 11.89 kB / 377.8 MB, free: 3.855 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002862/0.3643, allocations: 43.67 kB / 377.9 MB, free: 3.812 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.636e-05/0.3643, allocations: 20 kB / 377.9 MB, free: 3.793 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.mean.y,mean.y,$PRE.rectifiedMean.mean.y,rectifiedMean.mean.y,$PRE.rootMeanSquare.mean.y,rootMeanSquare.mean.y,$PRE.harmonic.mean1.y,harmonic.mean1.y,$PRE.harmonic.mean2.y,harmonic.mean2.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 46 * 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.0002368/0.3646, allocations: 165.6 kB / 378.1 MB, free: 3.621 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.838e-05/0.3647, allocations: 23.72 kB / 378.1 MB, free: 3.598 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001045/0.3657, allocations: 335.4 kB / 378.4 MB, free: 3.27 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.578e-06/0.3657, allocations: 4 kB / 378.4 MB, free: 3.266 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.802e-06/0.3658, allocations: 4.141 kB / 378.4 MB, free: 3.262 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.658e-06/0.3658, allocations: 7.938 kB / 378.4 MB, free: 3.254 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001476/0.3673, allocations: 0.7207 MB / 379.1 MB, free: 2.477 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.3673, allocations: 0 / 379.1 MB, free: 2.477 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004666/0.3677, allocations: 47.97 kB / 379.2 MB, free: 2.43 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.3678, allocations: 0 / 379.2 MB, free: 2.43 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.587e-05/0.3678, allocations: 19.98 kB / 379.2 MB, free: 2.41 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.3678, allocations: 3.938 kB / 379.2 MB, free: 2.406 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.3679, allocations: 3.953 kB / 379.2 MB, free: 2.402 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001419/0.3693, allocations: 0.5268 MB / 379.7 MB, free: 1.859 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.861e-05/0.3694, allocations: 104.7 kB / 379.9 MB, free: 1.738 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.404e-05/0.3695, allocations: 8.094 kB / 379.9 MB, free: 1.73 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002916/0.3698, allocations: 19.92 kB / 379.9 MB, free: 1.711 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.223e-05/0.3699, allocations: 27.92 kB / 379.9 MB, free: 1.684 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.077e-05/0.3699, allocations: 19.98 kB / 379.9 MB, free: 1.664 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002236/0.3702, allocations: 164.5 kB / 380.1 MB, free: 1.504 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.3702, allocations: 0 / 380.1 MB, free: 1.504 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004719/0.3707, allocations: 63.84 kB / 380.1 MB, free: 1.441 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (mean.x,rectifiedMean.mean.x,rootMeanSquare.mean.x,harmonic.mean1.x,harmonic.mean2.x) * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,mean.y,rectifiedMean.mean.y,rootMeanSquare.mean.y,harmonic.mean1.y,harmonic.mean2.y) * Number of discrete states: 5 (harmonic.mean2.x,harmonic.mean1.x,rootMeanSquare.mean.x,rectifiedMean.mean.x,mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.001762/0.3724, allocations: 1.091 MB / 381.2 MB, free: 336 kB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008771/0.3733, allocations: 272.5 kB / 381.5 MB, free: 64 kB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.3733, allocations: 4.188 kB / 381.5 MB, free: 60 kB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004581/0.3738, allocations: 144.3 kB / 381.6 MB, free: 15.92 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003636/0.3742, allocations: 24.42 kB / 381.7 MB, free: 15.89 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002081/0.3763, allocations: 1.128 MB / 382.8 MB, free: 14.65 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004289/0.3767, allocations: 0.7958 MB / 383.6 MB, free: 13.83 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002731/0.377, allocations: 107.4 kB / 383.7 MB, free: 13.72 MB / 314.7 MB Notification: Performance of SimCode: time 5.71e-07/0.377, allocations: 0 / 383.7 MB, free: 13.72 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.309/2.686, allocations: 4.501 MB / 388.2 MB, free: 9.227 MB / 314.7 MB "" Variables in the reference:time,mean.x,mean.y Variables in the result:cosine.amplitude,cosine.freqHz,cosine.offset,cosine.phase,cosine.startTime,cosine.y,der(harmonic.mean1.x),der(harmonic.mean2.x),der(mean.x),der(rectifiedMean.mean.x),der(rootMeanSquare.mean.x),harmonic.f,harmonic.k,harmonic.mean1.f,harmonic.mean1.t0,harmonic.mean1.u,harmonic.mean1.x,harmonic.mean1.x0,harmonic.mean1.y,harmonic.mean1.yGreaterOrEqualZero,harmonic.mean2.f,harmonic.mean2.t0,harmonic.mean2.u,harmonic.mean2.x,harmonic.mean2.x0,harmonic.mean2.y,harmonic.mean2.yGreaterOrEqualZero,harmonic.product1.nu,harmonic.product1.significantDigits,harmonic.product1.u[1],harmonic.product1.u[2],harmonic.product1.y,harmonic.product2.nu,harmonic.product2.significantDigits,harmonic.product2.u[1],harmonic.product2.u[2],harmonic.product2.y,harmonic.rectangularToPolar.u_im,harmonic.rectangularToPolar.u_re,harmonic.rectangularToPolar.y_abs,harmonic.rectangularToPolar.y_arg,harmonic.sin1.amplitude,harmonic.sin1.freqHz,harmonic.sin1.offset,harmonic.sin1.phase,harmonic.sin1.startTime,harmonic.sin1.y,harmonic.sin2.amplitude,harmonic.sin2.freqHz,harmonic.sin2.offset,harmonic.sin2.phase,harmonic.sin2.startTime,harmonic.sin2.y,harmonic.u,harmonic.x0Cos,harmonic.x0Sin,harmonic.y_arg,harmonic.y_rms,mean.f,mean.t0,mean.u,mean.x,mean.x0,mean.y,mean.yGreaterOrEqualZero,polarToRectangular.u_abs,polarToRectangular.u_arg,polarToRectangular.y_im,polarToRectangular.y_re,rectangularToPolar.u_im,rectangularToPolar.u_re,rectangularToPolar.y_abs,rectangularToPolar.y_arg,rectifiedMean.abs1.generateEvent,rectifiedMean.abs1.u,rectifiedMean.abs1.y,rectifiedMean.f,rectifiedMean.mean.f,rectifiedMean.mean.t0,rectifiedMean.mean.u,rectifiedMean.mean.x,rectifiedMean.mean.x0,rectifiedMean.mean.y,rectifiedMean.mean.yGreaterOrEqualZero,rectifiedMean.u,rectifiedMean.x0,rectifiedMean.y,rootMeanSquare.f,rootMeanSquare.mean.f,rootMeanSquare.mean.t0,rootMeanSquare.mean.u,rootMeanSquare.mean.x,rootMeanSquare.mean.x0,rootMeanSquare.mean.y,rootMeanSquare.mean.yGreaterOrEqualZero,rootMeanSquare.product.nu,rootMeanSquare.product.significantDigits,rootMeanSquare.product.u[1],rootMeanSquare.product.u[2],rootMeanSquare.product.y,rootMeanSquare.sqrt1.u,rootMeanSquare.sqrt1.y,rootMeanSquare.u,rootMeanSquare.x0,rootMeanSquare.y,time,yHarmonicAbs,yHarmonicArg,yHarmonicCos,yHarmonicSin,yMean,yRectifiedMean,yRootMeanSquare