Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.RootMeanSquare.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_RootMeanSquare",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_RootMeanSquare",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008308/0.0008308, allocations: 174.5 kB / 16.72 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.118/1.118, allocations: 205.4 MB / 222.9 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006732/0.0006732, allocations: 89.88 kB / 271.2 MB, free: 8.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2761/0.2761, allocations: 43.56 MB / 363.1 MB, free: 52.16 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003154/0.0003154, allocations: 12 kB / 432.1 MB, free: 5.727 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08719/0.08752, allocations: 58.84 MB / 490.9 MB, free: 10.8 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.001527/0.08908, allocations: 1.346 MB / 492.3 MB, free: 9.441 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007211/0.08982, allocations: 0.5388 MB / 492.8 MB, free: 8.895 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.16e-05/0.08989, allocations: 7.938 kB / 492.8 MB, free: 8.887 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 6.884e-05/0.08997, allocations: 3.938 kB / 492.8 MB, free: 8.883 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 3.881e-05/0.09001, allocations: 7.922 kB / 492.8 MB, free: 8.875 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002038/0.09022, allocations: 47.89 kB / 492.9 MB, free: 8.828 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001182/0.09035, allocations: 99.69 kB / 493 MB, free: 8.73 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001178/0.09048, allocations: 31.91 kB / 493 MB, free: 8.699 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.879e-05/0.09056, allocations: 35.84 kB / 493 MB, free: 8.664 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.61e-05/0.09066, allocations: 35.84 kB / 493.1 MB, free: 8.629 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.811e-05/0.09069, allocations: 4 kB / 493.1 MB, free: 8.625 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.305e-05/0.0907, allocations: 0 / 493.1 MB, free: 8.625 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 2.724e-05/0.09074, allocations: 15.92 kB / 493.1 MB, free: 8.609 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 6.293e-05/0.09081, allocations: 65.48 kB / 493.1 MB, free: 8.539 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 9.472e-05/0.09091, allocations: 72.09 kB / 493.2 MB, free: 8.469 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.09092, allocations: 0 / 493.2 MB, free: 8.469 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.09093, allocations: 3.938 kB / 493.2 MB, free: 8.465 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.186e-06/0.09094, allocations: 0 / 493.2 MB, free: 8.465 MB / 378.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.0005691/0.09151, allocations: 391.2 kB / 493.6 MB, free: 8.035 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.207e-05/0.09156, allocations: 12.03 kB / 493.6 MB, free: 8.023 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.078e-05/0.09161, allocations: 38.75 kB / 493.7 MB, free: 7.977 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.373e-05/0.09165, allocations: 16.83 kB / 493.7 MB, free: 7.961 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002003/0.09185, allocations: 207.7 kB / 493.9 MB, free: 7.723 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.524e-05/0.09188, allocations: 12.31 kB / 493.9 MB, free: 7.711 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.375e-05/0.09191, allocations: 4.375 kB / 493.9 MB, free: 7.707 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002135/0.09213, allocations: 97.77 kB / 494 MB, free: 7.605 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.472e-05/0.09215, allocations: 7.938 kB / 494 MB, free: 7.598 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.338e-05/0.09217, allocations: 0 / 494 MB, free: 7.598 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.09218, allocations: 0 / 494 MB, free: 7.598 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001464/0.09233, allocations: 55.97 kB / 494 MB, free: 7.543 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005167/0.09286, allocations: 368.6 kB / 494.4 MB, free: 7.133 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001417/0.09301, allocations: 66.48 kB / 494.5 MB, free: 7.059 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.971e-05/0.09309, allocations: 36.92 kB / 494.5 MB, free: 7.02 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.899e-05/0.09312, allocations: 0 / 494.5 MB, free: 7.02 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001863/0.09331, allocations: 107.2 kB / 494.6 MB, free: 6.902 MB / 378.7 MB Notification: Performance of pre-optimization done (n=9): time 1.243e-06/0.09332, allocations: 0 / 494.6 MB, free: 6.902 MB / 378.7 MB Notification: Performance of matching and sorting (n=9): time 0.000319/0.09364, allocations: 129.5 kB / 494.7 MB, free: 6.77 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.314e-05/0.09369, allocations: 51.41 kB / 494.8 MB, free: 6.707 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001083/0.0938, allocations: 145.8 kB / 494.9 MB, free: 6.555 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.624e-05/0.09382, allocations: 25.7 kB / 495 MB, free: 6.523 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.258e-05/0.09388, allocations: 112.2 kB / 495.1 MB, free: 6.41 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.393e-05/0.09391, allocations: 19.72 kB / 495.1 MB, free: 6.391 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.492e-05/0.09393, allocations: 4 kB / 495.1 MB, free: 6.387 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.816e-05/0.09404, allocations: 318.8 kB / 495.4 MB, free: 6.066 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.776e-05/0.09411, allocations: 27.98 kB / 495.4 MB, free: 6.039 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.747e-05/0.09421, allocations: 95.3 kB / 495.5 MB, free: 5.922 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001723/0.0944, allocations: 123.6 kB / 495.6 MB, free: 5.773 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.09441, allocations: 4 kB / 495.6 MB, free: 5.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002413/0.09465, allocations: 153.3 kB / 495.8 MB, free: 5.613 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.39e-05/0.09468, allocations: 8 kB / 495.8 MB, free: 5.605 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.65e-06/0.09469, allocations: 384 / 495.8 MB, free: 5.605 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.735e-05/0.09471, allocations: 4 kB / 495.8 MB, free: 5.602 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001118/0.09482, allocations: 27.92 kB / 495.8 MB, free: 5.574 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.086e-05/0.09484, allocations: 7.922 kB / 495.8 MB, free: 5.566 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.685e-05/0.09492, allocations: 11.94 kB / 495.9 MB, free: 5.555 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.362e-05/0.09494, allocations: 8.156 kB / 495.9 MB, free: 5.547 MB / 378.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 9.68e-05/0.09504, allocations: 129.8 kB / 496 MB, free: 5.41 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.674e-05/0.09506, allocations: 11.91 kB / 496 MB, free: 5.398 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.287e-05/0.09511, allocations: 12.72 kB / 496 MB, free: 5.387 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.09512, allocations: 0 / 496 MB, free: 5.387 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.09513, allocations: 3.938 kB / 496 MB, free: 5.383 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.09514, allocations: 0 / 496 MB, free: 5.383 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00015/0.09529, allocations: 205.5 kB / 496.2 MB, free: 5.133 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.0953, allocations: 0 / 496.2 MB, free: 5.133 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.44e-05/0.0954, allocations: 23.98 kB / 496.2 MB, free: 5.109 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.09541, allocations: 0 / 496.2 MB, free: 5.109 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.209e-05/0.09543, allocations: 0 / 496.2 MB, free: 5.109 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.045e-06/0.09543, allocations: 0 / 496.2 MB, free: 5.109 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.139e-06/0.09544, allocations: 11.88 kB / 496.2 MB, free: 5.098 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003036/0.09575, allocations: 176.9 kB / 496.4 MB, free: 4.906 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.597e-05/0.0958, allocations: 81.02 kB / 496.5 MB, free: 4.809 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.45e-05/0.09583, allocations: 11.98 kB / 496.5 MB, free: 4.797 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.977e-05/0.09589, allocations: 3.938 kB / 496.5 MB, free: 4.793 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.383e-05/0.09593, allocations: 11.92 kB / 496.5 MB, free: 4.781 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.057e-05/0.09595, allocations: 4 kB / 496.5 MB, free: 4.777 MB / 378.7 MB Notification: Performance of sorting global known variables: time 6.418e-05/0.09602, allocations: 106.7 kB / 496.6 MB, free: 4.676 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09602, allocations: 0 / 496.6 MB, free: 4.676 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0001946/0.09622, allocations: 20 kB / 496.7 MB, free: 4.656 MB / 378.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.0005297/0.09676, allocations: 0.7101 MB / 497.4 MB, free: 3.914 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001822/0.09695, allocations: 79.91 kB / 497.4 MB, free: 3.836 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.09696, allocations: 0 / 497.4 MB, free: 3.836 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 9.243e-05/0.09706, allocations: 35.98 kB / 497.5 MB, free: 3.801 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001794/0.09725, allocations: 19.86 kB / 497.5 MB, free: 3.781 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001025/0.09828, allocations: 0.7759 MB / 498.3 MB, free: 2.93 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002342/0.09853, allocations: 0.712 MB / 499 MB, free: 2.191 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.965e-05/0.09859, allocations: 31.42 kB / 499 MB, free: 2.16 MB / 378.7 MB Notification: Performance of SimCode: time 2.2e-07/0.0986, allocations: 0 / 499 MB, free: 2.16 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.384/2.483, allocations: 1.644 MB / 0.4889 GB, free: 0.5117 MB / 378.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.RootMeanSquare.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.RootMeanSquare.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.RootMeanSquare.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.RootMeanSquare.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.RootMeanSquare_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_RootMeanSquare_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_RootMeanSquare.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.RootMeanSquare.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.RootMeanSquare_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/RootMeanSquare/RootMeanSquare.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.RootMeanSquare.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" 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