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.001559/0.001559, allocations: 177 kB / 17.06 MB, free: 5.094 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.259/1.259, allocations: 223.2 MB / 241 MB, free: 10.16 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.0009206/0.0009206, allocations: 93.28 kB / 292.2 MB, free: 10.71 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.3264/0.3264, allocations: 44.21 MB / 387.5 MB, free: 38.58 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000334/0.000334, allocations: 12 kB / 459.9 MB, free: 1.543 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3428/0.3432, allocations: 61.9 MB / 0.5096 GB, free: 37.83 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1379/0.4811, allocations: 106.3 MB / 0.6134 GB, free: 4.762 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002979/0.4814, allocations: 83.95 kB / 0.6135 GB, free: 4.68 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3943/0.8757, allocations: 72.04 MB / 0.6838 GB, free: 96.69 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.8757, allocations: 0 / 0.6838 GB, free: 96.69 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001626/0.8759, allocations: 62.78 kB / 0.6839 GB, free: 96.68 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.009129/0.885, allocations: 3.404 MB / 0.6872 GB, free: 95.25 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.8851, allocations: 9.438 kB / 0.6872 GB, free: 95.25 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01553/0.9006, allocations: 4.227 MB / 0.6914 GB, free: 95.03 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01115/0.9118, allocations: 4.037 MB / 0.6953 GB, free: 94.53 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002597/0.9121, allocations: 235.5 kB / 0.6955 GB, free: 94.52 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001458/0.9136, allocations: 318.9 kB / 0.6958 GB, free: 94.52 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01361/0.9272, allocations: 8.019 MB / 0.7037 GB, free: 92.02 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001938/0.9274, allocations: 50.66 kB / 0.7037 GB, free: 92.02 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008596/0.9283, allocations: 160.6 kB / 0.7039 GB, free: 92.02 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009517/0.9293, allocations: 0.789 MB / 0.7046 GB, free: 92.01 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01119/0.9405, allocations: 6.429 MB / 0.7109 GB, free: 91.92 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03659/0.9771, allocations: 38.99 MB / 0.749 GB, free: 61.22 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004008/0.9812, allocations: 2.176 MB / 0.7511 GB, free: 60.1 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003044/0.9815, allocations: 327 kB / 0.7514 GB, free: 59.8 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.644e-05/0.9816, allocations: 46.62 kB / 0.7515 GB, free: 59.76 MB / 490.7 MB Notification: Performance of pre-optimization done (n=108): time 3.667e-06/0.9816, allocations: 4 kB / 0.7515 GB, free: 59.75 MB / 490.7 MB Notification: Performance of matching and sorting (n=132): time 0.02951/1.011, allocations: 10.91 MB / 0.7621 GB, free: 55.16 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.063e-05/1.011, allocations: 195.3 kB / 0.7623 GB, free: 54.94 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004025/1.015, allocations: 3.244 MB / 0.7655 GB, free: 53.76 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001344/1.015, allocations: 40.7 kB / 0.7655 GB, free: 53.71 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001235/1.017, allocations: 2.623 MB / 0.7681 GB, free: 51.68 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003908/1.017, allocations: 0.5253 MB / 0.7686 GB, free: 51.3 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001693/1.017, allocations: 105.1 kB / 0.7687 GB, free: 51.22 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002209/1.017, allocations: 0.5246 MB / 0.7692 GB, free: 50.82 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001852/1.019, allocations: 1.579 MB / 0.7708 GB, free: 50.32 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002958/1.022, allocations: 4.928 MB / 0.7756 GB, free: 45.13 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002853/1.025, allocations: 2.765 MB / 0.7783 GB, free: 43.99 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-05/1.025, allocations: 33.56 kB / 0.7783 GB, free: 43.99 MB / 490.7 MB Notification: Performance of matching and sorting (n=680) (initialization): time 0.008103/1.033, allocations: 6.438 MB / 0.7846 GB, free: 41.48 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.254e-05/1.033, allocations: 58.98 kB / 0.7846 GB, free: 41.48 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.114e-05/1.033, allocations: 124.4 kB / 0.7848 GB, free: 41.48 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006508/1.034, allocations: 342.5 kB / 0.7851 GB, free: 41.44 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002925/1.037, allocations: 1.2 MB / 0.7863 GB, free: 41.29 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002403/1.039, allocations: 2.737 MB / 0.7889 GB, free: 39.39 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003587/1.043, allocations: 285.6 kB / 0.7892 GB, free: 39.28 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003752/1.043, allocations: 327 kB / 0.7895 GB, free: 39.24 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.002405/1.046, allocations: 1.727 MB / 0.7912 GB, free: 38.4 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000443/1.046, allocations: 300.8 kB / 0.7915 GB, free: 38.23 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002422/1.049, allocations: 1.618 MB / 0.7931 GB, free: 37.57 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.939e-05/1.049, allocations: 13.59 kB / 0.7931 GB, free: 37.57 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.066e-05/1.049, allocations: 6.344 kB / 0.7931 GB, free: 37.57 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.16e-05/1.049, allocations: 7.422 kB / 0.7931 GB, free: 37.57 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007845/1.057, allocations: 5.143 MB / 0.7981 GB, free: 33.46 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.26e-05/1.057, allocations: 4 kB / 0.7981 GB, free: 33.46 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001028/1.058, allocations: 200.8 kB / 0.7983 GB, free: 33.3 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004892/1.058, allocations: 163.2 kB / 0.7985 GB, free: 33.18 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.61e-05/1.058, allocations: 23.8 kB / 0.7985 GB, free: 33.16 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002138/1.061, allocations: 2.196 MB / 0.8006 GB, free: 31.02 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/1.061, allocations: 4.031 kB / 0.8006 GB, free: 31.02 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004949/1.065, allocations: 3.652 MB / 0.8042 GB, free: 27.7 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001231/1.067, allocations: 363 kB / 0.8046 GB, free: 27.34 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002923/1.067, allocations: 18.73 kB / 0.8046 GB, free: 27.32 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001071/1.068, allocations: 61.16 kB / 0.8046 GB, free: 27.28 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001784/1.068, allocations: 68.22 kB / 0.8047 GB, free: 27.24 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.98e-05/1.068, allocations: 39.94 kB / 0.8047 GB, free: 27.2 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003562/1.072, allocations: 2.269 MB / 0.807 GB, free: 25.34 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.8e-07/1.072, allocations: 0 / 0.807 GB, free: 25.34 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.004127/1.076, allocations: 0.7734 MB / 0.8077 GB, free: 24.57 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.0003113/1.076, allocations: 160.8 kB / 0.8079 GB, free: 24.41 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.004647/1.081, allocations: 3.857 MB / 0.8116 GB, free: 21.02 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/1.081, allocations: 4.25 kB / 0.8116 GB, free: 21.01 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001092/1.082, allocations: 1.018 MB / 0.8126 GB, free: 20.1 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001382/1.084, allocations: 336.6 kB / 0.813 GB, free: 19.8 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01021/1.094, allocations: 8.263 MB / 0.821 GB, free: 12.25 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002167/1.096, allocations: 2.749 MB / 0.8237 GB, free: 10.13 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.003818/1.1, allocations: 1.683 MB / 0.8253 GB, free: 9.07 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005507/1.1, allocations: 210 kB / 0.8255 GB, free: 8.871 MB / 490.7 MB Notification: Performance of SimCode: time 1.543e-06/1.1, allocations: 4 kB / 0.8256 GB, free: 8.867 MB / 490.7 MB Notification: Performance of Templates: time 0.04887/1.149, allocations: 26.21 MB / 0.8511 GB, free: 1.215 MB / 0.4948 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