Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001014/0.001014, allocations: 193.5 kB / 16.78 MB, free: 5.035 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.254/1.254, allocations: 226.5 MB / 244.1 MB, free: 8.227 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008166/0.0008166, allocations: 103.2 kB / 296.1 MB, free: 6.895 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3007/0.3007, allocations: 44.84 MB / 393 MB, free: 35.75 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002697/0.0002698, allocations: 11.98 kB / 465.9 MB, free: 12.72 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2851/0.2854, allocations: 62.94 MB / 0.5165 GB, free: 37 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.124/0.4094, allocations: 107.2 MB / 0.6212 GB, free: 14.12 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002325/0.4097, allocations: 75.97 kB / 0.6212 GB, free: 14.05 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3795/0.7893, allocations: 71.31 MB / 0.6909 GB, free: 100.2 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.7893, allocations: 0 / 0.6909 GB, free: 100.2 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001051/0.7894, allocations: 60.59 kB / 0.6909 GB, free: 100.2 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.006942/0.7964, allocations: 3.327 MB / 0.6942 GB, free: 98.64 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.56e-05/0.7964, allocations: 8.125 kB / 0.6942 GB, free: 98.64 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01381/0.8102, allocations: 3.4 MB / 0.6975 GB, free: 98.41 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007411/0.8177, allocations: 2.873 MB / 0.7003 GB, free: 97.88 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000271/0.818, allocations: 242.7 kB / 0.7006 GB, free: 97.87 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001569/0.8196, allocations: 317.6 kB / 0.7009 GB, free: 97.86 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01688/0.8365, allocations: 7.998 MB / 0.7087 GB, free: 95.36 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003486/0.8369, allocations: 60.69 kB / 0.7087 GB, free: 95.36 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001426/0.8383, allocations: 160.6 kB / 0.7089 GB, free: 95.36 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00133/0.8397, allocations: 0.7832 MB / 0.7096 GB, free: 95.35 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01291/0.8526, allocations: 6.398 MB / 0.7159 GB, free: 94.69 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0395/0.8922, allocations: 38.97 MB / 0.754 GB, free: 63.5 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004452/0.8967, allocations: 2.167 MB / 0.7561 GB, free: 62.38 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001327/0.898, allocations: 1.031 MB / 0.7571 GB, free: 61.94 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003812/0.8985, allocations: 319 kB / 0.7574 GB, free: 61.64 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.762e-05/0.8985, allocations: 53.62 kB / 0.7574 GB, free: 61.59 MB / 490.7 MB Notification: Performance of pre-optimization done (n=108): time 5.6e-06/0.8986, allocations: 0 / 0.7574 GB, free: 61.59 MB / 490.7 MB Notification: Performance of matching and sorting (n=132): time 0.03128/0.9298, allocations: 10.66 MB / 0.7678 GB, free: 57.28 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.054e-05/0.93, allocations: 195.1 kB / 0.768 GB, free: 57.06 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005892/0.9359, allocations: 3.625 MB / 0.7716 GB, free: 55.75 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002671/0.9362, allocations: 40.73 kB / 0.7716 GB, free: 55.71 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001252/0.9374, allocations: 2.625 MB / 0.7742 GB, free: 53.67 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004397/0.9379, allocations: 0.5279 MB / 0.7747 GB, free: 53.29 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001866/0.9381, allocations: 109.6 kB / 0.7748 GB, free: 53.21 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002238/0.9383, allocations: 0.5219 MB / 0.7753 GB, free: 52.81 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001988/0.9403, allocations: 1.578 MB / 0.7768 GB, free: 52.31 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003058/0.9434, allocations: 4.951 MB / 0.7817 GB, free: 47.12 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005833/0.9492, allocations: 7.12 MB / 0.7886 GB, free: 40.75 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.42e-05/0.9493, allocations: 37.91 kB / 0.7887 GB, free: 40.75 MB / 490.7 MB Notification: Performance of matching and sorting (n=680) (initialization): time 0.009574/0.9589, allocations: 6.45 MB / 0.795 GB, free: 35.66 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.183e-05/0.959, allocations: 56 kB / 0.795 GB, free: 35.61 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.826e-05/0.9591, allocations: 120 kB / 0.7951 GB, free: 35.49 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000623/0.9597, allocations: 329.8 kB / 0.7954 GB, free: 35.21 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003215/0.963, allocations: 1.204 MB / 0.7966 GB, free: 34.16 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002331/0.9653, allocations: 2.692 MB / 0.7992 GB, free: 31.58 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003363/0.9687, allocations: 287.7 kB / 0.7995 GB, free: 31.32 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004871/0.9692, allocations: 330.2 kB / 0.7998 GB, free: 31 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.002318/0.9715, allocations: 1.727 MB / 0.8015 GB, free: 29.47 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004523/0.972, allocations: 304 kB / 0.8018 GB, free: 29.17 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002435/0.9744, allocations: 1.606 MB / 0.8034 GB, free: 27.82 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.195e-05/0.9745, allocations: 20 kB / 0.8034 GB, free: 27.8 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.306e-06/0.9745, allocations: 0 / 0.8034 GB, free: 27.8 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.116e-05/0.9745, allocations: 7.562 kB / 0.8034 GB, free: 27.8 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007224/0.9817, allocations: 5.165 MB / 0.8085 GB, free: 23.52 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.236e-06/0.9818, allocations: 0 / 0.8085 GB, free: 23.52 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009392/0.9827, allocations: 199.8 kB / 0.8086 GB, free: 23.36 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004331/0.9832, allocations: 160.7 kB / 0.8088 GB, free: 23.25 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.227e-05/0.9832, allocations: 23.94 kB / 0.8088 GB, free: 23.22 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001795/0.985, allocations: 2.148 MB / 0.8109 GB, free: 21.13 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.9851, allocations: 3.938 kB / 0.8109 GB, free: 21.12 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003999/0.9891, allocations: 3.532 MB / 0.8144 GB, free: 17.96 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008424/0.9899, allocations: 365.8 kB / 0.8147 GB, free: 17.59 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002816/0.9902, allocations: 23.39 kB / 0.8147 GB, free: 17.58 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009736/0.9912, allocations: 60.69 kB / 0.8148 GB, free: 17.54 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001587/0.9914, allocations: 72.59 kB / 0.8149 GB, free: 17.48 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.134e-05/0.9915, allocations: 31.66 kB / 0.8149 GB, free: 17.46 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002961/0.9944, allocations: 2.269 MB / 0.8171 GB, free: 15.33 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.9944, allocations: 0 / 0.8171 GB, free: 15.33 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.003866/0.9983, allocations: 0.7851 MB / 0.8179 GB, free: 14.54 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.0004655/0.9988, allocations: 162.8 kB / 0.818 GB, free: 14.38 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.005789/1.005, allocations: 3.833 MB / 0.8218 GB, free: 10.56 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.063e-06/1.005, allocations: 4 kB / 0.8218 GB, free: 10.56 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001242/1.006, allocations: 1.029 MB / 0.8228 GB, free: 9.516 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002621/1.009, allocations: 364 kB / 0.8231 GB, free: 9.172 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01066/1.019, allocations: 8.678 MB / 0.8316 GB, free: 476 kB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002512/1.022, allocations: 2.679 MB / 0.8342 GB, free: 13.77 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008508/1.023, allocations: 251.4 kB / 0.8345 GB, free: 13.53 MB / 0.4948 GB Notification: Performance of SimCode: time 1.122e-06/1.023, allocations: 0 / 0.8345 GB, free: 13.53 MB / 0.4948 GB Notification: Performance of Templates: time 0.3363/1.359, allocations: 60.65 MB / 0.8937 GB, free: 129.9 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches