Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001336/0.001336, allocations: 111 kB / 21.19 MB, free: 0.6758 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001754/0.001754, allocations: 215.5 kB / 24.48 MB, free: 3.98 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.503/1.503, allocations: 230.6 MB / 258.2 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2506/0.2506, allocations: 46.96 MB / 361.6 MB, free: 4.035 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002066/0.002066, allocations: 67.89 kB / 0.4973 GB, free: 7.223 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3445/0.3466, allocations: 66.04 MB / 0.5618 GB, free: 4.18 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01068/0.3573, allocations: 7.928 MB / 0.5695 GB, free: 12.21 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.007497/0.3648, allocations: 3.361 MB / 0.5728 GB, free: 8.84 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001333/0.3661, allocations: 59.75 kB / 0.5729 GB, free: 8.781 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00348/0.3696, allocations: 1.627 MB / 0.5745 GB, free: 7.148 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004155/0.3738, allocations: 1.584 MB / 0.576 GB, free: 5.559 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001406/0.3752, allocations: 0.5653 MB / 0.5766 GB, free: 4.992 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005158/0.3803, allocations: 3.584 MB / 0.5801 GB, free: 1.402 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002696/0.383, allocations: 1.821 MB / 0.5818 GB, free: 15.53 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002141/0.3852, allocations: 1.117 MB / 0.5829 GB, free: 14.41 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002703/0.3879, allocations: 1.67 MB / 0.5846 GB, free: 12.73 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000547/0.3884, allocations: 224 kB / 0.5848 GB, free: 12.51 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002053/0.3905, allocations: 1.006 MB / 0.5858 GB, free: 11.5 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00153/0.392, allocations: 1.437 MB / 0.5872 GB, free: 10.06 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001667/0.3937, allocations: 1.184 MB / 0.5883 GB, free: 8.871 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007746/0.4014, allocations: 5.424 MB / 0.5936 GB, free: 3.426 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.005e-05/0.4014, allocations: 0 / 0.5936 GB, free: 3.426 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.484e-06/0.4014, allocations: 0 / 0.5936 GB, free: 3.426 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002032/0.4016, allocations: 0 / 0.5936 GB, free: 3.426 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1141 * Number of variables: 1141 Notification: Performance of Generate backend data structure: time 0.009936/0.4116, allocations: 3.685 MB / 0.5972 GB, free: 15.68 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.537e-05/0.4116, allocations: 8.031 kB / 0.5972 GB, free: 15.68 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01561/0.4272, allocations: 2.35 MB / 0.5995 GB, free: 13.32 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006081/0.4333, allocations: 2.126 MB / 0.6016 GB, free: 11.16 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001501/0.4334, allocations: 164.5 kB / 0.6018 GB, free: 10.99 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006595/0.4341, allocations: 216 kB / 0.602 GB, free: 10.78 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01212/0.4462, allocations: 7.456 MB / 0.6092 GB, free: 2.688 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001083/0.4463, allocations: 35.7 kB / 0.6093 GB, free: 2.652 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003289/0.4467, allocations: 111.9 kB / 0.6094 GB, free: 2.543 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002565/0.4492, allocations: 1.55 MB / 0.6109 GB, free: 0.9883 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.012/0.4612, allocations: 6.295 MB / 0.617 GB, free: 10.68 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03788/0.4991, allocations: 28.39 MB / 0.6448 GB, free: 13.39 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00451/0.5036, allocations: 1.7 MB / 0.6464 GB, free: 11.65 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001452/0.5051, allocations: 1.051 MB / 0.6475 GB, free: 10.59 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002823/0.5054, allocations: 84.23 kB / 0.6475 GB, free: 10.51 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.958e-05/0.5054, allocations: 54.94 kB / 0.6476 GB, free: 10.45 MB / 494.1 MB Notification: Performance of pre-optimization done (n=108): time 3.476e-06/0.5054, allocations: 0 / 0.6476 GB, free: 10.45 MB / 494.1 MB Notification: Performance of matching and sorting (n=132): time 0.03634/0.5418, allocations: 11.78 MB / 0.6591 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001435/0.5419, allocations: 196.5 kB / 0.6593 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004576/0.5465, allocations: 3.367 MB / 0.6626 GB, free: 10.98 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002073/0.5467, allocations: 45.69 kB / 0.6626 GB, free: 10.93 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002108/0.5488, allocations: 2.676 MB / 0.6652 GB, free: 8.223 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006611/0.5494, allocations: 0.5506 MB / 0.6658 GB, free: 7.668 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001413/0.5509, allocations: 1.088 MB / 0.6668 GB, free: 6.57 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000134/0.551, allocations: 313 kB / 0.6671 GB, free: 6.262 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002601/0.5536, allocations: 1.736 MB / 0.6688 GB, free: 4.52 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005498/0.5591, allocations: 5.134 MB / 0.6738 GB, free: 13.69 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009387/0.5685, allocations: 7.366 MB / 0.681 GB, free: 4.66 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.45e-05/0.5686, allocations: 36 kB / 0.6811 GB, free: 4.625 MB / 0.5137 GB Notification: Performance of matching and sorting (n=694) (initialization): time 0.01304/0.5816, allocations: 7.027 MB / 0.6879 GB, free: 13.6 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.575e-05/0.5817, allocations: 59.94 kB / 0.688 GB, free: 13.54 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001471/0.5819, allocations: 116 kB / 0.6881 GB, free: 13.43 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00169/0.5835, allocations: 0.6454 MB / 0.6887 GB, free: 12.78 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003795/0.5873, allocations: 1.212 MB / 0.6899 GB, free: 11.56 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005166/0.5925, allocations: 3.91 MB / 0.6937 GB, free: 7.547 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004132/0.5966, allocations: 295.6 kB / 0.694 GB, free: 7.258 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008333/0.5975, allocations: 328 kB / 0.6943 GB, free: 6.938 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 539 * Number of states: 0 () * Number of discrete variables: 29 (Distance1.arrow.twoHeadedArrow,Distance1.arrow.headAtOrigin,BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],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 (659): * Single equations (assignments): 655 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003036/0.6005, allocations: 1.701 MB / 0.696 GB, free: 5.223 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006077/0.6011, allocations: 282.1 kB / 0.6962 GB, free: 4.945 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004042/0.6052, allocations: 2.057 MB / 0.6983 GB, free: 2.871 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-05/0.6052, allocations: 19.98 kB / 0.6983 GB, free: 2.852 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.947e-06/0.6052, allocations: 0 / 0.6983 GB, free: 2.852 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.704e-05/0.6052, allocations: 7.984 kB / 0.6983 GB, free: 2.844 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01184/0.6171, allocations: 4.776 MB / 0.7029 GB, free: 14.01 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.544e-05/0.6171, allocations: 4 kB / 0.703 GB, free: 14 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001039/0.6181, allocations: 199.6 kB / 0.7031 GB, free: 13.81 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001403/0.6195, allocations: 488.3 kB / 0.7036 GB, free: 13.33 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001245/0.6197, allocations: 16 kB / 0.7036 GB, free: 13.31 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004246/0.6239, allocations: 3.291 MB / 0.7068 GB, free: 9.918 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.6239, allocations: 0 / 0.7068 GB, free: 9.918 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006506/0.6304, allocations: 4.158 MB / 0.7109 GB, free: 5.73 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000851/0.6313, allocations: 250 kB / 0.7111 GB, free: 5.484 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002978/0.6316, allocations: 20 kB / 0.7112 GB, free: 5.465 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001052/0.6326, allocations: 83.73 kB / 0.7112 GB, free: 5.387 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001962/0.6328, allocations: 72.45 kB / 0.7113 GB, free: 5.316 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001032/0.6329, allocations: 39.98 kB / 0.7113 GB, free: 5.277 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.002946/0.6359, allocations: 1.937 MB / 0.7132 GB, free: 3.34 MB / 0.545 GB Notification: Performance of sort global known variables: time 9e-08/0.6359, allocations: 0 / 0.7132 GB, free: 3.34 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.003814/0.6397, allocations: 0.7773 MB / 0.714 GB, free: 2.562 MB / 0.545 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 () * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003837/0.64, allocations: 147 kB / 0.7141 GB, free: 2.406 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.006895/0.6469, allocations: 3.984 MB / 0.718 GB, free: 14.44 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.632e-06/0.647, allocations: 0.5 kB / 0.718 GB, free: 14.44 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001709/0.6487, allocations: 1.052 MB / 0.7191 GB, free: 13.37 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002104/0.6508, allocations: 302.3 kB / 0.7193 GB, free: 13.07 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01329/0.6641, allocations: 7.199 MB / 0.7264 GB, free: 5.824 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002737/0.6668, allocations: 2.08 MB / 0.7284 GB, free: 3.707 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003879/0.6707, allocations: 1.653 MB / 0.73 GB, free: 2.047 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005834/0.6713, allocations: 191.4 kB / 0.7302 GB, free: 1.859 MB / 0.5606 GB Notification: Performance of SimCode: time 1.703e-06/0.6713, allocations: 0 / 0.7302 GB, free: 1.859 MB / 0.5606 GB Notification: Performance of Templates: time 0.3175/0.9887, allocations: 28.15 MB / 0.7577 GB, free: 139.7 MB / 0.5606 GB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.679649789992254]