Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_RootMeanSquare",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_RootMeanSquare",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001587/0.001587, allocations: 114.4 kB / 17.78 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001873/0.001873, allocations: 187 kB / 18.71 MB, free: 4.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.42/1.42, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3308/0.3308, allocations: 44.18 MB / 336.7 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001342/0.001342, allocations: 67.91 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4379/0.4393, allocations: 60.83 MB / 0.5184 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.004245/0.4436, allocations: 1.655 MB / 0.52 GB, free: 2.129 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001147/0.4448, allocations: 0.5339 MB / 0.5205 GB, free: 1.754 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001106/0.4449, allocations: 5.312 kB / 0.5206 GB, free: 1.75 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001472/0.4451, allocations: 9.422 kB / 0.5206 GB, free: 1.742 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.808e-05/0.4451, allocations: 20.41 kB / 0.5206 GB, free: 1.727 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003665/0.4455, allocations: 58.03 kB / 0.5206 GB, free: 1.691 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002437/0.4458, allocations: 109.6 kB / 0.5207 GB, free: 1.641 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002138/0.446, allocations: 34.67 kB / 0.5208 GB, free: 1.621 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000149/0.4462, allocations: 51.3 kB / 0.5208 GB, free: 1.594 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001623/0.4463, allocations: 50.22 kB / 0.5209 GB, free: 1.566 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.785e-05/0.4464, allocations: 9.906 kB / 0.5209 GB, free: 1.566 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.039e-05/0.4464, allocations: 9.594 kB / 0.5209 GB, free: 1.566 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.213e-05/0.4465, allocations: 24.97 kB / 0.5209 GB, free: 1.551 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.859e-05/0.4466, allocations: 52.14 kB / 0.521 GB, free: 1.516 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002457/0.4468, allocations: 112.8 kB / 0.5211 GB, free: 1.465 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.748e-06/0.4469, allocations: 0 / 0.5211 GB, free: 1.465 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.4469, allocations: 0.875 kB / 0.5211 GB, free: 1.465 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.828e-06/0.4469, allocations: 3.938 kB / 0.5211 GB, free: 1.461 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0006894/0.4476, allocations: 416.9 kB / 0.5215 GB, free: 1.062 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.27e-05/0.4476, allocations: 9.219 kB / 0.5215 GB, free: 1.062 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.736e-05/0.4477, allocations: 39.56 kB / 0.5215 GB, free: 1.02 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.472e-05/0.4477, allocations: 16.16 kB / 0.5215 GB, free: 1.012 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001997/0.4479, allocations: 199.7 kB / 0.5217 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.726e-05/0.4479, allocations: 8.438 kB / 0.5217 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.876e-05/0.448, allocations: 8.094 kB / 0.5217 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002334/0.4482, allocations: 110.5 kB / 0.5218 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.378e-05/0.4483, allocations: 0 / 0.5218 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.66e-05/0.4483, allocations: 6.031 kB / 0.5219 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-06/0.4483, allocations: 1.25 kB / 0.5219 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001483/0.4484, allocations: 52.06 kB / 0.5219 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005253/0.449, allocations: 379.6 kB / 0.5223 GB, free: 396 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000143/0.4491, allocations: 64.3 kB / 0.5223 GB, free: 352 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.601e-05/0.4492, allocations: 24.2 kB / 0.5223 GB, free: 340 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.497e-05/0.4492, allocations: 1.922 kB / 0.5224 GB, free: 340 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002321/0.4495, allocations: 103.7 kB / 0.5224 GB, free: 272 kB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.713e-06/0.4495, allocations: 0 / 0.5224 GB, free: 272 kB / 382.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004182/0.4499, allocations: 128.8 kB / 0.5226 GB, free: 208 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.808e-05/0.45, allocations: 57.36 kB / 0.5226 GB, free: 140 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000137/0.4501, allocations: 137.6 kB / 0.5228 GB, free: 28 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.294e-05/0.4502, allocations: 30.77 kB / 0.5228 GB, free: 15.99 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.658e-05/0.4503, allocations: 104.1 kB / 0.5229 GB, free: 15.89 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.367e-05/0.4503, allocations: 30.56 kB / 0.5229 GB, free: 15.87 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.417e-05/0.4504, allocations: 38.61 kB / 0.523 GB, free: 15.84 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001843/0.4506, allocations: 321.2 kB / 0.5233 GB, free: 15.52 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.677e-05/0.4507, allocations: 22.44 kB / 0.5233 GB, free: 15.52 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001343/0.4508, allocations: 89.81 kB / 0.5234 GB, free: 15.43 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002386/0.4511, allocations: 122.1 kB / 0.5235 GB, free: 15.32 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.4511, allocations: 5.125 kB / 0.5235 GB, free: 15.32 MB / 398.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003028/0.4514, allocations: 138 kB / 0.5236 GB, free: 15.25 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.914e-05/0.4514, allocations: 5.75 kB / 0.5236 GB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.4514, allocations: 2.734 kB / 0.5236 GB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.419e-05/0.4515, allocations: 7.531 kB / 0.5236 GB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001232/0.4516, allocations: 25.92 kB / 0.5237 GB, free: 15.24 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.109e-05/0.4516, allocations: 3.641 kB / 0.5237 GB, free: 15.24 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.845e-05/0.4517, allocations: 13.11 kB / 0.5237 GB, free: 15.23 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.795e-05/0.4517, allocations: 10.14 kB / 0.5237 GB, free: 15.23 MB / 398.1 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 (mean1.y_last,$PRE.mean1.y_last,$whenCondition2,$whenCondition1,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001088/0.4519, allocations: 126.7 kB / 0.5238 GB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.237e-05/0.4519, allocations: 8.797 kB / 0.5238 GB, free: 15.1 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.939e-05/0.4519, allocations: 12.42 kB / 0.5238 GB, free: 15.09 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.4519, allocations: 5 kB / 0.5238 GB, free: 15.09 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.4519, allocations: 5.219 kB / 0.5238 GB, free: 15.08 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.452, allocations: 0.5156 kB / 0.5238 GB, free: 15.08 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002228/0.4522, allocations: 202.5 kB / 0.524 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.4522, allocations: 0 / 0.524 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001077/0.4523, allocations: 11.83 kB / 0.524 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.043e-06/0.4523, allocations: 9.031 kB / 0.524 GB, free: 14.87 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.939e-05/0.4523, allocations: 6.375 kB / 0.5241 GB, free: 14.86 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.039e-06/0.4524, allocations: 5.828 kB / 0.5241 GB, free: 14.86 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.4524, allocations: 0 / 0.5241 GB, free: 14.86 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003576/0.4527, allocations: 168.5 kB / 0.5242 GB, free: 14.75 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.011e-05/0.4528, allocations: 84.7 kB / 0.5243 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.272e-05/0.4528, allocations: 1.719 kB / 0.5243 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.344e-05/0.4529, allocations: 7.641 kB / 0.5243 GB, free: 14.65 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.48e-05/0.4529, allocations: 10.44 kB / 0.5243 GB, free: 14.65 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.237e-05/0.4529, allocations: 4.984 kB / 0.5243 GB, free: 14.65 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.514e-05/0.453, allocations: 106.7 kB / 0.5244 GB, free: 14.56 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.453, allocations: 4.062 kB / 0.5244 GB, free: 14.56 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002279/0.4533, allocations: 24.95 kB / 0.5245 GB, free: 14.55 MB / 398.1 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_last,rootMeanSquare.mean.y_last) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000656/0.4539, allocations: 0.7063 MB / 0.5251 GB, free: 13.91 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002446/0.4542, allocations: 87.31 kB / 0.5252 GB, free: 13.88 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.4542, allocations: 0 / 0.5252 GB, free: 13.88 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 9.543e-05/0.4543, allocations: 33.62 kB / 0.5253 GB, free: 13.87 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002088/0.4545, allocations: 15.77 kB / 0.5253 GB, free: 13.86 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001973/0.4565, allocations: 1.642 MB / 0.5269 GB, free: 12.46 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000326/0.4568, allocations: 0.7039 MB / 0.5276 GB, free: 11.76 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.403e-05/0.4569, allocations: 14.31 kB / 0.5276 GB, free: 11.75 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.971e-05/0.457, allocations: 32.14 kB / 0.5276 GB, free: 11.73 MB / 398.1 MB Notification: Performance of SimCode: time 4.91e-07/0.457, allocations: 0 / 0.5276 GB, free: 11.73 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02087/0.4779, allocations: 2.366 MB / 0.5299 GB, free: 10.83 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.68/8.158, allocations: 9.438 kB / 0.5299 GB, free: 10.83 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_RootMeanSquare_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_RootMeanSquare.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/RootMeanSquare/RootMeanSquare.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_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.f,expSine.offset,expSine.phase,expSine.startTime,expSine.y,mean1.f,mean1.u,mean1.x,mean1.x0,mean1.y,mean1.yGreaterOrEqualZero,rootMeanSquare.f,rootMeanSquare.mean.f,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