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.00136/0.00136, allocations: 175.1 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.415/1.415, allocations: 221.5 MB / 230.7 MB, free: 7.559 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.0008875/0.0008875, allocations: 89.86 kB / 281.6 MB, free: 5.312 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.2055/0.2055, allocations: 44.15 MB / 376.5 MB, free: 3.035 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.601e-05/1.597e-05, allocations: 4 kB / 444.6 MB, free: 15.23 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1298/0.1298, allocations: 61.92 MB / 0.4947 GB, free: 1.242 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4571/0.587, allocations: 105.6 MB / 0.5978 GB, free: 6.852 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002693/0.5873, allocations: 83.94 kB / 0.5979 GB, free: 6.77 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1847/0.772, allocations: 70.82 MB / 0.667 GB, free: 15.44 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.772, allocations: 0 / 0.667 GB, free: 15.44 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001516/0.7722, allocations: 56 kB / 0.6671 GB, free: 15.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: 1170 * Number of variables: 1170 Notification: Performance of Generate backend data structure: time 0.0103/0.7825, allocations: 3.175 MB / 0.6702 GB, free: 12.16 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.727e-05/0.7826, allocations: 11.98 kB / 0.6702 GB, free: 12.14 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01733/0.7999, allocations: 4.227 MB / 0.6743 GB, free: 7.906 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01091/0.8109, allocations: 4.005 MB / 0.6782 GB, free: 3.836 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001823/0.8111, allocations: 104 kB / 0.6783 GB, free: 3.734 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001491/0.8126, allocations: 187.9 kB / 0.6785 GB, free: 3.551 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008722/0.8213, allocations: 4.463 MB / 0.6829 GB, free: 15.08 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0117/0.8331, allocations: 7.33 MB / 0.69 GB, free: 6.801 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000119/0.8332, allocations: 55.47 kB / 0.6901 GB, free: 6.746 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003742/0.8336, allocations: 28 kB / 0.6901 GB, free: 6.719 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009742/0.8346, allocations: 0.7819 MB / 0.6909 GB, free: 5.934 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.349/1.184, allocations: 37.46 MB / 0.7275 GB, free: 112.9 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002908/1.187, allocations: 2.242 MB / 0.7297 GB, free: 112 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001376/1.188, allocations: 1.012 MB / 0.7306 GB, free: 112 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003744/1.188, allocations: 318.8 kB / 0.731 GB, free: 111.7 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.442e-05/1.188, allocations: 49.61 kB / 0.731 GB, free: 111.6 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=111): time 4.639e-06/1.188, allocations: 0 / 0.731 GB, free: 111.6 MB / 0.5105 GB Notification: Performance of matching and sorting (n=135): time 0.02256/1.211, allocations: 9.936 MB / 0.7407 GB, free: 109.3 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.373e-05/1.211, allocations: 203 kB / 0.7409 GB, free: 109.1 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004747/1.216, allocations: 2.751 MB / 0.7436 GB, free: 108.8 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0002643/1.216, allocations: 27.61 kB / 0.7436 GB, free: 108.8 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001876/1.218, allocations: 2.664 MB / 0.7462 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005725/1.219, allocations: 0.5235 MB / 0.7467 GB, free: 107.2 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001609/1.219, allocations: 4.812 kB / 0.7467 GB, free: 107.2 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002958/1.219, allocations: 0.535 MB / 0.7472 GB, free: 106.9 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001941/1.221, allocations: 1.484 MB / 0.7487 GB, free: 106.8 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002941/1.224, allocations: 4.947 MB / 0.7535 GB, free: 102.3 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002926/1.227, allocations: 2.72 MB / 0.7562 GB, free: 102.2 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.833e-05/1.227, allocations: 37.05 kB / 0.7562 GB, free: 102.2 MB / 0.5105 GB Notification: Performance of matching and sorting (n=707) (initialization): time 0.00814/1.235, allocations: 5.779 MB / 0.7619 GB, free: 100.6 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 6.635e-05/1.235, allocations: 56.91 kB / 0.7619 GB, free: 100.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001141/1.235, allocations: 128.6 kB / 0.762 GB, free: 100.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00064/1.236, allocations: 341 kB / 0.7624 GB, free: 100.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003461/1.239, allocations: 1.256 MB / 0.7636 GB, free: 100.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002372/1.242, allocations: 2.603 MB / 0.7661 GB, free: 98.64 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004582/1.246, allocations: 178.6 kB / 0.7663 GB, free: 98.61 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008938/1.247, allocations: 351.1 kB / 0.7666 GB, free: 98.57 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 568 * 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 (672): * Single equations (assignments): 668 * 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.0008004/1.248, allocations: 409.4 kB / 0.767 GB, free: 98.23 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007369/1.249, allocations: 277.7 kB / 0.7673 GB, free: 98.08 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002321/1.251, allocations: 1.503 MB / 0.7688 GB, free: 97.49 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.161e-05/1.251, allocations: 17.64 kB / 0.7688 GB, free: 97.49 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.191e-05/1.251, allocations: 5.844 kB / 0.7688 GB, free: 97.49 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.118e-05/1.251, allocations: 7.438 kB / 0.7688 GB, free: 97.49 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007866/1.259, allocations: 4.58 MB / 0.7733 GB, free: 95.64 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.877e-06/1.259, allocations: 6.281 kB / 0.7733 GB, free: 95.64 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001009/1.26, allocations: 202 kB / 0.7735 GB, free: 95.62 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004169/1.261, allocations: 155.9 kB / 0.7736 GB, free: 95.59 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.704e-05/1.261, allocations: 10.47 kB / 0.7736 GB, free: 95.59 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001684/1.262, allocations: 2.054 MB / 0.7756 GB, free: 94.04 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.971e-06/1.262, allocations: 7.469 kB / 0.7756 GB, free: 94.04 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004041/1.267, allocations: 3.519 MB / 0.7791 GB, free: 92.35 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009899/1.268, allocations: 332.7 kB / 0.7794 GB, free: 92.08 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002958/1.268, allocations: 3.25 kB / 0.7794 GB, free: 92.08 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001007/1.269, allocations: 40.88 kB / 0.7794 GB, free: 92.08 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001495/1.269, allocations: 66.69 kB / 0.7795 GB, free: 92.07 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.697e-05/1.269, allocations: 39.61 kB / 0.7795 GB, free: 92.07 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002778/1.272, allocations: 1.826 MB / 0.7813 GB, free: 91.39 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3.21e-07/1.272, allocations: 0 / 0.7813 GB, free: 91.39 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.004757/1.277, allocations: 0.662 MB / 0.782 GB, free: 91.38 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 (105): * Single equations (assignments): 101 * 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.000348/1.277, allocations: 140.7 kB / 0.7821 GB, free: 91.28 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.004987/1.282, allocations: 3.601 MB / 0.7856 GB, free: 89.99 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/1.282, allocations: 3.969 kB / 0.7856 GB, free: 89.99 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00105/1.283, allocations: 0.989 MB / 0.7866 GB, free: 89.56 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002102/1.285, allocations: 292.4 kB / 0.7869 GB, free: 89.43 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0112/1.296, allocations: 5.651 MB / 0.7924 GB, free: 87.34 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002669/1.299, allocations: 2.75 MB / 0.7951 GB, free: 86.19 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.00438/1.304, allocations: 1.732 MB / 0.7968 GB, free: 86.05 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006611/1.304, allocations: 196.5 kB / 0.7969 GB, free: 86 MB / 0.5105 GB Notification: Performance of SimCode: time 2.465e-06/1.304, allocations: 4 kB / 0.7969 GB, free: 86 MB / 0.5105 GB Notification: Performance of Templates: time 0.04399/1.348, allocations: 22.91 MB / 0.8193 GB, free: 72.25 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