Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001252/0.001252, allocations: 175.9 kB / 17.41 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.184/1.184, allocations: 205.4 MB / 223.6 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007452/0.0007452, allocations: 89.97 kB / 271.9 MB, free: 8.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2767/0.2767, allocations: 43.56 MB / 363.8 MB, free: 52.13 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003349/0.0003349, allocations: 15.98 kB / 432.6 MB, free: 5.883 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1104, allocations: 58.85 MB / 491.4 MB, free: 10.95 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2877/0.3981, allocations: 104.7 MB / 0.5822 GB, free: 13.67 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002609/0.3984, allocations: 78.28 kB / 0.5823 GB, free: 13.59 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1941/0.5925, allocations: 78.17 MB / 0.6586 GB, free: 14.92 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.103e-06/0.5926, allocations: 0 / 0.6586 GB, free: 14.92 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001808/0.5928, allocations: 72 kB / 0.6587 GB, free: 14.85 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1367 * Number of variables: 1367 Notification: Performance of Generate backend data structure: time 0.01032/0.6031, allocations: 3.675 MB / 0.6623 GB, free: 11.11 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.6032, allocations: 16.02 kB / 0.6623 GB, free: 11.09 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01409/0.6173, allocations: 3.501 MB / 0.6657 GB, free: 7.578 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007391/0.6247, allocations: 3.328 MB / 0.669 GB, free: 4.188 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002895/0.625, allocations: 283.7 kB / 0.6692 GB, free: 3.91 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001405/0.6264, allocations: 368.2 kB / 0.6696 GB, free: 3.551 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1937/0.8201, allocations: 9.111 MB / 0.6785 GB, free: 91.66 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001285/0.8203, allocations: 61.59 kB / 0.6785 GB, free: 91.66 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004814/0.8208, allocations: 183.8 kB / 0.6787 GB, free: 91.66 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001159/0.8219, allocations: 0.8968 MB / 0.6796 GB, free: 91.66 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01113/0.8331, allocations: 7.364 MB / 0.6868 GB, free: 91.64 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03184/0.865, allocations: 42.75 MB / 0.7285 GB, free: 63.7 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003995/0.869, allocations: 2.526 MB / 0.731 GB, free: 62.46 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001074/0.8701, allocations: 1.074 MB / 0.732 GB, free: 62.01 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002545/0.8704, allocations: 330.6 kB / 0.7324 GB, free: 61.72 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.203e-05/0.8704, allocations: 49.22 kB / 0.7324 GB, free: 61.67 MB / 490.7 MB Notification: Performance of pre-optimization done (n=119): time 3.246e-06/0.8704, allocations: 0 / 0.7324 GB, free: 61.67 MB / 490.7 MB Notification: Performance of matching and sorting (n=133): time 0.01789/0.8883, allocations: 8.651 MB / 0.7409 GB, free: 57.89 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.762e-05/0.8884, allocations: 192.8 kB / 0.741 GB, free: 57.67 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005223/0.8936, allocations: 3.941 MB / 0.7449 GB, free: 56.34 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001486/0.8938, allocations: 46.11 kB / 0.7449 GB, free: 56.29 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001484/0.8953, allocations: 2.978 MB / 0.7478 GB, free: 54.16 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004205/0.8957, allocations: 0.5481 MB / 0.7484 GB, free: 53.77 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000193/0.8959, allocations: 114 kB / 0.7485 GB, free: 53.68 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002487/0.8962, allocations: 0.5502 MB / 0.749 GB, free: 53.28 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002148/0.8983, allocations: 1.64 MB / 0.7506 GB, free: 52.76 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00322/0.9015, allocations: 5.472 MB / 0.756 GB, free: 47.02 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005507/0.9071, allocations: 7.785 MB / 0.7636 GB, free: 39.89 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.349e-05/0.9071, allocations: 38.75 kB / 0.7636 GB, free: 39.89 MB / 490.7 MB Notification: Performance of matching and sorting (n=753) (initialization): time 0.009031/0.9162, allocations: 6.944 MB / 0.7704 GB, free: 37.18 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.331e-05/0.9163, allocations: 65.91 kB / 0.7704 GB, free: 37.18 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001007/0.9164, allocations: 134.5 kB / 0.7706 GB, free: 37.18 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000581/0.917, allocations: 343.7 kB / 0.7709 GB, free: 37.14 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00316/0.9201, allocations: 1.34 MB / 0.7722 GB, free: 36.97 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002263/0.9224, allocations: 2.739 MB / 0.7749 GB, free: 35.08 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003437/0.9258, allocations: 306.9 kB / 0.7752 GB, free: 34.96 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003906/0.9263, allocations: 367.4 kB / 0.7755 GB, free: 34.92 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 621 * Number of states: 0 () * Number of discrete variables: 31 (LessEqualThreshold1.y,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[1],distance1.arrowColor[3],distance1.arrowColor[2],distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (718): * Single equations (assignments): 714 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002412/0.9287, allocations: 1.944 MB / 0.7774 GB, free: 33.98 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004861/0.9292, allocations: 333.3 kB / 0.7777 GB, free: 33.79 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00229/0.9315, allocations: 1.581 MB / 0.7793 GB, free: 33.15 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.012e-05/0.9315, allocations: 19.3 kB / 0.7793 GB, free: 33.15 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-06/0.9315, allocations: 3.625 kB / 0.7793 GB, free: 33.15 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.013e-05/0.9315, allocations: 3.328 kB / 0.7793 GB, free: 33.15 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007032/0.9386, allocations: 5.246 MB / 0.7844 GB, free: 31.12 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.231e-06/0.9386, allocations: 1.312 kB / 0.7844 GB, free: 31.12 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007842/0.9394, allocations: 194.3 kB / 0.7846 GB, free: 31.1 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003889/0.9398, allocations: 155.8 kB / 0.7848 GB, free: 31.06 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.886e-05/0.9399, allocations: 29.55 kB / 0.7848 GB, free: 31.05 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001641/0.9415, allocations: 2.163 MB / 0.7869 GB, free: 29.39 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.9415, allocations: 0 / 0.7869 GB, free: 29.39 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003543/0.9451, allocations: 3.373 MB / 0.7902 GB, free: 27.82 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000914/0.946, allocations: 0.526 MB / 0.7907 GB, free: 27.47 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003/0.9463, allocations: 26.81 kB / 0.7907 GB, free: 27.45 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008993/0.9472, allocations: 59.08 kB / 0.7908 GB, free: 27.44 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001457/0.9474, allocations: 68.36 kB / 0.7909 GB, free: 27.43 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.721e-05/0.9474, allocations: 41.34 kB / 0.7909 GB, free: 27.42 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002821/0.9503, allocations: 2.452 MB / 0.7933 GB, free: 26.6 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.9503, allocations: 0 / 0.7933 GB, free: 26.6 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.003774/0.9541, allocations: 0.8508 MB / 0.7941 GB, free: 26.5 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (Revolute1.phi,Revolute1.w) * Number of discrete variables: 1 (LessEqualThreshold1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 98 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002867/0.9544, allocations: 151.7 kB / 0.7943 GB, free: 26.38 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.004854/0.9592, allocations: 4.004 MB / 0.7982 GB, free: 24.96 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.9592, allocations: 336 / 0.7982 GB, free: 24.96 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001056/0.9603, allocations: 0.9738 MB / 0.7991 GB, free: 24.55 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002717/0.963, allocations: 395.5 kB / 0.7995 GB, free: 24.36 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01061/0.9737, allocations: 9.568 MB / 0.8089 GB, free: 19.34 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002299/0.976, allocations: 2.955 MB / 0.8117 GB, free: 17.42 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007382/0.9767, allocations: 274.4 kB / 0.812 GB, free: 17.16 MB / 490.7 MB Notification: Performance of SimCode: time 1.002e-06/0.9767, allocations: 0 / 0.812 GB, free: 17.16 MB / 490.7 MB Notification: Performance of Templates: time 0.3871/1.364, allocations: 66.54 MB / 0.877 GB, free: 114.7 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches