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.00165/0.00165, allocations: 110.4 kB / 17.78 MB, free: 5.293 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.001858/0.001857, allocations: 187.1 kB / 18.71 MB, free: 4.371 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.379/1.379, allocations: 222.9 MB / 242.4 MB, free: 15.14 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.2081/0.2081, allocations: 44.19 MB / 336.7 MB, free: 2.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001382/0.001382, allocations: 67.89 kB / 470 MB, free: 13.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3765/0.3779, allocations: 60.82 MB / 0.5184 GB, free: 3.555 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.002464/0.3804, allocations: 1.669 MB / 0.52 GB, free: 2.383 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007907/0.3812, allocations: 0.5383 MB / 0.5206 GB, free: 2.004 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.015e-05/0.3813, allocations: 1.406 kB / 0.5206 GB, free: 2.004 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 9.086e-05/0.3814, allocations: 14.45 kB / 0.5206 GB, free: 1.992 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 3.902e-05/0.3814, allocations: 11.09 kB / 0.5206 GB, free: 1.984 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002362/0.3817, allocations: 62.36 kB / 0.5206 GB, free: 1.945 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000156/0.3818, allocations: 113.2 kB / 0.5207 GB, free: 1.891 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001321/0.382, allocations: 27.38 kB / 0.5208 GB, free: 1.879 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.227e-05/0.3821, allocations: 49.77 kB / 0.5208 GB, free: 1.852 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001091/0.3822, allocations: 50.53 kB / 0.5209 GB, free: 1.824 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.333e-05/0.3822, allocations: 10.22 kB / 0.5209 GB, free: 1.824 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.965e-05/0.3822, allocations: 10.12 kB / 0.5209 GB, free: 1.824 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.238e-05/0.3823, allocations: 24.78 kB / 0.5209 GB, free: 1.809 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.434e-05/0.3823, allocations: 55.92 kB / 0.521 GB, free: 1.77 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001555/0.3825, allocations: 104.9 kB / 0.5211 GB, free: 1.727 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.3825, allocations: 0.7031 kB / 0.5211 GB, free: 1.727 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.3825, allocations: 1.25 kB / 0.5211 GB, free: 1.727 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.02e-06/0.3825, allocations: 3.938 kB / 0.5211 GB, free: 1.723 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.0005924/0.3831, allocations: 412.1 kB / 0.5215 GB, free: 1.328 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.998e-05/0.3832, allocations: 9.766 kB / 0.5215 GB, free: 1.328 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.041e-05/0.3832, allocations: 43.58 kB / 0.5215 GB, free: 1.281 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.435e-05/0.3833, allocations: 15.95 kB / 0.5215 GB, free: 1.273 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001917/0.3835, allocations: 199.9 kB / 0.5217 GB, free: 1.062 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.564e-05/0.3835, allocations: 5.047 kB / 0.5217 GB, free: 1.062 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.728e-05/0.3835, allocations: 10.94 kB / 0.5217 GB, free: 1.059 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002166/0.3837, allocations: 103.5 kB / 0.5218 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.3838, allocations: 0 / 0.5218 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.576e-05/0.3838, allocations: 1.594 kB / 0.5218 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.3838, allocations: 1.969 kB / 0.5218 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001431/0.3839, allocations: 55.94 kB / 0.5219 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005097/0.3845, allocations: 383.4 kB / 0.5223 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001313/0.3846, allocations: 64.89 kB / 0.5223 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.127e-05/0.3847, allocations: 24.61 kB / 0.5223 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.799e-05/0.3847, allocations: 1.312 kB / 0.5223 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001854/0.3849, allocations: 98.31 kB / 0.5224 GB, free: 0.5312 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.372e-06/0.3849, allocations: 5.469 kB / 0.5224 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003338/0.3853, allocations: 123.9 kB / 0.5226 GB, free: 480 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.258e-05/0.3853, allocations: 61.08 kB / 0.5226 GB, free: 408 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001028/0.3854, allocations: 138 kB / 0.5228 GB, free: 296 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.654e-05/0.3854, allocations: 31.95 kB / 0.5228 GB, free: 260 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.233e-05/0.3855, allocations: 104.2 kB / 0.5229 GB, free: 160 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.736e-05/0.3855, allocations: 33.72 kB / 0.5229 GB, free: 132 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.074e-05/0.3856, allocations: 34.77 kB / 0.5229 GB, free: 104 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.3857, allocations: 321.7 kB / 0.5233 GB, free: 15.79 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.319e-05/0.3858, allocations: 26.75 kB / 0.5233 GB, free: 15.78 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000116/0.3859, allocations: 89.08 kB / 0.5234 GB, free: 15.69 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001933/0.3861, allocations: 118.8 kB / 0.5235 GB, free: 15.59 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.758e-06/0.3861, allocations: 7.938 kB / 0.5235 GB, free: 15.58 MB / 398.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002566/0.3864, allocations: 138.9 kB / 0.5236 GB, free: 15.51 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/0.3864, allocations: 5.875 kB / 0.5236 GB, free: 15.51 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.622e-06/0.3864, allocations: 2.125 kB / 0.5236 GB, free: 15.51 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.766e-05/0.3864, allocations: 7.219 kB / 0.5236 GB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001251/0.3866, allocations: 22.23 kB / 0.5237 GB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.101e-05/0.3866, allocations: 6.984 kB / 0.5237 GB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.847e-05/0.3867, allocations: 14.66 kB / 0.5237 GB, free: 15.49 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.269e-05/0.3867, allocations: 4.719 kB / 0.5237 GB, free: 15.49 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.0001159/0.3868, allocations: 127.4 kB / 0.5238 GB, free: 15.37 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.223e-05/0.3868, allocations: 13.16 kB / 0.5238 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.067e-05/0.3869, allocations: 11.39 kB / 0.5238 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.3869, allocations: 7.109 kB / 0.5238 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.3869, allocations: 0 / 0.5238 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.3869, allocations: 4.609 kB / 0.5238 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001924/0.3871, allocations: 197.5 kB / 0.524 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.3871, allocations: 1.828 kB / 0.524 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001001/0.3872, allocations: 11.5 kB / 0.524 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.3872, allocations: 7.922 kB / 0.524 GB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.846e-05/0.3873, allocations: 6.516 kB / 0.5241 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/0.3873, allocations: 9.359 kB / 0.5241 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.3873, allocations: 0.9688 kB / 0.5241 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003188/0.3876, allocations: 164.2 kB / 0.5242 GB, free: 15.02 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.226e-05/0.3877, allocations: 84.69 kB / 0.5243 GB, free: 14.92 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.723e-05/0.3877, allocations: 5.844 kB / 0.5243 GB, free: 14.91 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.434e-05/0.3878, allocations: 7.375 kB / 0.5243 GB, free: 14.91 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.682e-05/0.3878, allocations: 6.344 kB / 0.5243 GB, free: 14.91 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.292e-05/0.3878, allocations: 8.828 kB / 0.5243 GB, free: 14.91 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.06e-05/0.3879, allocations: 106.8 kB / 0.5244 GB, free: 14.82 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3879, allocations: 0 / 0.5244 GB, free: 14.82 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002172/0.3881, allocations: 21.05 kB / 0.5244 GB, free: 14.82 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.0005796/0.3887, allocations: 0.707 MB / 0.5251 GB, free: 14.18 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002019/0.3889, allocations: 78.77 kB / 0.5252 GB, free: 14.15 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3889, allocations: 4.188 kB / 0.5252 GB, free: 14.15 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 8.478e-05/0.389, allocations: 33.2 kB / 0.5252 GB, free: 14.14 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002047/0.3892, allocations: 16.78 kB / 0.5253 GB, free: 14.13 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001812/0.3911, allocations: 1.645 MB / 0.5269 GB, free: 12.72 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002905/0.3914, allocations: 0.7058 MB / 0.5276 GB, free: 12.02 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.125e-05/0.3914, allocations: 12.52 kB / 0.5276 GB, free: 12.02 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.794e-05/0.3915, allocations: 32.42 kB / 0.5276 GB, free: 11.99 MB / 398.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3915, allocations: 1.781 kB / 0.5276 GB, free: 11.99 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01992/0.4114, allocations: 2.361 MB / 0.5299 GB, free: 11.08 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.866/8.277, allocations: 5.062 kB / 0.5299 GB, free: 11.07 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