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.0009975/0.0009976, allocations: 96.86 kB / 15.7 MB, free: 468 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001331/0.00133, allocations: 171.3 kB / 16.57 MB, free: 6.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.7/1.7, allocations: 205.4 MB / 222.7 MB, free: 5.664 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4091/0.4091, allocations: 43.58 MB / 314.6 MB, free: 9 MB / 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.0006202/0.0006204, allocations: 16 kB / 383.9 MB, free: 8.238 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.143/0.1437, allocations: 58.87 MB / 442.8 MB, free: 13.27 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.2986/0.4423, allocations: 37.59 MB / 480.4 MB, free: 28.27 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01977/0.4621, allocations: 8.473 MB / 488.9 MB, free: 22.54 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009894/0.4721, allocations: 170 kB / 489 MB, free: 22.52 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007403/0.4795, allocations: 1.93 MB / 491 MB, free: 21.84 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02097/0.5005, allocations: 5.88 MB / 496.8 MB, free: 19.39 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003414/0.5039, allocations: 0.4979 MB / 497.3 MB, free: 19.2 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.03339/0.5373, allocations: 18.35 MB / 0.5036 GB, free: 14.56 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007126/0.5445, allocations: 3.031 MB / 0.5066 GB, free: 12.82 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0033/0.5479, allocations: 1.082 MB / 0.5076 GB, free: 12.28 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003788/0.5517, allocations: 1.76 MB / 0.5093 GB, free: 11.41 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001265/0.553, allocations: 130.9 kB / 0.5095 GB, free: 11.41 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003573/0.5566, allocations: 0.9107 MB / 0.5104 GB, free: 11.02 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002498/0.5591, allocations: 1.519 MB / 0.5118 GB, free: 9.676 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001594/0.5607, allocations: 0.7375 MB / 0.5126 GB, free: 8.93 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005729/0.5665, allocations: 4.871 MB / 0.5173 GB, free: 4.047 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.444e-06/0.5665, allocations: 0 / 0.5173 GB, free: 4.047 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.5665, allocations: 0 / 0.5173 GB, free: 4.047 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002717/0.5668, allocations: 4 kB / 0.5173 GB, free: 4.043 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: 1367 * Number of variables: 1367 Notification: Performance of Generate backend data structure: time 0.008304/0.5751, allocations: 3.497 MB / 0.5207 GB, free: 492 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/0.5752, allocations: 12.02 kB / 0.5207 GB, free: 480 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01357/0.5887, allocations: 2.507 MB / 0.5232 GB, free: 13.95 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006131/0.5949, allocations: 2.375 MB / 0.5255 GB, free: 11.52 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001938/0.5952, allocations: 196.9 kB / 0.5257 GB, free: 11.33 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007334/0.5959, allocations: 259.9 kB / 0.5259 GB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01579/0.6117, allocations: 8.753 MB / 0.5345 GB, free: 1.672 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001154/0.6119, allocations: 39.59 kB / 0.5345 GB, free: 1.633 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003857/0.6123, allocations: 135.8 kB / 0.5347 GB, free: 1.5 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00325/0.6155, allocations: 1.833 MB / 0.5365 GB, free: 15.66 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0148/0.6304, allocations: 7.448 MB / 0.5437 GB, free: 8.211 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0491/0.6795, allocations: 34.31 MB / 0.5772 GB, free: 4.891 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005528/0.6851, allocations: 2.586 MB / 0.5798 GB, free: 2.16 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001863/0.687, allocations: 1.184 MB / 0.5809 GB, free: 0.9609 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004334/0.6875, allocations: 323.8 kB / 0.5812 GB, free: 0.5898 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.663e-05/0.6875, allocations: 51.12 kB / 0.5813 GB, free: 0.5312 MB / 446.1 MB Notification: Performance of pre-optimization done (n=119): time 7.434e-06/0.6876, allocations: 0 / 0.5813 GB, free: 0.5312 MB / 446.1 MB Notification: Performance of matching and sorting (n=133): time 0.02701/0.7146, allocations: 9.792 MB / 0.5908 GB, free: 6.625 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001385/0.7148, allocations: 196.6 kB / 0.591 GB, free: 6.391 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007681/0.7225, allocations: 3.948 MB / 0.5949 GB, free: 2.457 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000221/0.7227, allocations: 41.7 kB / 0.5949 GB, free: 2.41 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00293/0.7257, allocations: 2.948 MB / 0.5978 GB, free: 15.42 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007884/0.7265, allocations: 0.5442 MB / 0.5983 GB, free: 14.87 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000408/0.7269, allocations: 116 kB / 0.5984 GB, free: 14.75 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0005359/0.7274, allocations: 0.554 MB / 0.599 GB, free: 14.19 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003537/0.731, allocations: 1.784 MB / 0.6007 GB, free: 12.4 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00721/0.7382, allocations: 5.609 MB / 0.6062 GB, free: 4.871 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005837/0.7441, allocations: 3.096 MB / 0.6092 GB, free: 1.773 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000165/0.7442, allocations: 40 kB / 0.6093 GB, free: 1.734 MB / 478.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01566/0.7599, allocations: 7.555 MB / 0.6166 GB, free: 10.18 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001283/0.7601, allocations: 64 kB / 0.6167 GB, free: 10.12 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002554/0.7603, allocations: 132 kB / 0.6168 GB, free: 9.988 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00165/0.762, allocations: 0.6832 MB / 0.6175 GB, free: 9.305 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004209/0.7662, allocations: 1.353 MB / 0.6188 GB, free: 7.949 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005276/0.7715, allocations: 3.796 MB / 0.6225 GB, free: 4.02 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005081/0.7766, allocations: 319.5 kB / 0.6228 GB, free: 3.707 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001015/0.7777, allocations: 376 kB / 0.6232 GB, free: 3.34 MB / 494.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 (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 {(2,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004137/0.7818, allocations: 1.943 MB / 0.6251 GB, free: 1.383 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007972/0.7826, allocations: 327.8 kB / 0.6254 GB, free: 1.059 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.327/1.11, allocations: 2.063 MB / 0.6274 GB, free: 135.6 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.906e-05/1.11, allocations: 13.78 kB / 0.6274 GB, free: 135.6 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.368e-05/1.11, allocations: 6.562 kB / 0.6274 GB, free: 135.6 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.865e-05/1.11, allocations: 6.609 kB / 0.6274 GB, free: 135.6 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01008/1.12, allocations: 5.792 MB / 0.6331 GB, free: 135.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.474e-05/1.12, allocations: 3 kB / 0.6331 GB, free: 135.1 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000825/1.121, allocations: 193.2 kB / 0.6333 GB, free: 135.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001115/1.122, allocations: 484.1 kB / 0.6337 GB, free: 135.1 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000101/1.122, allocations: 24.75 kB / 0.6338 GB, free: 135.1 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003364/1.125, allocations: 3.227 MB / 0.6369 GB, free: 133.8 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.482e-06/1.125, allocations: 5.453 kB / 0.6369 GB, free: 133.8 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005637/1.131, allocations: 3.978 MB / 0.6408 GB, free: 132.4 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002029/1.133, allocations: 0.5479 MB / 0.6413 GB, free: 132.2 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004816/1.134, allocations: 24.95 kB / 0.6414 GB, free: 132.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001063/1.135, allocations: 73.64 kB / 0.6414 GB, free: 132.2 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002601/1.135, allocations: 65.39 kB / 0.6415 GB, free: 132.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001047/1.135, allocations: 40.33 kB / 0.6415 GB, free: 132.2 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004382/1.139, allocations: 2.45 MB / 0.6439 GB, free: 131.4 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.5e-07/1.139, allocations: 0 / 0.6439 GB, free: 131.4 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005552/1.145, allocations: 0.8841 MB / 0.6448 GB, free: 131.2 MB / 494.1 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.0004317/1.145, allocations: 144.5 kB / 0.6449 GB, free: 131.1 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007346/1.153, allocations: 4.265 MB / 0.6491 GB, free: 129.7 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.079e-05/1.153, allocations: 0 / 0.6491 GB, free: 129.7 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001863/1.155, allocations: 1.069 MB / 0.6501 GB, free: 129.2 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004302/1.159, allocations: 366.7 kB / 0.6505 GB, free: 129.1 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02276/1.182, allocations: 9.331 MB / 0.6596 GB, free: 124.4 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005891/1.188, allocations: 2.951 MB / 0.6625 GB, free: 123.2 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0067/1.194, allocations: 1.829 MB / 0.6643 GB, free: 123 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001038/1.196, allocations: 228.9 kB / 0.6645 GB, free: 123 MB / 494.1 MB Notification: Performance of SimCode: time 1.022e-06/1.196, allocations: 0 / 0.6645 GB, free: 123 MB / 494.1 MB Notification: Performance of Templates: time 0.06812/1.264, allocations: 28.81 MB / 0.6926 GB, free: 110.5 MB / 494.1 MB 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/jenkins/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