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.001047/0.001047, allocations: 169.7 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.39/1.39, allocations: 221.5 MB / 230.7 MB, free: 7.578 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.0009078/0.0009079, allocations: 91.34 kB / 281.6 MB, free: 5.328 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.2114/0.2114, allocations: 44.15 MB / 376.5 MB, free: 3.043 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.954e-05/1.977e-05, allocations: 8.219 kB / 444.6 MB, free: 15.25 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1305/0.1305, allocations: 61.92 MB / 0.4947 GB, free: 1.266 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4495/0.5801, allocations: 105.1 MB / 0.5973 GB, free: 7.449 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001963/0.5803, allocations: 79.95 kB / 0.5973 GB, free: 7.371 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1898/0.7701, allocations: 74.41 MB / 0.67 GB, free: 12.45 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.7702, allocations: 0 / 0.67 GB, free: 12.45 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001581/0.7704, allocations: 64 kB / 0.6701 GB, free: 12.39 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.01227/0.7826, allocations: 3.353 MB / 0.6733 GB, free: 8.977 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.513e-05/0.7827, allocations: 11.98 kB / 0.6734 GB, free: 8.965 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0181/0.8008, allocations: 4.285 MB / 0.6775 GB, free: 4.668 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01114/0.812, allocations: 4.119 MB / 0.6816 GB, free: 496 kB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001559/0.8122, allocations: 111.9 kB / 0.6817 GB, free: 384 kB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001432/0.8136, allocations: 207.9 kB / 0.6819 GB, free: 176 kB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009259/0.8229, allocations: 4.808 MB / 0.6866 GB, free: 11.36 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01476/0.8377, allocations: 7.825 MB / 0.6942 GB, free: 2.562 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000254/0.838, allocations: 59.45 kB / 0.6943 GB, free: 2.504 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001264/0.8393, allocations: 28 kB / 0.6943 GB, free: 2.477 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001255/0.8405, allocations: 0.8254 MB / 0.6951 GB, free: 1.648 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3517/1.192, allocations: 39.37 MB / 0.7335 GB, free: 109.3 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002695/1.195, allocations: 2.332 MB / 0.7358 GB, free: 108.3 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001251/1.196, allocations: 0.9949 MB / 0.7368 GB, free: 108.3 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003403/1.197, allocations: 322.5 kB / 0.7371 GB, free: 108 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.05e-05/1.197, allocations: 46.52 kB / 0.7371 GB, free: 108 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=107): time 3.346e-06/1.197, allocations: 0 / 0.7371 GB, free: 108 MB / 0.5105 GB Notification: Performance of matching and sorting (n=122): time 0.01957/1.216, allocations: 8.994 MB / 0.7459 GB, free: 105.7 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001022/1.216, allocations: 202 kB / 0.7461 GB, free: 105.5 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005745/1.222, allocations: 2.905 MB / 0.749 GB, free: 105.2 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.00026/1.222, allocations: 26.83 kB / 0.749 GB, free: 105.2 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002176/1.225, allocations: 2.87 MB / 0.7518 GB, free: 103.7 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006199/1.225, allocations: 0.4958 MB / 0.7523 GB, free: 103.4 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001598/1.225, allocations: 3.688 kB / 0.7523 GB, free: 103.4 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002657/1.226, allocations: 0.5474 MB / 0.7528 GB, free: 103.1 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001678/1.227, allocations: 1.45 MB / 0.7542 GB, free: 103.1 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003652/1.231, allocations: 5.193 MB / 0.7593 GB, free: 98.2 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00336/1.234, allocations: 2.753 MB / 0.762 GB, free: 97.75 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.733e-05/1.234, allocations: 38.56 kB / 0.762 GB, free: 97.75 MB / 0.5105 GB Notification: Performance of matching and sorting (n=740) (initialization): time 0.009536/1.244, allocations: 5.881 MB / 0.7678 GB, free: 96.09 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 7.302e-05/1.244, allocations: 61.97 kB / 0.7678 GB, free: 96.09 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001502/1.244, allocations: 135.3 kB / 0.7679 GB, free: 96.09 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006674/1.245, allocations: 363.4 kB / 0.7683 GB, free: 96.05 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003562/1.249, allocations: 1.306 MB / 0.7696 GB, free: 95.88 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002471/1.251, allocations: 2.633 MB / 0.7721 GB, free: 94.08 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004698/1.256, allocations: 180.3 kB / 0.7723 GB, free: 94.06 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001097/1.257, allocations: 366.1 kB / 0.7727 GB, free: 94.01 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 615 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (705): * Single equations (assignments): 701 * 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.00093/1.258, allocations: 435.3 kB / 0.7731 GB, free: 93.65 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007496/1.259, allocations: 290.3 kB / 0.7734 GB, free: 93.49 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002081/1.261, allocations: 1.289 MB / 0.7746 GB, free: 92.99 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-05/1.261, allocations: 14.94 kB / 0.7746 GB, free: 92.99 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.213e-05/1.261, allocations: 6.062 kB / 0.7746 GB, free: 92.99 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.201e-05/1.261, allocations: 11.11 kB / 0.7746 GB, free: 92.99 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008531/1.269, allocations: 4.176 MB / 0.7787 GB, free: 91.37 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.975e-06/1.269, allocations: 0 / 0.7787 GB, free: 91.37 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007809/1.27, allocations: 175.1 kB / 0.7789 GB, free: 91.36 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000412/1.27, allocations: 155.1 kB / 0.779 GB, free: 91.32 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.506e-05/1.271, allocations: 3.281 kB / 0.779 GB, free: 91.32 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001674/1.272, allocations: 2.052 MB / 0.781 GB, free: 89.75 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.025e-06/1.272, allocations: 0 / 0.781 GB, free: 89.75 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003401/1.276, allocations: 3.126 MB / 0.7841 GB, free: 88.26 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007055/1.276, allocations: 332.9 kB / 0.7844 GB, free: 87.99 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002592/1.277, allocations: 0 / 0.7844 GB, free: 87.99 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00103/1.278, allocations: 40.95 kB / 0.7845 GB, free: 87.98 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001281/1.278, allocations: 69.17 kB / 0.7845 GB, free: 87.97 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.884e-05/1.278, allocations: 38.19 kB / 0.7846 GB, free: 87.96 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002436/1.28, allocations: 1.918 MB / 0.7864 GB, free: 87.26 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3.3e-07/1.28, allocations: 3.875 kB / 0.7864 GB, free: 87.26 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005159/1.286, allocations: 0.6768 MB / 0.7871 GB, free: 87.25 MB / 0.5105 GB 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (92): * Single equations (assignments): 88 * 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.0004523/1.286, allocations: 138.2 kB / 0.7872 GB, free: 87.16 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.00602/1.292, allocations: 3.529 MB / 0.7907 GB, free: 85.89 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/1.292, allocations: 0 / 0.7907 GB, free: 85.89 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0009771/1.293, allocations: 0.8716 MB / 0.7915 GB, free: 85.51 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001889/1.295, allocations: 298.5 kB / 0.7918 GB, free: 85.38 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01267/1.308, allocations: 5.776 MB / 0.7974 GB, free: 83.26 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002487/1.31, allocations: 2.88 MB / 0.8003 GB, free: 82.09 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.00405/1.314, allocations: 1.767 MB / 0.802 GB, free: 81.95 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000506/1.315, allocations: 205.1 kB / 0.8022 GB, free: 81.89 MB / 0.5105 GB Notification: Performance of SimCode: time 1.102e-06/1.315, allocations: 0.875 kB / 0.8022 GB, free: 81.89 MB / 0.5105 GB Notification: Performance of Templates: time 0.03828/1.353, allocations: 22.79 MB / 0.8244 GB, free: 68.53 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