Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.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.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001114/0.001114, allocations: 179.8 kB / 14.15 MB, free: 1.176 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.232/1.232, allocations: 221.3 MB / 236 MB, free: 2.957 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008855/0.0008853, allocations: 87.69 kB / 287 MB, free: 240 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.176/0.176, allocations: 44.16 MB / 382 MB, free: 14.66 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.557e-05/3.567e-05, allocations: 8.219 kB / 451.8 MB, free: 9.422 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1163/0.1163, allocations: 61.91 MB / 0.5017 GB, free: 11.45 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3417/0.458, allocations: 106.3 MB / 0.6055 GB, free: 14.98 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002384/0.4583, allocations: 79.89 kB / 0.6056 GB, free: 14.9 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1767/0.635, allocations: 72.09 MB / 0.676 GB, free: 6.348 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.853e-06/0.635, allocations: 0 / 0.676 GB, free: 6.348 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001111/0.6352, allocations: 56 kB / 0.676 GB, free: 6.293 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: 1170 * Number of variables: 1170 Notification: Performance of Generate backend data structure: time 0.006304/0.6415, allocations: 3.184 MB / 0.6791 GB, free: 3.047 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.062e-05/0.6415, allocations: 8.031 kB / 0.6791 GB, free: 3.039 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01565/0.6572, allocations: 4.227 MB / 0.6833 GB, free: 14.8 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01131/0.6685, allocations: 4.001 MB / 0.6872 GB, free: 10.73 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002587/0.6689, allocations: 254.2 kB / 0.6874 GB, free: 10.48 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001357/0.6702, allocations: 315.8 kB / 0.6877 GB, free: 10.18 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01248/0.6827, allocations: 7.947 MB / 0.6955 GB, free: 1.273 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001224/0.6829, allocations: 59.47 kB / 0.6955 GB, free: 1.215 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004029/0.6833, allocations: 163.9 kB / 0.6957 GB, free: 1.055 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00093/0.6842, allocations: 0.7819 MB / 0.6964 GB, free: 276 kB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01038/0.6946, allocations: 6.316 MB / 0.7026 GB, free: 9.938 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2919/0.9866, allocations: 38.99 MB / 0.7407 GB, free: 103.7 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004198/0.9908, allocations: 2.159 MB / 0.7428 GB, free: 103.1 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001307/0.9921, allocations: 1.011 MB / 0.7438 GB, free: 103 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003278/0.9925, allocations: 316.7 kB / 0.7441 GB, free: 102.8 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.929e-05/0.9925, allocations: 49.36 kB / 0.7441 GB, free: 102.7 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=108): time 3.607e-06/0.9925, allocations: 0 / 0.7441 GB, free: 102.7 MB / 0.5105 GB Notification: Performance of matching and sorting (n=132): time 0.02522/1.018, allocations: 9.006 MB / 0.7529 GB, free: 100.4 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.991e-05/1.018, allocations: 200.8 kB / 0.7531 GB, free: 100.2 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006141/1.024, allocations: 3.207 MB / 0.7562 GB, free: 99.84 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0002924/1.024, allocations: 45.58 kB / 0.7563 GB, free: 99.8 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001555/1.026, allocations: 2.62 MB / 0.7588 GB, free: 98.58 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005443/1.026, allocations: 0.5292 MB / 0.7594 GB, free: 98.29 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002082/1.027, allocations: 103.5 kB / 0.7595 GB, free: 98.29 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002628/1.027, allocations: 0.5259 MB / 0.76 GB, free: 97.98 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002103/1.029, allocations: 1.543 MB / 0.7615 GB, free: 97.96 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003242/1.032, allocations: 4.892 MB / 0.7663 GB, free: 93.6 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003172/1.036, allocations: 2.745 MB / 0.7689 GB, free: 93.57 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.197e-05/1.036, allocations: 34.25 kB / 0.769 GB, free: 93.57 MB / 0.5105 GB Notification: Performance of matching and sorting (n=680) (initialization): time 0.008647/1.044, allocations: 6.368 MB / 0.7752 GB, free: 91.7 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 6.363e-05/1.044, allocations: 59.58 kB / 0.7752 GB, free: 91.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.948e-05/1.044, allocations: 126.3 kB / 0.7754 GB, free: 91.69 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006063/1.045, allocations: 345.3 kB / 0.7757 GB, free: 91.65 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003042/1.048, allocations: 1.194 MB / 0.7769 GB, free: 91.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002267/1.05, allocations: 2.687 MB / 0.7795 GB, free: 89.63 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003306/1.054, allocations: 285.2 kB / 0.7798 GB, free: 89.52 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003604/1.054, allocations: 330.2 kB / 0.7801 GB, free: 89.48 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 544 * Number of states: 0 () * Number of discrete variables: 29 (BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[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],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (645): * Single equations (assignments): 641 * 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.0005054/1.055, allocations: 0.5102 MB / 0.7806 GB, free: 89.06 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003662/1.055, allocations: 300 kB / 0.7809 GB, free: 88.89 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002253/1.057, allocations: 1.581 MB / 0.7824 GB, free: 88.26 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.955e-05/1.057, allocations: 15.25 kB / 0.7824 GB, free: 88.26 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.456e-06/1.057, allocations: 3.406 kB / 0.7824 GB, free: 88.26 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.022e-05/1.057, allocations: 3.938 kB / 0.7824 GB, free: 88.26 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006974/1.064, allocations: 5.145 MB / 0.7874 GB, free: 86.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.297e-06/1.064, allocations: 0 / 0.7874 GB, free: 86.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009389/1.065, allocations: 202 kB / 0.7876 GB, free: 86.18 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004543/1.066, allocations: 159.9 kB / 0.7878 GB, free: 86.14 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.202e-05/1.066, allocations: 23.75 kB / 0.7878 GB, free: 86.13 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001774/1.068, allocations: 2.139 MB / 0.7899 GB, free: 84.49 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/1.068, allocations: 3.938 kB / 0.7899 GB, free: 84.49 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003764/1.071, allocations: 3.608 MB / 0.7934 GB, free: 82.76 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009891/1.072, allocations: 365.6 kB / 0.7938 GB, free: 82.48 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003416/1.073, allocations: 21.34 kB / 0.7938 GB, free: 82.46 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001069/1.074, allocations: 67.91 kB / 0.7939 GB, free: 82.44 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000147/1.074, allocations: 69.08 kB / 0.7939 GB, free: 82.43 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.877e-05/1.074, allocations: 30.91 kB / 0.794 GB, free: 82.43 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002856/1.077, allocations: 2.24 MB / 0.7961 GB, free: 81.65 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.2e-07/1.077, allocations: 0 / 0.7961 GB, free: 81.65 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.003856/1.081, allocations: 0.778 MB / 0.7969 GB, free: 81.55 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete 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.0003569/1.081, allocations: 159 kB / 0.7971 GB, free: 81.43 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.005337/1.086, allocations: 3.782 MB / 0.8008 GB, free: 80.05 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 5.289e-06/1.087, allocations: 0 / 0.8008 GB, free: 80.05 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001141/1.088, allocations: 1.014 MB / 0.8017 GB, free: 79.62 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002275/1.09, allocations: 347.9 kB / 0.8021 GB, free: 79.46 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009193/1.099, allocations: 5.711 MB / 0.8077 GB, free: 77.33 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002081/1.101, allocations: 2.745 MB / 0.8103 GB, free: 76.18 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.003987/1.105, allocations: 1.698 MB / 0.812 GB, free: 75.86 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005175/1.106, allocations: 206.5 kB / 0.8122 GB, free: 75.66 MB / 0.5105 GB Notification: Performance of SimCode: time 1.232e-06/1.106, allocations: 4 kB / 0.8122 GB, free: 75.66 MB / 0.5105 GB Notification: Performance of Templates: time 0.04121/1.147, allocations: 26.23 MB / 0.8378 GB, free: 57.75 MB / 0.5105 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches