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.001197/0.001197, allocations: 107.9 kB / 16.41 MB, free: 6.5 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.00113/0.00113, allocations: 192.1 kB / 17.34 MB, free: 5.762 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.491/1.491, allocations: 205.1 MB / 223.2 MB, free: 12.2 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.2216/0.2216, allocations: 43.53 MB / 314.1 MB, free: 456 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.001948/0.001948, allocations: 77.44 kB / 441.3 MB, free: 6.18 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1272/0.1292, allocations: 57.79 MB / 499.1 MB, free: 12.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.00311/0.1323, allocations: 1.642 MB / 0.489 GB, free: 10.67 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001174/0.1335, allocations: 0.5775 MB / 0.4896 GB, free: 10.09 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001047/0.1337, allocations: 3.938 kB / 0.4896 GB, free: 10.08 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001167/0.1338, allocations: 15.86 kB / 0.4896 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.595e-05/0.1339, allocations: 11.86 kB / 0.4896 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003271/0.1342, allocations: 59.81 kB / 0.4896 GB, free: 9.996 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001976/0.1344, allocations: 107.8 kB / 0.4897 GB, free: 9.891 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001494/0.1346, allocations: 47.83 kB / 0.4898 GB, free: 9.844 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000132/0.1347, allocations: 43.86 kB / 0.4898 GB, free: 9.801 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001346/0.1349, allocations: 47.77 kB / 0.4899 GB, free: 9.754 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.998e-05/0.1349, allocations: 8 kB / 0.4899 GB, free: 9.746 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.104e-05/0.135, allocations: 8 kB / 0.4899 GB, free: 9.738 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.809e-05/0.135, allocations: 19.92 kB / 0.4899 GB, free: 9.719 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.642e-05/0.1351, allocations: 51.72 kB / 0.49 GB, free: 9.668 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001887/0.1353, allocations: 103.7 kB / 0.4901 GB, free: 9.566 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1353, allocations: 0 / 0.4901 GB, free: 9.566 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.1353, allocations: 0 / 0.4901 GB, free: 9.566 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.853e-06/0.1353, allocations: 0 / 0.4901 GB, free: 9.566 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.0008519/0.1362, allocations: 411 kB / 0.4904 GB, free: 9.117 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.786e-05/0.1362, allocations: 19.83 kB / 0.4905 GB, free: 9.098 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.142e-05/0.1363, allocations: 34.75 kB / 0.4905 GB, free: 9.055 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.103e-05/0.1363, allocations: 12.84 kB / 0.4905 GB, free: 9.043 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002582/0.1366, allocations: 218.6 kB / 0.4907 GB, free: 8.793 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.459e-05/0.1366, allocations: 8.375 kB / 0.4907 GB, free: 8.785 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.95e-05/0.1367, allocations: 8.375 kB / 0.4907 GB, free: 8.777 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002229/0.1369, allocations: 89.77 kB / 0.4908 GB, free: 8.684 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.594e-05/0.1369, allocations: 4 kB / 0.4908 GB, free: 8.68 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.633e-05/0.1369, allocations: 0 / 0.4908 GB, free: 8.68 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.137, allocations: 3.938 kB / 0.4908 GB, free: 8.676 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001422/0.1371, allocations: 47.91 kB / 0.4909 GB, free: 8.629 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007564/0.1379, allocations: 360.6 kB / 0.4912 GB, free: 8.227 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001524/0.138, allocations: 62.48 kB / 0.4913 GB, free: 8.156 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.39e-05/0.1381, allocations: 28.98 kB / 0.4913 GB, free: 8.125 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.851e-05/0.1382, allocations: 7.984 kB / 0.4913 GB, free: 8.117 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002096/0.1384, allocations: 103.3 kB / 0.4914 GB, free: 8.004 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 3.256e-06/0.1384, allocations: 0 / 0.4914 GB, free: 8.004 MB / 382.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003759/0.1388, allocations: 125.4 kB / 0.4915 GB, free: 7.875 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.955e-05/0.1388, allocations: 51.41 kB / 0.4916 GB, free: 7.812 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001342/0.139, allocations: 157.3 kB / 0.4917 GB, free: 7.648 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.386e-05/0.139, allocations: 33.7 kB / 0.4918 GB, free: 7.609 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.628e-05/0.1391, allocations: 96.42 kB / 0.4919 GB, free: 7.512 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.515e-05/0.1391, allocations: 31.55 kB / 0.4919 GB, free: 7.48 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.158e-05/0.1392, allocations: 29.7 kB / 0.4919 GB, free: 7.445 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.1394, allocations: 322.8 kB / 0.4922 GB, free: 7.121 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.627e-05/0.1394, allocations: 23.98 kB / 0.4922 GB, free: 7.098 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001041/0.1395, allocations: 83.52 kB / 0.4923 GB, free: 6.992 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002416/0.1398, allocations: 127.6 kB / 0.4924 GB, free: 6.84 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.1398, allocations: 0 / 0.4924 GB, free: 6.84 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000261/0.1401, allocations: 137.6 kB / 0.4926 GB, free: 6.699 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.1401, allocations: 8 kB / 0.4926 GB, free: 6.691 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/0.1401, allocations: 7.984 kB / 0.4926 GB, free: 6.684 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.408e-05/0.1401, allocations: 0 / 0.4926 GB, free: 6.684 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001211/0.1403, allocations: 28.02 kB / 0.4926 GB, free: 6.656 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.025e-05/0.1403, allocations: 11.92 kB / 0.4926 GB, free: 6.645 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.374e-05/0.1404, allocations: 11.91 kB / 0.4926 GB, free: 6.633 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.26e-05/0.1404, allocations: 8.359 kB / 0.4927 GB, free: 6.625 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.0001088/0.1405, allocations: 137.7 kB / 0.4928 GB, free: 6.48 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.011e-05/0.1405, allocations: 11.91 kB / 0.4928 GB, free: 6.469 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.179e-05/0.1406, allocations: 16.7 kB / 0.4928 GB, free: 6.449 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.1406, allocations: 3.938 kB / 0.4928 GB, free: 6.445 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.1406, allocations: 3.938 kB / 0.4928 GB, free: 6.441 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.077e-06/0.1406, allocations: 0 / 0.4928 GB, free: 6.441 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001683/0.1408, allocations: 201.6 kB / 0.493 GB, free: 6.195 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.1408, allocations: 0 / 0.493 GB, free: 6.195 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.591e-05/0.1409, allocations: 12 kB / 0.493 GB, free: 6.184 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.078e-06/0.1409, allocations: 8 kB / 0.493 GB, free: 6.176 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.525e-05/0.1409, allocations: 3.984 kB / 0.493 GB, free: 6.172 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.1409, allocations: 4 kB / 0.493 GB, free: 6.168 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.756e-06/0.1409, allocations: 3.938 kB / 0.493 GB, free: 6.164 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003615/0.1413, allocations: 164.9 kB / 0.4932 GB, free: 5.984 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.736e-05/0.1414, allocations: 88.98 kB / 0.4933 GB, free: 5.879 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.046e-05/0.1414, allocations: 0 / 0.4933 GB, free: 5.879 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.185e-05/0.1414, allocations: 7.984 kB / 0.4933 GB, free: 5.871 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.117e-05/0.1415, allocations: 15.94 kB / 0.4933 GB, free: 5.855 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.092e-05/0.1415, allocations: 7.984 kB / 0.4933 GB, free: 5.848 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.646e-05/0.1416, allocations: 110 kB / 0.4934 GB, free: 5.742 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1416, allocations: 0 / 0.4934 GB, free: 5.742 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002213/0.1418, allocations: 23.94 kB / 0.4934 GB, free: 5.719 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.0007527/0.1426, allocations: 0.6944 MB / 0.4941 GB, free: 4.996 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002482/0.1428, allocations: 80.02 kB / 0.4942 GB, free: 4.918 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.1429, allocations: 3.938 kB / 0.4942 GB, free: 4.914 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 9.213e-05/0.143, allocations: 31.98 kB / 0.4942 GB, free: 4.883 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002251/0.1432, allocations: 19.92 kB / 0.4942 GB, free: 4.863 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001935/0.1451, allocations: 1.632 MB / 0.4958 GB, free: 3.102 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003473/0.1455, allocations: 0.7041 MB / 0.4965 GB, free: 2.371 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.293e-05/0.1456, allocations: 12.55 kB / 0.4965 GB, free: 2.359 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.26e-05/0.1456, allocations: 27.42 kB / 0.4966 GB, free: 2.332 MB / 382.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1456, allocations: 4 kB / 0.4966 GB, free: 2.328 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02428/0.1699, allocations: 2.34 MB / 0.4989 GB, free: 15.98 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.791/7.961, allocations: 11.98 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