Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.RootMeanSquare.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.RootMeanSquare,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_RootMeanSquare",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.216/2.216, allocations: 234.9 MB / 250.5 MB, free: 9.551 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004158/0.0004159, allocations: 12 kB / 314.4 MB, free: 9.516 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3495/0.3499, allocations: 54.87 MB / 369.3 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.002312/0.3523, allocations: 1.31 MB / 370.6 MB, free: 11.42 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001168/0.3535, allocations: 0.5288 MB / 371.1 MB, free: 10.89 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.025e-05/0.3536, allocations: 0 / 371.1 MB, free: 10.89 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.86e-05/0.3537, allocations: 15.86 kB / 371.1 MB, free: 10.88 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.495e-05/0.3538, allocations: 19.91 kB / 371.1 MB, free: 10.86 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002582/0.354, allocations: 47.88 kB / 371.2 MB, free: 10.81 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001412/0.3542, allocations: 59.86 kB / 371.3 MB, free: 10.75 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001519/0.3544, allocations: 27.94 kB / 371.3 MB, free: 10.72 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001088/0.3545, allocations: 35.84 kB / 371.3 MB, free: 10.69 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001142/0.3546, allocations: 35.83 kB / 371.3 MB, free: 10.65 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.204e-05/0.3546, allocations: 8 kB / 371.4 MB, free: 10.64 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.492e-05/0.3547, allocations: 4 kB / 371.4 MB, free: 10.64 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.936e-05/0.3547, allocations: 15.92 kB / 371.4 MB, free: 10.62 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.132e-05/0.3548, allocations: 41.64 kB / 371.4 MB, free: 10.58 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001295/0.3549, allocations: 63.86 kB / 371.5 MB, free: 10.52 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.555e-06/0.3549, allocations: 0 / 371.5 MB, free: 10.52 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.492e-06/0.355, allocations: 0 / 371.5 MB, free: 10.52 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.869e-06/0.355, allocations: 0 / 371.5 MB, free: 10.52 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007729/0.3558, allocations: 403.9 kB / 371.9 MB, free: 10.07 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/0.3558, allocations: 8.031 kB / 371.9 MB, free: 10.07 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.412e-05/0.3559, allocations: 42.55 kB / 371.9 MB, free: 10.02 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.29e-05/0.3559, allocations: 7.906 kB / 371.9 MB, free: 10.01 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002595/0.3562, allocations: 198.9 kB / 372.1 MB, free: 9.773 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.398e-06/0.3562, allocations: 0 / 372.1 MB, free: 9.773 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.886e-05/0.3563, allocations: 12 kB / 372.1 MB, free: 9.762 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002889/0.3566, allocations: 97.58 kB / 372.2 MB, free: 9.66 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.391e-05/0.3566, allocations: 0 / 372.2 MB, free: 9.66 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.132e-05/0.3566, allocations: 7.953 kB / 372.2 MB, free: 9.652 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.153e-06/0.3567, allocations: 4 kB / 372.2 MB, free: 9.648 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002223/0.3569, allocations: 47.97 kB / 372.3 MB, free: 9.602 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000706/0.3576, allocations: 384.4 kB / 372.7 MB, free: 9.176 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001947/0.3578, allocations: 58.59 kB / 372.7 MB, free: 9.109 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.76e-05/0.3578, allocations: 0 / 372.7 MB, free: 9.109 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002703/0.3581, allocations: 103.4 kB / 372.8 MB, free: 8.996 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.854e-06/0.3581, allocations: 0 / 372.8 MB, free: 8.996 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0005032/0.3587, allocations: 137.4 kB / 373 MB, free: 8.855 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.128e-05/0.3587, allocations: 51.41 kB / 373 MB, free: 8.793 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001496/0.3589, allocations: 144 kB / 373.1 MB, free: 8.645 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.81e-05/0.3589, allocations: 29.7 kB / 373.2 MB, free: 8.609 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.062e-05/0.359, allocations: 166.7 kB / 373.3 MB, free: 8.445 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.674e-05/0.3591, allocations: 31.55 kB / 373.4 MB, free: 8.414 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.204e-05/0.3591, allocations: 4 kB / 373.4 MB, free: 8.41 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.3592, allocations: 318.8 kB / 373.7 MB, free: 8.09 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001212/0.3594, allocations: 27.98 kB / 373.7 MB, free: 8.062 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001641/0.3596, allocations: 83.72 kB / 373.8 MB, free: 7.953 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001451/0.3597, allocations: 43.88 kB / 373.8 MB, free: 7.91 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.3597, allocations: 0 / 373.8 MB, free: 7.91 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003834/0.3601, allocations: 133.5 kB / 374 MB, free: 7.773 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.911e-05/0.3602, allocations: 8 kB / 374 MB, free: 7.766 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.3602, allocations: 4.219 kB / 374 MB, free: 7.762 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.876e-05/0.3602, allocations: 4 kB / 374 MB, free: 7.758 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001944/0.3604, allocations: 31.86 kB / 374 MB, free: 7.727 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.929e-06/0.3604, allocations: 3.984 kB / 374 MB, free: 7.723 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001151/0.3605, allocations: 19.84 kB / 374 MB, free: 7.703 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.531e-05/0.3606, allocations: 4 kB / 374 MB, free: 7.699 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.mean1.y,mean1.y,$whenCondition2,$whenCondition1,$PRE.rootMeanSquare.mean.y,rootMeanSquare.mean.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.0001301/0.3607, allocations: 125.8 kB / 374.2 MB, free: 7.566 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.673e-05/0.3608, allocations: 7.906 kB / 374.2 MB, free: 7.559 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.093e-05/0.3608, allocations: 24.64 kB / 374.2 MB, free: 7.527 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.3608, allocations: 0 / 374.2 MB, free: 7.527 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.3608, allocations: 0 / 374.2 MB, free: 7.527 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.147e-06/0.3608, allocations: 0 / 374.2 MB, free: 7.527 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002186/0.3611, allocations: 197.6 kB / 374.4 MB, free: 7.285 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.568e-06/0.3611, allocations: 3.953 kB / 374.4 MB, free: 7.281 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001539/0.3613, allocations: 12 kB / 374.4 MB, free: 7.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.3613, allocations: 0 / 374.4 MB, free: 7.27 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.265e-05/0.3613, allocations: 7.984 kB / 374.4 MB, free: 7.262 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.3613, allocations: 4 kB / 374.4 MB, free: 7.258 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.3613, allocations: 8 kB / 374.4 MB, free: 7.25 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005008/0.3618, allocations: 169.2 kB / 374.6 MB, free: 7.066 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.267e-05/0.3619, allocations: 92.88 kB / 374.7 MB, free: 6.957 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.283e-05/0.362, allocations: 4.031 kB / 374.7 MB, free: 6.953 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001103/0.3621, allocations: 12.05 kB / 374.7 MB, free: 6.941 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.358e-05/0.3621, allocations: 4 kB / 374.7 MB, free: 6.938 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.715e-05/0.3622, allocations: 7.984 kB / 374.7 MB, free: 6.93 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.701e-05/0.3623, allocations: 105.3 kB / 374.8 MB, free: 6.828 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.3623, allocations: 0 / 374.8 MB, free: 6.828 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003015/0.3626, allocations: 19.94 kB / 374.8 MB, free: 6.809 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (mean1.x,rootMeanSquare.mean.x) * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,mean1.y,rootMeanSquare.mean.y) * Number of discrete states: 2 (mean1.x,rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0008034/0.3634, allocations: 0.7178 MB / 375.5 MB, free: 6.062 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003086/0.3637, allocations: 75.91 kB / 375.6 MB, free: 5.988 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3637, allocations: 0.5 kB / 375.6 MB, free: 5.988 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001466/0.3639, allocations: 39.92 kB / 375.7 MB, free: 5.949 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001868/0.3641, allocations: 8 kB / 375.7 MB, free: 5.941 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009818/0.3651, allocations: 0.5722 MB / 376.2 MB, free: 5.293 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003193/0.3654, allocations: 0.7004 MB / 376.9 MB, free: 4.566 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.265e-05/0.3655, allocations: 31.42 kB / 377 MB, free: 4.535 MB / 298.7 MB Notification: Performance of SimCode: time 7.31e-07/0.3655, allocations: 0 / 377 MB, free: 4.535 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.263/2.628, allocations: 1.732 MB / 378.7 MB, free: 2.801 MB / 298.7 MB "" Variables in the reference:time,mean1.x,rootMeanSquare.mean.x,mean1.y,rootMeanSquare.mean.y Variables in the result:der(mean1.x),der(rootMeanSquare.mean.x),expSine.amplitude,expSine.damping,expSine.freqHz,expSine.offset,expSine.phase,expSine.startTime,expSine.y,mean1.f,mean1.t0,mean1.u,mean1.x,mean1.x0,mean1.y,mean1.yGreaterOrEqualZero,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