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.00236/0.00236, allocations: 186.7 kB / 16.41 MB, free: 5.727 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.959/1.959, allocations: 205.4 MB / 222.5 MB, free: 9.141 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.001117/0.001117, allocations: 95.33 kB / 270.9 MB, free: 8.383 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.5035/0.5035, allocations: 43.56 MB / 362.7 MB, free: 52.19 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004651/0.0004652, allocations: 16 kB / 431.4 MB, free: 6.184 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1184/0.1189, allocations: 58.84 MB / 490.2 MB, free: 11.26 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4783/0.5973, allocations: 104.6 MB / 0.5808 GB, free: 14.16 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002939/0.5976, allocations: 83.95 kB / 0.5809 GB, free: 14.08 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3495/0.9472, allocations: 79.22 MB / 0.6583 GB, free: 14.34 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.085e-06/0.9472, allocations: 4 kB / 0.6583 GB, free: 14.34 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002635/0.9475, allocations: 72 kB / 0.6584 GB, free: 14.27 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.01627/0.9638, allocations: 3.773 MB / 0.6621 GB, free: 10.43 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.202e-05/0.9639, allocations: 16.02 kB / 0.6621 GB, free: 10.41 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03326/0.9971, allocations: 4.32 MB / 0.6663 GB, free: 6.082 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01757/1.015, allocations: 4.414 MB / 0.6706 GB, free: 1.605 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003684/1.015, allocations: 279.3 kB / 0.6709 GB, free: 1.332 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001874/1.017, allocations: 371.8 kB / 0.6712 GB, free: 0.9688 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3614/1.378, allocations: 9.13 MB / 0.6801 GB, free: 92.04 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003494/1.379, allocations: 54.59 kB / 0.6802 GB, free: 92.04 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002008/1.381, allocations: 184.9 kB / 0.6804 GB, free: 92.04 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002128/1.383, allocations: 0.8971 MB / 0.6812 GB, free: 92.04 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02102/1.404, allocations: 7.4 MB / 0.6885 GB, free: 92.02 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05841/1.463, allocations: 42.75 MB / 0.7302 GB, free: 63.36 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008222/1.471, allocations: 2.523 MB / 0.7327 GB, free: 62.13 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005143/1.471, allocations: 335.2 kB / 0.733 GB, free: 61.84 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.752e-05/1.472, allocations: 46.25 kB / 0.733 GB, free: 61.79 MB / 490.7 MB Notification: Performance of pre-optimization done (n=119): time 5.7e-06/1.472, allocations: 3.188 kB / 0.733 GB, free: 61.79 MB / 490.7 MB Notification: Performance of matching and sorting (n=133): time 0.04046/1.512, allocations: 8.904 MB / 0.7417 GB, free: 57.72 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.804e-05/1.512, allocations: 196.6 kB / 0.7419 GB, free: 57.5 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01084/1.523, allocations: 3.518 MB / 0.7454 GB, free: 56.31 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003232/1.523, allocations: 43.17 kB / 0.7454 GB, free: 56.27 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003017/1.526, allocations: 2.925 MB / 0.7483 GB, free: 54.11 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001004/1.527, allocations: 0.5409 MB / 0.7488 GB, free: 53.74 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009623/1.528, allocations: 115.3 kB / 0.7489 GB, free: 53.65 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0006646/1.529, allocations: 0.5573 MB / 0.7494 GB, free: 53.23 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005072/1.534, allocations: 1.641 MB / 0.751 GB, free: 52.71 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00727/1.542, allocations: 5.445 MB / 0.7564 GB, free: 46.98 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006972/1.549, allocations: 2.962 MB / 0.7593 GB, free: 45.79 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001455/1.549, allocations: 38.16 kB / 0.7593 GB, free: 45.79 MB / 490.7 MB Notification: Performance of matching and sorting (n=753) (initialization): time 0.01855/1.567, allocations: 6.838 MB / 0.766 GB, free: 43.14 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000109/1.568, allocations: 64.16 kB / 0.766 GB, free: 43.14 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000252/1.568, allocations: 136.2 kB / 0.7662 GB, free: 43.14 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001231/1.569, allocations: 366.8 kB / 0.7665 GB, free: 43.1 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007841/1.577, allocations: 1.332 MB / 0.7678 GB, free: 42.93 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004477/1.581, allocations: 2.781 MB / 0.7705 GB, free: 41.02 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006391/1.588, allocations: 308.8 kB / 0.7708 GB, free: 40.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001245/1.589, allocations: 367.5 kB / 0.7712 GB, free: 40.86 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.00528/1.595, allocations: 1.94 MB / 0.7731 GB, free: 39.92 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009989/1.596, allocations: 338.5 kB / 0.7734 GB, free: 39.73 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005217/1.601, allocations: 1.58 MB / 0.7749 GB, free: 39.09 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.626e-05/1.601, allocations: 23.23 kB / 0.775 GB, free: 39.09 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.482e-05/1.601, allocations: 7.688 kB / 0.775 GB, free: 39.09 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.889e-05/1.601, allocations: 3.938 kB / 0.775 GB, free: 39.09 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01669/1.618, allocations: 5.238 MB / 0.7801 GB, free: 37.06 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.726e-05/1.618, allocations: 3.656 kB / 0.7801 GB, free: 37.06 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001832/1.62, allocations: 197.1 kB / 0.7803 GB, free: 37.04 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008624/1.621, allocations: 156.8 kB / 0.7804 GB, free: 37 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002441/1.621, allocations: 26.38 kB / 0.7804 GB, free: 36.99 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003304/1.624, allocations: 2.199 MB / 0.7826 GB, free: 35.32 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/1.624, allocations: 2.906 kB / 0.7826 GB, free: 35.32 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007804/1.632, allocations: 3.583 MB / 0.7861 GB, free: 33.52 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00198/1.634, allocations: 0.5213 MB / 0.7866 GB, free: 33.17 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001059/1.635, allocations: 23.41 kB / 0.7866 GB, free: 33.15 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002592/1.638, allocations: 60.77 kB / 0.7867 GB, free: 33.14 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004186/1.638, allocations: 72.11 kB / 0.7868 GB, free: 33.12 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000131/1.638, allocations: 39.92 kB / 0.7868 GB, free: 33.12 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.00644/1.645, allocations: 2.451 MB / 0.7892 GB, free: 32.3 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.91e-07/1.645, allocations: 0 / 0.7892 GB, free: 32.3 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.006704/1.652, allocations: 0.8517 MB / 0.79 GB, free: 32.19 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.0006127/1.652, allocations: 149.6 kB / 0.7902 GB, free: 32.07 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.009162/1.661, allocations: 4.006 MB / 0.7941 GB, free: 30.64 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.404e-06/1.661, allocations: 0 / 0.7941 GB, free: 30.64 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002182/1.664, allocations: 0.9639 MB / 0.795 GB, free: 30.24 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003061/1.667, allocations: 362.8 kB / 0.7954 GB, free: 30.07 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02121/1.688, allocations: 9.532 MB / 0.8047 GB, free: 25.04 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006143/1.694, allocations: 3.032 MB / 0.8076 GB, free: 23.1 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001301/1.696, allocations: 273.7 kB / 0.8079 GB, free: 22.84 MB / 490.7 MB Notification: Performance of SimCode: time 1.213e-06/1.696, allocations: 0 / 0.8079 GB, free: 22.84 MB / 490.7 MB Notification: Performance of Templates: time 0.494/2.19, allocations: 64.63 MB / 0.871 GB, free: 113.3 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