Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 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 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 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_3_2_3_ModelicaTest_Blocks_RootMeanSquare",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_3_2_3_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.001511/0.001511, allocations: 110.7 kB / 16.41 MB, free: 6.492 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.001676/0.001676, allocations: 189.5 kB / 17.34 MB, free: 5.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.32/1.32, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1978/0.1978, allocations: 43.51 MB / 314.1 MB, free: 464 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001364/0.001364, allocations: 69.47 kB / 441.3 MB, free: 6.176 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1114, allocations: 57.79 MB / 499.1 MB, free: 12.31 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.002632/0.1141, allocations: 1.653 MB / 0.489 GB, free: 10.65 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008818/0.115, allocations: 0.5736 MB / 0.4896 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.846e-05/0.1151, allocations: 3.938 kB / 0.4896 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 9.421e-05/0.1152, allocations: 7.875 kB / 0.4896 GB, free: 10.06 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.19e-05/0.1152, allocations: 23.78 kB / 0.4896 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002426/0.1155, allocations: 59.81 kB / 0.4896 GB, free: 9.977 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001512/0.1157, allocations: 103.8 kB / 0.4897 GB, free: 9.875 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001386/0.1158, allocations: 35.89 kB / 0.4898 GB, free: 9.84 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.906e-05/0.1159, allocations: 43.86 kB / 0.4898 GB, free: 9.797 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001095/0.116, allocations: 55.69 kB / 0.4899 GB, free: 9.742 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.387e-05/0.116, allocations: 12 kB / 0.4899 GB, free: 9.73 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.644e-05/0.1161, allocations: 8 kB / 0.4899 GB, free: 9.723 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.241e-05/0.1161, allocations: 23.92 kB / 0.4899 GB, free: 9.699 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.569e-05/0.1162, allocations: 51.73 kB / 0.49 GB, free: 9.648 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001359/0.1163, allocations: 95.67 kB / 0.4901 GB, free: 9.555 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1163, allocations: 0 / 0.4901 GB, free: 9.555 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1163, allocations: 0 / 0.4901 GB, free: 9.555 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.12e-06/0.1164, allocations: 0 / 0.4901 GB, free: 9.555 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006364/0.117, allocations: 415 kB / 0.4905 GB, free: 9.102 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.419e-05/0.117, allocations: 11.89 kB / 0.4905 GB, free: 9.09 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.136e-05/0.1171, allocations: 42.73 kB / 0.4905 GB, free: 9.039 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.42e-05/0.1171, allocations: 12.84 kB / 0.4905 GB, free: 9.027 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002051/0.1173, allocations: 208 kB / 0.4907 GB, free: 8.785 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.044e-05/0.1173, allocations: 8.375 kB / 0.4907 GB, free: 8.777 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.559e-05/0.1174, allocations: 4.375 kB / 0.4907 GB, free: 8.773 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001956/0.1176, allocations: 97.75 kB / 0.4908 GB, free: 8.672 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.1176, allocations: 0 / 0.4908 GB, free: 8.672 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.321e-05/0.1176, allocations: 0 / 0.4908 GB, free: 8.672 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.1176, allocations: 4 kB / 0.4908 GB, free: 8.668 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001262/0.1178, allocations: 51.91 kB / 0.4909 GB, free: 8.617 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004922/0.1183, allocations: 368.6 kB / 0.4912 GB, free: 8.207 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001208/0.1184, allocations: 58.47 kB / 0.4913 GB, free: 8.141 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.3e-05/0.1185, allocations: 28.95 kB / 0.4913 GB, free: 8.109 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.67e-05/0.1185, allocations: 4 kB / 0.4913 GB, free: 8.105 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001715/0.1187, allocations: 95.34 kB / 0.4914 GB, free: 8 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.322e-06/0.1187, allocations: 0 / 0.4914 GB, free: 8 MB / 382.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003054/0.119, allocations: 125.5 kB / 0.4915 GB, free: 7.871 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.033e-05/0.119, allocations: 59.41 kB / 0.4916 GB, free: 7.801 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001105/0.1192, allocations: 160.1 kB / 0.4917 GB, free: 7.637 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.965e-05/0.1192, allocations: 25.7 kB / 0.4918 GB, free: 7.605 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.358e-05/0.1192, allocations: 104.3 kB / 0.4919 GB, free: 7.5 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.674e-05/0.1193, allocations: 27.56 kB / 0.4919 GB, free: 7.473 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.795e-05/0.1193, allocations: 33.7 kB / 0.4919 GB, free: 7.434 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.723e-05/0.1194, allocations: 318.8 kB / 0.4922 GB, free: 7.113 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.79e-05/0.1195, allocations: 27.98 kB / 0.4922 GB, free: 7.086 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001031/0.1196, allocations: 83.7 kB / 0.4923 GB, free: 6.977 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001714/0.1198, allocations: 123.6 kB / 0.4924 GB, free: 6.828 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1198, allocations: 0 / 0.4924 GB, free: 6.828 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002254/0.12, allocations: 141.5 kB / 0.4926 GB, free: 6.684 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.793e-05/0.1201, allocations: 8 kB / 0.4926 GB, free: 6.676 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.1201, allocations: 0 / 0.4926 GB, free: 6.676 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.605e-05/0.1201, allocations: 4 kB / 0.4926 GB, free: 6.672 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001207/0.1202, allocations: 31.92 kB / 0.4926 GB, free: 6.641 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.157e-05/0.1202, allocations: 11.92 kB / 0.4926 GB, free: 6.629 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.832e-05/0.1203, allocations: 7.906 kB / 0.4926 GB, free: 6.621 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.106e-05/0.1203, allocations: 8 kB / 0.4927 GB, free: 6.613 MB / 382.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,$PRE.mean1.y,$whenCondition2,$whenCondition1,rootMeanSquare.mean.y,$PRE.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000105/0.1204, allocations: 137.7 kB / 0.4928 GB, free: 6.469 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.939e-05/0.1205, allocations: 12 kB / 0.4928 GB, free: 6.457 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.603e-05/0.1205, allocations: 13.08 kB / 0.4928 GB, free: 6.441 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.1205, allocations: 0 / 0.4928 GB, free: 6.441 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.1205, allocations: 7.938 kB / 0.4928 GB, free: 6.434 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.1205, allocations: 0 / 0.4928 GB, free: 6.434 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001506/0.1207, allocations: 209.5 kB / 0.493 GB, free: 6.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.1207, allocations: 0 / 0.493 GB, free: 6.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.344e-05/0.1208, allocations: 11.98 kB / 0.493 GB, free: 6.168 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.1208, allocations: 0 / 0.493 GB, free: 6.168 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.266e-05/0.1208, allocations: 8 kB / 0.493 GB, free: 6.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.1208, allocations: 0 / 0.493 GB, free: 6.16 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.1208, allocations: 3.938 kB / 0.493 GB, free: 6.156 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002987/0.1211, allocations: 164.9 kB / 0.4932 GB, free: 5.977 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.606e-05/0.1212, allocations: 81.02 kB / 0.4933 GB, free: 5.879 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.552e-05/0.1212, allocations: 8.016 kB / 0.4933 GB, free: 5.871 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.143e-05/0.1213, allocations: 7.938 kB / 0.4933 GB, free: 5.863 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.629e-05/0.1214, allocations: 15.98 kB / 0.4933 GB, free: 5.848 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.558e-06/0.1214, allocations: 4 kB / 0.4933 GB, free: 5.844 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.276e-05/0.1214, allocations: 108 kB / 0.4934 GB, free: 5.738 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1214, allocations: 0 / 0.4934 GB, free: 5.738 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002251/0.1217, allocations: 23.94 kB / 0.4934 GB, free: 5.715 MB / 382.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,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 (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.0005156/0.1222, allocations: 0.7021 MB / 0.4941 GB, free: 4.984 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001933/0.1224, allocations: 75.84 kB / 0.4942 GB, free: 4.91 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.1224, allocations: 0 / 0.4942 GB, free: 4.91 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 8.849e-05/0.1225, allocations: 40.09 kB / 0.4942 GB, free: 4.871 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002037/0.1227, allocations: 11.94 kB / 0.4942 GB, free: 4.859 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001621/0.1243, allocations: 1.64 MB / 0.4958 GB, free: 3.09 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002241/0.1246, allocations: 0.7041 MB / 0.4965 GB, free: 2.359 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.302e-05/0.1246, allocations: 8.562 kB / 0.4965 GB, free: 2.352 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.032e-05/0.1247, allocations: 31.42 kB / 0.4966 GB, free: 2.32 MB / 382.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1247, allocations: 0 / 0.4966 GB, free: 2.32 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02071/0.1454, allocations: 2.342 MB / 0.4989 GB, free: 15.97 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.504/7.65, allocations: 3.984 kB / 0.4989 GB, free: 15.96 MB / 398.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.RootMeanSquare.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.RootMeanSquare.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.RootMeanSquare.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.RootMeanSquare.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.RootMeanSquare_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_RootMeanSquare_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_RootMeanSquare.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.RootMeanSquare.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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.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