Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_RootMeanSquare",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_RootMeanSquare",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00154/0.00154, allocations: 122.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00189/0.00189, allocations: 205.2 kB / 18.73 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.41/1.41, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2118/0.2118, allocations: 46.09 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001541/0.001541, allocations: 75.88 kB / 480.8 MB, free: 4.562 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4004/0.4019, allocations: 62.43 MB / 0.5305 GB, free: 13.29 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.004094/0.4061, allocations: 1.694 MB / 0.5321 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001188/0.4073, allocations: 0.5829 MB / 0.5327 GB, free: 11.49 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001218/0.4074, allocations: 1.156 kB / 0.5327 GB, free: 11.49 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001285/0.4076, allocations: 17.2 kB / 0.5327 GB, free: 11.48 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.424e-05/0.4077, allocations: 21.52 kB / 0.5328 GB, free: 11.46 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004312/0.4082, allocations: 64.38 kB / 0.5328 GB, free: 11.41 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003142/0.4085, allocations: 116.9 kB / 0.5329 GB, free: 11.34 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002041/0.4087, allocations: 31.59 kB / 0.533 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000249/0.4089, allocations: 61.19 kB / 0.533 GB, free: 11.28 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001844/0.4091, allocations: 48.42 kB / 0.5331 GB, free: 11.25 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.523e-05/0.4092, allocations: 9.594 kB / 0.5331 GB, free: 11.25 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.848e-05/0.4093, allocations: 22.14 kB / 0.5331 GB, free: 11.24 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.776e-05/0.4094, allocations: 25.11 kB / 0.5331 GB, free: 11.22 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001017/0.4095, allocations: 52.14 kB / 0.5332 GB, free: 11.18 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002865/0.4098, allocations: 126.1 kB / 0.5333 GB, free: 11.09 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.4098, allocations: 0 / 0.5333 GB, free: 11.09 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.414e-06/0.4098, allocations: 0 / 0.5333 GB, free: 11.09 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.718e-06/0.4098, allocations: 0 / 0.5333 GB, free: 11.09 MB / 398.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.001025/0.4108, allocations: 427.4 kB / 0.5337 GB, free: 10.66 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.839e-05/0.4109, allocations: 13.61 kB / 0.5337 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.774e-05/0.411, allocations: 37.5 kB / 0.5337 GB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002615/0.4112, allocations: 23.95 kB / 0.5338 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003015/0.4115, allocations: 219.1 kB / 0.534 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.39e-05/0.4116, allocations: 7.125 kB / 0.534 GB, free: 10.37 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.846e-05/0.4116, allocations: 14.81 kB / 0.534 GB, free: 10.36 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000242/0.4119, allocations: 91.89 kB / 0.5341 GB, free: 10.3 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.422e-05/0.4119, allocations: 0 / 0.5341 GB, free: 10.3 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.903e-05/0.4119, allocations: 9.359 kB / 0.5341 GB, free: 10.29 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.4119, allocations: 1.375 kB / 0.5341 GB, free: 10.29 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001583/0.4121, allocations: 47.47 kB / 0.5341 GB, free: 10.27 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007233/0.4128, allocations: 391.4 kB / 0.5345 GB, free: 9.891 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001639/0.413, allocations: 67.23 kB / 0.5346 GB, free: 9.84 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.83e-05/0.4131, allocations: 27.89 kB / 0.5346 GB, free: 9.82 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.065e-05/0.4131, allocations: 1.375 kB / 0.5346 GB, free: 9.82 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002197/0.4133, allocations: 100.2 kB / 0.5347 GB, free: 9.738 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.833e-06/0.4133, allocations: 0 / 0.5347 GB, free: 9.738 MB / 398.1 MB Notification: Performance of matching and sorting (n=9): time 0.000382/0.4137, allocations: 130.5 kB / 0.5348 GB, free: 9.66 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.118e-05/0.4138, allocations: 52.69 kB / 0.5349 GB, free: 9.598 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001641/0.414, allocations: 146.4 kB / 0.535 GB, free: 9.473 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.859e-05/0.414, allocations: 30.92 kB / 0.535 GB, free: 9.438 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.897e-05/0.4141, allocations: 112.7 kB / 0.5352 GB, free: 9.328 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.423e-05/0.4141, allocations: 31.67 kB / 0.5352 GB, free: 9.301 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.127e-05/0.4142, allocations: 35.73 kB / 0.5352 GB, free: 9.27 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.4143, allocations: 322 kB / 0.5355 GB, free: 8.949 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.033e-05/0.4144, allocations: 30.08 kB / 0.5356 GB, free: 8.934 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001342/0.4146, allocations: 87.67 kB / 0.5356 GB, free: 8.84 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002055/0.4148, allocations: 121.8 kB / 0.5358 GB, free: 8.73 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.4148, allocations: 0 / 0.5358 GB, free: 8.73 MB / 398.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000281/0.4151, allocations: 145.3 kB / 0.5359 GB, free: 8.641 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.882e-05/0.4151, allocations: 9.469 kB / 0.5359 GB, free: 8.641 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.757e-06/0.4151, allocations: 1.75 kB / 0.5359 GB, free: 8.641 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.36e-05/0.4151, allocations: 3.5 kB / 0.5359 GB, free: 8.641 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001243/0.4153, allocations: 28.86 kB / 0.5359 GB, free: 8.629 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.588e-06/0.4153, allocations: 3.438 kB / 0.5359 GB, free: 8.629 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.92e-05/0.4154, allocations: 8.5 kB / 0.5359 GB, free: 8.625 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.479e-05/0.4154, allocations: 9.656 kB / 0.536 GB, free: 8.621 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.0001172/0.4155, allocations: 129 kB / 0.5361 GB, free: 8.496 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.735e-05/0.4156, allocations: 12.59 kB / 0.5361 GB, free: 8.488 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.069e-05/0.4156, allocations: 15.31 kB / 0.5361 GB, free: 8.473 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.4156, allocations: 5.266 kB / 0.5361 GB, free: 8.469 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.4156, allocations: 4 kB / 0.5361 GB, free: 8.465 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.4156, allocations: 1.188 kB / 0.5361 GB, free: 8.465 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001973/0.4158, allocations: 211.3 kB / 0.5363 GB, free: 8.23 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.4158, allocations: 0 / 0.5363 GB, free: 8.23 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.68e-05/0.4159, allocations: 13.06 kB / 0.5363 GB, free: 8.227 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.418e-06/0.416, allocations: 1.156 kB / 0.5363 GB, free: 8.227 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.457e-05/0.416, allocations: 5.109 kB / 0.5363 GB, free: 8.223 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.796e-06/0.416, allocations: 1.188 kB / 0.5363 GB, free: 8.223 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.416, allocations: 0 / 0.5363 GB, free: 8.223 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000369/0.4164, allocations: 176.7 kB / 0.5365 GB, free: 8.094 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.474e-05/0.4164, allocations: 88.52 kB / 0.5366 GB, free: 7.992 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.399e-05/0.4165, allocations: 1.312 kB / 0.5366 GB, free: 7.992 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.36e-05/0.4165, allocations: 6.656 kB / 0.5366 GB, free: 7.988 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.235e-05/0.4166, allocations: 6.766 kB / 0.5366 GB, free: 7.984 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.246e-05/0.4166, allocations: 10.75 kB / 0.5366 GB, free: 7.977 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.551e-05/0.4167, allocations: 112.2 kB / 0.5367 GB, free: 7.887 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4167, allocations: 5.656 kB / 0.5367 GB, free: 7.883 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002455/0.417, allocations: 19.91 kB / 0.5367 GB, free: 7.879 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.0007343/0.4177, allocations: 0.7119 MB / 0.5374 GB, free: 7.215 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002529/0.418, allocations: 72.5 kB / 0.5375 GB, free: 7.188 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.418, allocations: 1.562 kB / 0.5375 GB, free: 7.188 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 9.801e-05/0.4181, allocations: 35.3 kB / 0.5375 GB, free: 7.172 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002102/0.4183, allocations: 14.61 kB / 0.5376 GB, free: 7.164 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002096/0.4204, allocations: 1.697 MB / 0.5392 GB, free: 5.645 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003834/0.4208, allocations: 0.7032 MB / 0.5399 GB, free: 4.938 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.544e-05/0.4209, allocations: 18.38 kB / 0.5399 GB, free: 4.926 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.577e-05/0.421, allocations: 32.98 kB / 0.5399 GB, free: 4.898 MB / 398.1 MB Notification: Performance of SimCode: time 3e-07/0.421, allocations: 1.219 kB / 0.54 GB, free: 4.898 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02244/0.4434, allocations: 2.495 MB / 0.5424 GB, free: 3.57 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.603/8.047, allocations: 8 kB / 0.5424 GB, free: 3.566 MB / 398.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_RootMeanSquare_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_RootMeanSquare.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_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.y0,mean1.yGreaterOrEqualZero,rootMeanSquare.f,rootMeanSquare.mean.f,rootMeanSquare.mean.u,rootMeanSquare.mean.x,rootMeanSquare.mean.x0,rootMeanSquare.mean.y,rootMeanSquare.mean.y0,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,rootMeanSquare.y0,time