Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_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_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.001281/0.001281, allocations: 176.2 kB / 16.76 MB, free: 5.031 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.448/1.448, allocations: 205.4 MB / 222.9 MB, free: 9.035 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.0007774/0.0007775, allocations: 93.36 kB / 271.3 MB, free: 8.266 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.365/0.365, allocations: 43.56 MB / 363.1 MB, free: 51.86 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003924/0.0003927, allocations: 19.98 kB / 432.6 MB, free: 4.977 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1176/0.118, allocations: 58.84 MB / 491.5 MB, free: 10.05 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3509/0.4689, allocations: 104.7 MB / 0.5822 GB, free: 13.09 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002403/0.4692, allocations: 83.94 kB / 0.5823 GB, free: 13.01 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2048/0.674, allocations: 78.18 MB / 0.6586 GB, free: 14.34 MB / 490.7 MB Notification: Performance of FrontEnd: time 4.969e-06/0.6741, allocations: 0 / 0.6586 GB, free: 14.34 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002304/0.6743, allocations: 75.94 kB / 0.6587 GB, free: 14.26 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.01145/0.6858, allocations: 3.68 MB / 0.6623 GB, free: 10.52 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.351e-05/0.6858, allocations: 8.031 kB / 0.6623 GB, free: 10.51 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0148/0.7006, allocations: 3.501 MB / 0.6657 GB, free: 7 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008221/0.7089, allocations: 3.324 MB / 0.669 GB, free: 3.613 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003516/0.7093, allocations: 279.7 kB / 0.6693 GB, free: 3.34 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001929/0.7112, allocations: 376.2 kB / 0.6696 GB, free: 2.973 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2592/0.9705, allocations: 9.113 MB / 0.6785 GB, free: 92.37 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001661/0.9707, allocations: 59.92 kB / 0.6786 GB, free: 92.37 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006395/0.9714, allocations: 185.9 kB / 0.6787 GB, free: 92.37 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00125/0.9726, allocations: 0.8974 MB / 0.6796 GB, free: 92.37 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01327/0.9859, allocations: 7.358 MB / 0.6868 GB, free: 92.34 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03789/1.024, allocations: 42.75 MB / 0.7286 GB, free: 64.26 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004302/1.028, allocations: 2.521 MB / 0.731 GB, free: 63.03 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001208/1.029, allocations: 1.082 MB / 0.7321 GB, free: 62.57 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002919/1.03, allocations: 320.1 kB / 0.7324 GB, free: 62.29 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.501e-05/1.03, allocations: 49.53 kB / 0.7324 GB, free: 62.23 MB / 490.7 MB Notification: Performance of pre-optimization done (n=119): time 4.769e-06/1.03, allocations: 0 / 0.7324 GB, free: 62.23 MB / 490.7 MB Notification: Performance of matching and sorting (n=133): time 0.02044/1.05, allocations: 8.658 MB / 0.7409 GB, free: 58.46 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.097e-05/1.05, allocations: 201.3 kB / 0.7411 GB, free: 58.23 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006393/1.057, allocations: 3.938 MB / 0.7449 GB, free: 56.9 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002608/1.057, allocations: 41.83 kB / 0.745 GB, free: 56.86 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002043/1.059, allocations: 2.985 MB / 0.7479 GB, free: 54.72 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006655/1.06, allocations: 0.5428 MB / 0.7484 GB, free: 54.34 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000217/1.06, allocations: 115 kB / 0.7485 GB, free: 54.25 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002795/1.06, allocations: 0.5465 MB / 0.749 GB, free: 53.84 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002676/1.063, allocations: 1.646 MB / 0.7507 GB, free: 53.33 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004422/1.067, allocations: 5.476 MB / 0.756 GB, free: 47.58 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006871/1.074, allocations: 7.774 MB / 0.7636 GB, free: 40.46 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.092e-05/1.074, allocations: 37.84 kB / 0.7636 GB, free: 40.46 MB / 490.7 MB Notification: Performance of matching and sorting (n=753) (initialization): time 0.009887/1.084, allocations: 6.952 MB / 0.7704 GB, free: 37.75 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.871e-05/1.084, allocations: 65.56 kB / 0.7705 GB, free: 37.75 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.687e-05/1.084, allocations: 141.4 kB / 0.7706 GB, free: 37.74 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006025/1.085, allocations: 343.6 kB / 0.7709 GB, free: 37.7 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003155/1.088, allocations: 1.332 MB / 0.7722 GB, free: 37.53 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002417/1.091, allocations: 2.739 MB / 0.7749 GB, free: 35.64 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003663/1.094, allocations: 300.2 kB / 0.7752 GB, free: 35.53 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003752/1.095, allocations: 374 kB / 0.7756 GB, free: 35.48 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.002481/1.097, allocations: 1.939 MB / 0.7775 GB, free: 34.54 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004892/1.098, allocations: 328.8 kB / 0.7778 GB, free: 34.36 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002314/1.1, allocations: 1.584 MB / 0.7793 GB, free: 33.72 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-05/1.1, allocations: 14.66 kB / 0.7793 GB, free: 33.72 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.879e-06/1.1, allocations: 3.375 kB / 0.7793 GB, free: 33.72 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.087e-05/1.1, allocations: 3.703 kB / 0.7793 GB, free: 33.72 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007213/1.107, allocations: 5.261 MB / 0.7845 GB, free: 31.68 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.184e-06/1.107, allocations: 3.531 kB / 0.7845 GB, free: 31.68 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008102/1.108, allocations: 189.6 kB / 0.7847 GB, free: 31.67 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000398/1.109, allocations: 158.1 kB / 0.7848 GB, free: 31.62 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.645e-05/1.109, allocations: 27.19 kB / 0.7848 GB, free: 31.61 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001696/1.11, allocations: 2.154 MB / 0.7869 GB, free: 29.96 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/1.11, allocations: 3.844 kB / 0.7869 GB, free: 29.96 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003773/1.114, allocations: 3.377 MB / 0.7902 GB, free: 28.39 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00111/1.115, allocations: 0.519 MB / 0.7907 GB, free: 28.04 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003094/1.116, allocations: 31.02 kB / 0.7908 GB, free: 28.02 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009828/1.117, allocations: 55.34 kB / 0.7908 GB, free: 28.01 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001606/1.117, allocations: 72.36 kB / 0.7909 GB, free: 28 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.418e-05/1.117, allocations: 37.53 kB / 0.7909 GB, free: 27.99 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003143/1.12, allocations: 2.454 MB / 0.7933 GB, free: 27.17 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.5e-07/1.12, allocations: 0 / 0.7933 GB, free: 27.17 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.004766/1.125, allocations: 0.8454 MB / 0.7942 GB, free: 27.06 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.0003319/1.125, allocations: 153 kB / 0.7943 GB, free: 26.95 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.005381/1.131, allocations: 3.996 MB / 0.7982 GB, free: 25.53 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/1.131, allocations: 4 kB / 0.7982 GB, free: 25.53 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001109/1.132, allocations: 0.9813 MB / 0.7992 GB, free: 25.12 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003119/1.135, allocations: 380.5 kB / 0.7995 GB, free: 24.94 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01172/1.147, allocations: 9.134 MB / 0.8084 GB, free: 20.18 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00244/1.149, allocations: 2.955 MB / 0.8113 GB, free: 18.12 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.004124/1.153, allocations: 1.805 MB / 0.8131 GB, free: 16.99 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005192/1.154, allocations: 226.5 kB / 0.8133 GB, free: 16.77 MB / 490.7 MB Notification: Performance of SimCode: time 8.61e-07/1.154, allocations: 0 / 0.8133 GB, free: 16.77 MB / 490.7 MB Notification: Performance of Templates: time 0.04864/1.202, allocations: 27.48 MB / 0.8401 GB, free: 13.23 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_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_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches