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/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: 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001062/0.001062, allocations: 112.8 kB / 17.09 MB, free: 5.969 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.001122/0.001122, allocations: 200.2 kB / 18.02 MB, free: 5.047 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.271/1.271, allocations: 205.1 MB / 223.9 MB, free: 12.23 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.1891/0.1891, allocations: 43.52 MB / 314.8 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.001447/0.001447, allocations: 73.61 kB / 442.5 MB, free: 5.668 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09373/0.09518, allocations: 57.79 MB / 0.4885 GB, free: 11.8 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01127/0.1065, allocations: 10.01 MB / 0.4983 GB, free: 1.742 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007109/0.1136, allocations: 3.696 MB / 0.5019 GB, free: 14.04 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001217/0.1149, allocations: 55.81 kB / 0.502 GB, free: 13.98 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003412/0.1183, allocations: 1.954 MB / 0.5039 GB, free: 12.02 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00364/0.122, allocations: 1.739 MB / 0.5056 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00118/0.1232, allocations: 0.5731 MB / 0.5061 GB, free: 9.699 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004417/0.1276, allocations: 3.743 MB / 0.5098 GB, free: 5.945 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003396/0.131, allocations: 2.546 MB / 0.5123 GB, free: 3.344 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002221/0.1333, allocations: 1.281 MB / 0.5135 GB, free: 2.059 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0027/0.136, allocations: 1.822 MB / 0.5153 GB, free: 236 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008322/0.1368, allocations: 272 kB / 0.5156 GB, free: 15.96 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002378/0.1392, allocations: 1.158 MB / 0.5167 GB, free: 14.8 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001887/0.1411, allocations: 1.695 MB / 0.5184 GB, free: 13.11 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00284/0.144, allocations: 1.934 MB / 0.5203 GB, free: 11.16 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007079/0.1511, allocations: 6.412 MB / 0.5265 GB, free: 4.727 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.1511, allocations: 0 / 0.5265 GB, free: 4.727 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1511, allocations: 0 / 0.5265 GB, free: 4.727 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001856/0.1513, allocations: 0 / 0.5265 GB, free: 4.727 MB / 414.1 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.008867/0.1602, allocations: 4.199 MB / 0.5306 GB, free: 472 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.747e-05/0.1603, allocations: 11.89 kB / 0.5306 GB, free: 460 kB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2034/0.3637, allocations: 2.44 MB / 0.533 GB, free: 37.44 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006522/0.3703, allocations: 2.443 MB / 0.5354 GB, free: 36.89 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001467/0.3704, allocations: 198.2 kB / 0.5356 GB, free: 36.88 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006238/0.3711, allocations: 264.8 kB / 0.5358 GB, free: 36.88 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01363/0.3847, allocations: 8.765 MB / 0.5444 GB, free: 33.32 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001103/0.3848, allocations: 36.06 kB / 0.5444 GB, free: 33.3 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004102/0.3853, allocations: 129.8 kB / 0.5446 GB, free: 33.25 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00354/0.3888, allocations: 1.832 MB / 0.5463 GB, free: 32.93 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01436/0.4032, allocations: 7.468 MB / 0.5536 GB, free: 30.32 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03496/0.4382, allocations: 34.14 MB / 0.587 GB, free: 13.17 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005051/0.4433, allocations: 2.585 MB / 0.5895 GB, free: 10.43 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001656/0.445, allocations: 1.196 MB / 0.5907 GB, free: 9.23 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003568/0.4454, allocations: 319.8 kB / 0.591 GB, free: 8.863 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.659e-05/0.4454, allocations: 47.06 kB / 0.591 GB, free: 8.809 MB / 430.1 MB Notification: Performance of pre-optimization done (n=119): time 4.468e-06/0.4455, allocations: 4.328 kB / 0.591 GB, free: 8.805 MB / 430.1 MB Notification: Performance of matching and sorting (n=133): time 0.02653/0.472, allocations: 9.815 MB / 0.6006 GB, free: 14.88 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.47e-05/0.4721, allocations: 192.6 kB / 0.6008 GB, free: 14.65 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007692/0.4798, allocations: 3.971 MB / 0.6047 GB, free: 10.69 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002778/0.4801, allocations: 41.7 kB / 0.6047 GB, free: 10.64 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002987/0.4831, allocations: 2.948 MB / 0.6076 GB, free: 7.656 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000775/0.4839, allocations: 0.5481 MB / 0.6081 GB, free: 7.102 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002332/0.4863, allocations: 1.198 MB / 0.6093 GB, free: 5.891 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001071/0.4864, allocations: 305.1 kB / 0.6096 GB, free: 5.59 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002961/0.4894, allocations: 1.803 MB / 0.6113 GB, free: 3.781 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00517/0.4946, allocations: 5.639 MB / 0.6169 GB, free: 12.22 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009224/0.5038, allocations: 8.047 MB / 0.6247 GB, free: 2.27 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001027/0.504, allocations: 44 kB / 0.6248 GB, free: 2.227 MB / 462.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01425/0.5182, allocations: 7.589 MB / 0.6322 GB, free: 10.62 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001207/0.5184, allocations: 64 kB / 0.6322 GB, free: 10.56 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001946/0.5186, allocations: 136.8 kB / 0.6324 GB, free: 10.43 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001622/0.5202, allocations: 0.6682 MB / 0.633 GB, free: 9.758 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004064/0.5243, allocations: 1.349 MB / 0.6343 GB, free: 8.406 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004894/0.5292, allocations: 4.091 MB / 0.6383 GB, free: 4.172 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003878/0.5331, allocations: 315.5 kB / 0.6386 GB, free: 3.863 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008376/0.534, allocations: 376 kB / 0.639 GB, free: 3.496 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 619 * 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 (735): * Single equations (assignments): 731 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003729/0.5377, allocations: 1.943 MB / 0.6409 GB, free: 1.539 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007285/0.5384, allocations: 323.8 kB / 0.6412 GB, free: 1.219 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004245/0.5427, allocations: 2.073 MB / 0.6432 GB, free: 15.12 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.024e-05/0.5427, allocations: 7.969 kB / 0.6432 GB, free: 15.11 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.839e-06/0.5427, allocations: 4.75 kB / 0.6432 GB, free: 15.11 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001446/0.5442, allocations: 0.5396 MB / 0.6437 GB, free: 14.55 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009016/0.5451, allocations: 19.98 kB / 0.6438 GB, free: 14.53 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001594/0.5467, allocations: 67.91 kB / 0.6438 GB, free: 14.46 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002415/0.547, allocations: 76.53 kB / 0.6439 GB, free: 14.39 MB / 494.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004702/0.5517, allocations: 2.577 MB / 0.6464 GB, free: 11.8 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004767/0.5565, allocations: 3.573 MB / 0.6499 GB, free: 8.207 MB / 494.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001161/0.5576, allocations: 0.8508 MB / 0.6507 GB, free: 7.355 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004341/0.562, allocations: 2.468 MB / 0.6532 GB, free: 4.906 MB / 494.1 MB Notification: Performance of Backend: time 6.01e-07/0.562, allocations: 0 / 0.6532 GB, free: 4.906 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008725/0.5707, allocations: 3.78 MB / 0.6568 GB, free: 1.156 MB / 494.1 MB Notification: Performance of SimCode: time 0.01491/0.5857, allocations: 8.119 MB / 0.6648 GB, free: 8.984 MB / 0.4981 GB Notification: Performance of Templates: time 0.07253/0.6583, allocations: 38.25 MB / 0.7021 GB, free: 2.734 MB / 0.5294 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches