Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.conf.json 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 4.0.0+maint.om/package.mo", uses=false) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001291/0.00129, allocations: 183.8 kB / 17.06 MB, free: 5.074 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.28/1.28, allocations: 223.2 MB / 241 MB, free: 10.14 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008956/0.0008956, allocations: 102.6 kB / 292.2 MB, free: 10.67 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3125/0.3125, allocations: 44.21 MB / 387.5 MB, free: 38.5 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003468/0.0003469, allocations: 8 kB / 459.9 MB, free: 1.508 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2962/0.2965, allocations: 61.9 MB / 0.5096 GB, free: 37.86 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1295/0.4261, allocations: 105.8 MB / 0.6129 GB, free: 5.277 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000206/0.4263, allocations: 87.92 kB / 0.613 GB, free: 5.195 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4882/0.9146, allocations: 75.8 MB / 0.687 GB, free: 96.2 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.9146, allocations: 1.781 kB / 0.687 GB, free: 96.2 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001635/0.9148, allocations: 66.75 kB / 0.6871 GB, free: 96.2 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: 1269 * Number of variables: 1269 Notification: Performance of Generate backend data structure: time 0.008994/0.9238, allocations: 3.586 MB / 0.6906 GB, free: 94.66 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.464e-05/0.9238, allocations: 10.25 kB / 0.6906 GB, free: 94.66 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01512/0.9389, allocations: 4.268 MB / 0.6947 GB, free: 94.43 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0109/0.9499, allocations: 4.147 MB / 0.6988 GB, free: 93.91 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001666/0.9501, allocations: 267.1 kB / 0.699 GB, free: 93.9 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008993/0.951, allocations: 346.9 kB / 0.6994 GB, free: 93.9 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01227/0.9633, allocations: 8.571 MB / 0.7077 GB, free: 91.32 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001181/0.9634, allocations: 58.75 kB / 0.7078 GB, free: 91.32 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005659/0.964, allocations: 175.3 kB / 0.708 GB, free: 91.32 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001118/0.9651, allocations: 0.8223 MB / 0.7088 GB, free: 91.32 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01352/0.9787, allocations: 6.867 MB / 0.7155 GB, free: 90.65 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03655/1.015, allocations: 40.95 MB / 0.7555 GB, free: 58.1 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003827/1.019, allocations: 2.425 MB / 0.7578 GB, free: 56.9 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002646/1.019, allocations: 329.3 kB / 0.7581 GB, free: 56.6 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.998e-05/1.019, allocations: 55.84 kB / 0.7582 GB, free: 56.55 MB / 490.7 MB Notification: Performance of pre-optimization done (n=104): time 3.056e-06/1.019, allocations: 0 / 0.7582 GB, free: 56.55 MB / 490.7 MB Notification: Performance of matching and sorting (n=118): time 0.01788/1.037, allocations: 8.318 MB / 0.7663 GB, free: 52.55 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.184e-05/1.037, allocations: 194.5 kB / 0.7665 GB, free: 52.33 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004919/1.042, allocations: 3.369 MB / 0.7698 GB, free: 51.11 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001713/1.043, allocations: 41.2 kB / 0.7698 GB, free: 51.07 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001677/1.044, allocations: 2.824 MB / 0.7726 GB, free: 48.88 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005241/1.045, allocations: 0.4899 MB / 0.7731 GB, free: 48.53 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003556/1.045, allocations: 109 kB / 0.7732 GB, free: 48.45 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003328/1.046, allocations: 0.5312 MB / 0.7737 GB, free: 48.05 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002173/1.048, allocations: 1.548 MB / 0.7752 GB, free: 47.56 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003365/1.051, allocations: 5.146 MB / 0.7802 GB, free: 42.03 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003698/1.055, allocations: 2.784 MB / 0.783 GB, free: 40.89 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001088/1.055, allocations: 36.25 kB / 0.783 GB, free: 40.89 MB / 490.7 MB Notification: Performance of matching and sorting (n=709) (initialization): time 0.009711/1.065, allocations: 6.565 MB / 0.7894 GB, free: 38.34 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.364e-05/1.065, allocations: 61.12 kB / 0.7895 GB, free: 38.34 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001947/1.065, allocations: 125.3 kB / 0.7896 GB, free: 38.34 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007866/1.066, allocations: 360 kB / 0.7899 GB, free: 38.29 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003484/1.069, allocations: 1.248 MB / 0.7911 GB, free: 38.13 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002628/1.072, allocations: 2.764 MB / 0.7938 GB, free: 36.22 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003507/1.075, allocations: 284.4 kB / 0.7941 GB, free: 36.11 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005018/1.076, allocations: 349.8 kB / 0.7944 GB, free: 36.07 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 588 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.arrowLine.twoHeadedArrow,distance2.arrow.headAtOrigin,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[1],distance1.arrow.arrowLine.twoHeadedArrow,distance1.arrow.headAtOrigin,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 (674): * Single equations (assignments): 670 * 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.002879/1.079, allocations: 1.84 MB / 0.7962 GB, free: 34.82 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006586/1.079, allocations: 315.8 kB / 0.7965 GB, free: 34.51 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00226/1.082, allocations: 1.349 MB / 0.7979 GB, free: 33.38 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.271e-05/1.082, allocations: 20.11 kB / 0.7979 GB, free: 33.36 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.568e-06/1.082, allocations: 7.938 kB / 0.7979 GB, free: 33.36 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.084e-05/1.082, allocations: 6.938 kB / 0.7979 GB, free: 33.36 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009845/1.092, allocations: 4.788 MB / 0.8026 GB, free: 29.43 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.307e-05/1.092, allocations: 7.609 kB / 0.8026 GB, free: 29.42 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007834/1.092, allocations: 166.6 kB / 0.8027 GB, free: 29.29 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004534/1.093, allocations: 160.3 kB / 0.8029 GB, free: 29.17 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.703e-05/1.093, allocations: 20 kB / 0.8029 GB, free: 29.15 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001825/1.095, allocations: 2.195 MB / 0.805 GB, free: 27.02 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/1.095, allocations: 4.062 kB / 0.8051 GB, free: 27.01 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003592/1.099, allocations: 3.217 MB / 0.8082 GB, free: 24.11 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001107/1.1, allocations: 366.5 kB / 0.8085 GB, free: 23.74 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007409/1.1, allocations: 16 kB / 0.8086 GB, free: 23.73 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001288/1.102, allocations: 49.61 kB / 0.8086 GB, free: 23.69 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001355/1.102, allocations: 70.58 kB / 0.8087 GB, free: 23.64 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.41e-05/1.102, allocations: 39.45 kB / 0.8087 GB, free: 23.61 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.004057/1.106, allocations: 2.338 MB / 0.811 GB, free: 21.7 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.01e-07/1.106, allocations: 0 / 0.811 GB, free: 21.7 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005278/1.111, allocations: 0.7988 MB / 0.8118 GB, free: 20.91 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (88): * Single equations (assignments): 84 * 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.0005024/1.112, allocations: 154.1 kB / 0.8119 GB, free: 20.75 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.005362/1.117, allocations: 3.754 MB / 0.8156 GB, free: 17.43 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/1.117, allocations: 0 / 0.8156 GB, free: 17.43 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009971/1.118, allocations: 0.9041 MB / 0.8165 GB, free: 16.62 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002019/1.12, allocations: 362 kB / 0.8168 GB, free: 16.3 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0135/1.134, allocations: 8.475 MB / 0.8251 GB, free: 8.535 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003093/1.137, allocations: 2.88 MB / 0.8279 GB, free: 6.32 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.003994/1.141, allocations: 1.721 MB / 0.8296 GB, free: 5.246 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005703/1.141, allocations: 210.4 kB / 0.8298 GB, free: 5.047 MB / 490.7 MB Notification: Performance of SimCode: time 9.11e-07/1.141, allocations: 0 / 0.8298 GB, free: 5.047 MB / 490.7 MB Notification: Performance of Templates: time 0.04971/1.191, allocations: 26.06 MB / 0.8552 GB, free: 12.9 MB / 0.5105 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches