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.001592/0.001591, allocations: 183.3 kB / 18.09 MB, free: 3.73 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.36/1.36, allocations: 223.3 MB / 242.1 MB, free: 11.74 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.0009907/0.0009904, allocations: 107.7 kB / 293.3 MB, free: 10.8 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.3537/0.3537, allocations: 44.15 MB / 388.5 MB, free: 38.76 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003966/0.0003967, allocations: 16 kB / 461.1 MB, free: 1.336 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4106/0.411, allocations: 61.87 MB / 0.5107 GB, free: 38.35 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1486/0.5596, allocations: 106.5 MB / 0.6147 GB, free: 4.605 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002615/0.56, allocations: 87.92 kB / 0.6148 GB, free: 4.523 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4976/1.058, allocations: 71.05 MB / 0.6842 GB, free: 97.07 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.196e-06/1.058, allocations: 0 / 0.6842 GB, free: 97.07 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002817/1.058, allocations: 59.59 kB / 0.6842 GB, free: 97.07 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.01402/1.072, allocations: 3.313 MB / 0.6875 GB, free: 95.67 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.095e-05/1.072, allocations: 8.812 kB / 0.6875 GB, free: 95.67 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02021/1.092, allocations: 3.403 MB / 0.6908 GB, free: 95.45 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008501/1.101, allocations: 2.955 MB / 0.6937 GB, free: 94.91 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002682/1.101, allocations: 243 kB / 0.6939 GB, free: 94.9 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001183/1.102, allocations: 317 kB / 0.6942 GB, free: 94.9 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01718/1.119, allocations: 8 MB / 0.702 GB, free: 92.41 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002038/1.12, allocations: 57.97 kB / 0.7021 GB, free: 92.4 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000681/1.12, allocations: 159.2 kB / 0.7022 GB, free: 92.4 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001217/1.122, allocations: 0.7835 MB / 0.703 GB, free: 92.39 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01565/1.137, allocations: 6.394 MB / 0.7092 GB, free: 92.32 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04843/1.186, allocations: 38.98 MB / 0.7473 GB, free: 62.05 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005616/1.191, allocations: 2.171 MB / 0.7494 GB, free: 60.93 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001577/1.193, allocations: 1.025 MB / 0.7504 GB, free: 60.49 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003583/1.193, allocations: 320.3 kB / 0.7507 GB, free: 60.2 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.425e-05/1.193, allocations: 46.81 kB / 0.7508 GB, free: 60.14 MB / 490.7 MB Notification: Performance of pre-optimization done (n=108): time 5.24e-06/1.193, allocations: 0 / 0.7508 GB, free: 60.14 MB / 490.7 MB Notification: Performance of matching and sorting (n=132): time 0.03102/1.224, allocations: 10.67 MB / 0.7612 GB, free: 55.82 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.844e-05/1.225, allocations: 202.8 kB / 0.7614 GB, free: 55.59 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003875/1.228, allocations: 3.63 MB / 0.7649 GB, free: 54.28 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001395/1.229, allocations: 40.95 kB / 0.765 GB, free: 54.24 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001183/1.23, allocations: 2.617 MB / 0.7675 GB, free: 52.2 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003798/1.23, allocations: 0.5317 MB / 0.768 GB, free: 51.83 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001727/1.23, allocations: 102.7 kB / 0.7681 GB, free: 51.75 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002272/1.231, allocations: 0.5213 MB / 0.7686 GB, free: 51.35 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00204/1.233, allocations: 1.583 MB / 0.7702 GB, free: 50.84 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003613/1.236, allocations: 4.947 MB / 0.775 GB, free: 45.66 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005615/1.242, allocations: 7.123 MB / 0.782 GB, free: 39.29 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.669e-05/1.242, allocations: 32.19 kB / 0.782 GB, free: 39.29 MB / 490.7 MB Notification: Performance of matching and sorting (n=680) (initialization): time 0.008819/1.251, allocations: 6.448 MB / 0.7883 GB, free: 36.77 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.194e-05/1.251, allocations: 58.91 kB / 0.7884 GB, free: 36.77 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001026/1.251, allocations: 121.2 kB / 0.7885 GB, free: 36.77 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005968/1.252, allocations: 332.8 kB / 0.7888 GB, free: 36.72 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003144/1.255, allocations: 1.198 MB / 0.79 GB, free: 36.57 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002317/1.257, allocations: 2.701 MB / 0.7926 GB, free: 34.68 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003695/1.261, allocations: 282.7 kB / 0.7929 GB, free: 34.58 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005872/1.261, allocations: 327.8 kB / 0.7932 GB, free: 34.54 MB / 490.7 MB 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 () * Number of clocked 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.002673/1.264, allocations: 1.721 MB / 0.7949 GB, free: 33.7 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005626/1.265, allocations: 307.9 kB / 0.7952 GB, free: 33.54 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002474/1.267, allocations: 1.598 MB / 0.7967 GB, free: 32.88 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-05/1.267, allocations: 18.31 kB / 0.7967 GB, free: 32.88 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.349e-05/1.267, allocations: 7.328 kB / 0.7967 GB, free: 32.88 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.86e-05/1.267, allocations: 10.98 kB / 0.7968 GB, free: 32.88 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0125/1.28, allocations: 5.151 MB / 0.8018 GB, free: 28.77 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.781e-05/1.28, allocations: 4 kB / 0.8018 GB, free: 28.77 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001502/1.281, allocations: 195.3 kB / 0.802 GB, free: 28.61 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006605/1.282, allocations: 159.7 kB / 0.8021 GB, free: 28.49 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001365/1.282, allocations: 27.5 kB / 0.8022 GB, free: 28.47 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002646/1.285, allocations: 2.16 MB / 0.8043 GB, free: 26.37 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/1.285, allocations: 0 / 0.8043 GB, free: 26.37 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006922/1.292, allocations: 3.532 MB / 0.8077 GB, free: 23.2 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001385/1.293, allocations: 366.6 kB / 0.8081 GB, free: 22.84 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005911/1.294, allocations: 20.06 kB / 0.8081 GB, free: 22.82 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001766/1.296, allocations: 69.88 kB / 0.8081 GB, free: 22.77 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002471/1.296, allocations: 65.8 kB / 0.8082 GB, free: 22.72 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001314/1.296, allocations: 38 kB / 0.8082 GB, free: 22.69 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.005129/1.301, allocations: 2.264 MB / 0.8105 GB, free: 20.84 MB / 490.7 MB Notification: Performance of sort global known variables: time 3.11e-07/1.301, allocations: 0 / 0.8105 GB, free: 20.84 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.007685/1.309, allocations: 0.7773 MB / 0.8112 GB, free: 20.06 MB / 490.7 MB 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 () * 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.0005512/1.31, allocations: 168.2 kB / 0.8114 GB, free: 19.9 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.008472/1.318, allocations: 3.84 MB / 0.8151 GB, free: 16.51 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.956e-06/1.318, allocations: 0 / 0.8151 GB, free: 16.51 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001907/1.32, allocations: 1.026 MB / 0.8161 GB, free: 15.59 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004182/1.324, allocations: 361.4 kB / 0.8165 GB, free: 15.27 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01793/1.342, allocations: 8.279 MB / 0.8246 GB, free: 7.699 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003989/1.346, allocations: 2.687 MB / 0.8272 GB, free: 5.566 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.006666/1.353, allocations: 1.687 MB / 0.8288 GB, free: 4.508 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009474/1.354, allocations: 206.9 kB / 0.829 GB, free: 4.312 MB / 490.7 MB Notification: Performance of SimCode: time 9.22e-07/1.354, allocations: 0 / 0.829 GB, free: 4.312 MB / 490.7 MB Notification: Performance of Templates: time 0.07574/1.43, allocations: 26.29 MB / 0.8547 GB, free: 12.84 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/jenkins1/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