Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.RootMeanSquare.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.RootMeanSquare,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Blocks_RootMeanSquare",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.969/1.969, allocations: 209.3 MB / 224.8 MB, free: 1.688 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004845/0.0004847, allocations: 16 kB / 282.6 MB, free: 9.738 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1072, allocations: 48.71 MB / 331.3 MB, free: 8.938 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.002328/0.1095, allocations: 1.295 MB / 332.6 MB, free: 7.633 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001242/0.1108, allocations: 0.5305 MB / 333.1 MB, free: 7.098 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.612e-05/0.111, allocations: 0 / 333.1 MB, free: 7.098 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 9.423e-05/0.1111, allocations: 3.938 kB / 333.1 MB, free: 7.094 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 6.902e-05/0.1111, allocations: 19.91 kB / 333.1 MB, free: 7.074 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002984/0.1115, allocations: 35.89 kB / 333.2 MB, free: 7.039 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001589/0.1116, allocations: 67.86 kB / 333.2 MB, free: 6.973 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001455/0.1118, allocations: 31.95 kB / 333.3 MB, free: 6.941 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001207/0.1119, allocations: 31.86 kB / 333.3 MB, free: 6.91 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001249/0.1121, allocations: 35.83 kB / 333.3 MB, free: 6.875 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.469e-05/0.1121, allocations: 4 kB / 333.3 MB, free: 6.871 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.586e-05/0.1121, allocations: 4 kB / 333.3 MB, free: 6.867 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.715e-05/0.1122, allocations: 15.92 kB / 333.3 MB, free: 6.852 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.039e-05/0.1123, allocations: 45.64 kB / 333.4 MB, free: 6.801 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001628/0.1124, allocations: 67.84 kB / 333.5 MB, free: 6.734 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.1124, allocations: 4 kB / 333.5 MB, free: 6.73 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1125, allocations: 3.938 kB / 333.5 MB, free: 6.727 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.09e-06/0.1125, allocations: 0 / 333.5 MB, free: 6.727 MB / 282.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.0008113/0.1133, allocations: 391.3 kB / 333.9 MB, free: 6.297 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.823e-05/0.1134, allocations: 8.031 kB / 333.9 MB, free: 6.289 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.314e-05/0.1134, allocations: 38.56 kB / 333.9 MB, free: 6.242 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.914e-05/0.1135, allocations: 15.81 kB / 333.9 MB, free: 6.227 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002748/0.1138, allocations: 214.8 kB / 334.1 MB, free: 5.977 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.36e-05/0.1138, allocations: 0 / 334.1 MB, free: 5.977 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.726e-05/0.1138, allocations: 12 kB / 334.1 MB, free: 5.965 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002963/0.1142, allocations: 89.64 kB / 334.2 MB, free: 5.871 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.45e-05/0.1142, allocations: 0 / 334.2 MB, free: 5.871 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.349e-05/0.1142, allocations: 8 kB / 334.2 MB, free: 5.863 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/0.1142, allocations: 0 / 334.2 MB, free: 5.863 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002336/0.1145, allocations: 55.92 kB / 334.3 MB, free: 5.809 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007381/0.1152, allocations: 364.6 kB / 334.6 MB, free: 5.402 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002066/0.1155, allocations: 70.48 kB / 334.7 MB, free: 5.324 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.072e-05/0.1155, allocations: 7.938 kB / 334.7 MB, free: 5.316 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000304/0.1158, allocations: 99.48 kB / 334.8 MB, free: 5.207 MB / 282.7 MB Notification: Performance of pre-optimization done (n=9): time 2.635e-06/0.1158, allocations: 0 / 334.8 MB, free: 5.207 MB / 282.7 MB Notification: Performance of matching and sorting (n=9): time 0.0005402/0.1164, allocations: 133.4 kB / 334.9 MB, free: 5.07 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.985e-05/0.1164, allocations: 55.41 kB / 335 MB, free: 5.004 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001745/0.1166, allocations: 145.2 kB / 335.1 MB, free: 4.852 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.689e-05/0.1167, allocations: 29.7 kB / 335.2 MB, free: 4.816 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001012/0.1168, allocations: 170.7 kB / 335.3 MB, free: 4.645 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.686e-05/0.1168, allocations: 27.61 kB / 335.4 MB, free: 4.617 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.846e-06/0.1169, allocations: 0 / 335.4 MB, free: 4.617 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.117, allocations: 318.8 kB / 335.7 MB, free: 4.297 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001256/0.1171, allocations: 27.92 kB / 335.7 MB, free: 4.27 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001668/0.1173, allocations: 87.64 kB / 335.8 MB, free: 4.156 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001493/0.1175, allocations: 43.98 kB / 335.8 MB, free: 4.113 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.287e-06/0.1175, allocations: 0 / 335.8 MB, free: 4.113 MB / 282.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004092/0.1179, allocations: 137.4 kB / 336 MB, free: 3.973 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.092e-05/0.1179, allocations: 4 kB / 336 MB, free: 3.969 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.143e-05/0.118, allocations: 7.984 kB / 336 MB, free: 3.961 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.025e-05/0.118, allocations: 0 / 336 MB, free: 3.961 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002056/0.1182, allocations: 27.92 kB / 336 MB, free: 3.934 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.193e-05/0.1182, allocations: 4 kB / 336 MB, free: 3.93 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001249/0.1184, allocations: 20.06 kB / 336 MB, free: 3.91 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.174e-05/0.1184, allocations: 11.98 kB / 336 MB, free: 3.898 MB / 282.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.0001468/0.1186, allocations: 125.8 kB / 336.2 MB, free: 3.766 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.215e-05/0.1186, allocations: 11.86 kB / 336.2 MB, free: 3.754 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.871e-05/0.1187, allocations: 8.719 kB / 336.2 MB, free: 3.746 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.554e-06/0.1187, allocations: 8 kB / 336.2 MB, free: 3.738 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.1187, allocations: 0 / 336.2 MB, free: 3.738 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.1187, allocations: 3.984 kB / 336.2 MB, free: 3.734 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002293/0.119, allocations: 205.5 kB / 336.4 MB, free: 3.484 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.119, allocations: 4 kB / 336.4 MB, free: 3.48 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001665/0.1191, allocations: 15.98 kB / 336.4 MB, free: 3.465 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.082e-06/0.1192, allocations: 3.953 kB / 336.4 MB, free: 3.461 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.739e-05/0.1192, allocations: 0 / 336.4 MB, free: 3.461 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.899e-06/0.1192, allocations: 3.984 kB / 336.4 MB, free: 3.457 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.1192, allocations: 3.938 kB / 336.4 MB, free: 3.453 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005386/0.1198, allocations: 185.1 kB / 336.6 MB, free: 3.254 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.992e-05/0.1199, allocations: 97.03 kB / 336.7 MB, free: 3.141 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.959e-05/0.1199, allocations: 3.953 kB / 336.7 MB, free: 3.137 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001032/0.12, allocations: 4 kB / 336.7 MB, free: 3.133 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.351e-05/0.1201, allocations: 7.984 kB / 336.7 MB, free: 3.125 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.685e-05/0.1201, allocations: 4 kB / 336.7 MB, free: 3.121 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001039/0.1202, allocations: 107.2 kB / 336.8 MB, free: 3.016 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.1202, allocations: 64 / 336.8 MB, free: 3.016 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003124/0.1206, allocations: 24 kB / 336.8 MB, free: 2.992 MB / 282.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.0008121/0.1214, allocations: 0.71 MB / 337.6 MB, free: 2.254 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003571/0.1218, allocations: 79.91 kB / 337.6 MB, free: 2.176 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.1218, allocations: 4 kB / 337.6 MB, free: 2.172 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001489/0.122, allocations: 35.91 kB / 337.7 MB, free: 2.137 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002085/0.1222, allocations: 8 kB / 337.7 MB, free: 2.129 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001036/0.1232, allocations: 0.5689 MB / 338.3 MB, free: 1.484 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003066/0.1236, allocations: 0.7125 MB / 339 MB, free: 0.7461 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.179e-05/0.1237, allocations: 27.42 kB / 339 MB, free: 0.7188 MB / 282.7 MB Notification: Performance of SimCode: time 1.183e-06/0.1237, allocations: 4 kB / 339 MB, free: 0.7148 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.729/2.853, allocations: 1.715 MB / 340.7 MB, free: 14.79 MB / 282.7 MB "Error: Could not read variable expSine.pi in file ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.RootMeanSquare_res.mat. Warning: Get data of variable expSine.pi from file ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.RootMeanSquare_res.mat failed! " 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