Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001804/0.001804, allocations: 79.69 kB / 21.7 MB, free: 2.852 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00146/0.00146, allocations: 163.5 kB / 24.99 MB, free: 8.801 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.032/1.032, allocations: 177 MB / 205.2 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2867/0.2867, allocations: 34.86 MB / 296.6 MB, free: 0.5547 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.683e-06/1.683e-06, allocations: 3.938 kB / 378.7 MB, free: 2.43 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.69e-05/2.858e-05, allocations: 6.25 kB / 378.7 MB, free: 2.422 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.007725/0.007753, allocations: 8.657 MB / 387.4 MB, free: 9.723 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.005855/0.01361, allocations: 3.481 MB / 390.9 MB, free: 6.23 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001469/0.01508, allocations: 63.69 kB / 390.9 MB, free: 6.168 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002451/0.01753, allocations: 1.775 MB / 392.7 MB, free: 4.387 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003659/0.02119, allocations: 1.633 MB / 394.3 MB, free: 2.746 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001312/0.0225, allocations: 0.6235 MB / 395 MB, free: 2.121 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.004749/0.02725, allocations: 3.958 MB / 398.9 MB, free: 14.15 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002756/0.03, allocations: 2.141 MB / 401.1 MB, free: 11.95 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003377/0.03338, allocations: 1.687 MB / 402.8 MB, free: 10.27 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002461/0.03584, allocations: 1.726 MB / 404.5 MB, free: 8.535 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005242/0.03637, allocations: 224 kB / 404.7 MB, free: 8.316 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001385/0.03775, allocations: 1.049 MB / 405.8 MB, free: 7.266 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001108/0.03886, allocations: 1.519 MB / 407.3 MB, free: 5.742 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001067/0.03993, allocations: 0.911 MB / 408.2 MB, free: 4.828 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003542/0.04347, allocations: 3.69 MB / 411.9 MB, free: 1.125 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.04347, allocations: 0 / 411.9 MB, free: 1.125 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.04347, allocations: 4 kB / 411.9 MB, free: 1.121 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.084e-05/0.04355, allocations: 3.984 kB / 411.9 MB, free: 1.117 MB / 378.7 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.004839/0.04839, allocations: 4.021 MB / 415.9 MB, free: 13.03 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.272e-05/0.04844, allocations: 12.03 kB / 415.9 MB, free: 13.02 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008145/0.05658, allocations: 2.721 MB / 418.6 MB, free: 10.29 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00298/0.05956, allocations: 1.953 MB / 420.6 MB, free: 8.305 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.943e-05/0.05966, allocations: 164.5 kB / 420.7 MB, free: 8.141 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003946/0.06005, allocations: 216.2 kB / 421 MB, free: 7.93 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005974/0.06603, allocations: 4.605 MB / 425.6 MB, free: 2.469 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.472e-05/0.0661, allocations: 43.64 kB / 425.6 MB, free: 2.426 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002143/0.06632, allocations: 107.9 kB / 425.7 MB, free: 2.32 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001662/0.06798, allocations: 1.539 MB / 427.3 MB, free: 0.7812 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004858/0.07284, allocations: 2.35 MB / 429.6 MB, free: 14.42 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1941/0.267, allocations: 34.85 MB / 464.5 MB, free: 69.25 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002393/0.2694, allocations: 0.9337 MB / 465.4 MB, free: 69.11 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005337/0.2699, allocations: 366.9 kB / 465.7 MB, free: 69.06 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002155/0.2701, allocations: 89.25 kB / 465.8 MB, free: 69.06 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.859e-05/0.2701, allocations: 46.62 kB / 465.9 MB, free: 69.02 MB / 410.7 MB Notification: Performance of pre-optimization done (n=108): time 4.609e-06/0.2702, allocations: 3.203 kB / 465.9 MB, free: 69.02 MB / 410.7 MB Notification: Performance of matching and sorting (n=132): time 0.02064/0.2908, allocations: 8.465 MB / 474.3 MB, free: 66.42 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.4e-05/0.2909, allocations: 196.3 kB / 474.5 MB, free: 66.2 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003861/0.2947, allocations: 3.1 MB / 477.6 MB, free: 64.91 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002458/0.295, allocations: 44.02 kB / 477.7 MB, free: 64.87 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001567/0.2965, allocations: 2.817 MB / 480.5 MB, free: 62.82 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006486/0.2972, allocations: 0.5652 MB / 481.1 MB, free: 62.41 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001287/0.2985, allocations: 1.17 MB / 482.2 MB, free: 61.79 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.946e-05/0.2985, allocations: 479.9 kB / 482.7 MB, free: 61.32 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001261/0.2998, allocations: 0.5779 MB / 483.3 MB, free: 61.24 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002932/0.3027, allocations: 5.595 MB / 488.9 MB, free: 54.42 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0053/0.308, allocations: 6.737 MB / 495.6 MB, free: 46.89 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001032/0.3081, allocations: 32.88 kB / 495.6 MB, free: 46.89 MB / 410.7 MB Notification: Performance of matching and sorting (n=694) (initialization): time 0.009114/0.3172, allocations: 4.872 MB / 0.4888 GB, free: 45.11 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.995e-05/0.3173, allocations: 59.94 kB / 0.4888 GB, free: 45.11 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00018/0.3175, allocations: 118.7 kB / 0.489 GB, free: 45.11 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001305/0.3188, allocations: 455.8 kB / 0.4894 GB, free: 45.08 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003186/0.322, allocations: 1.213 MB / 0.4906 GB, free: 44.93 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002843/0.3249, allocations: 2.903 MB / 0.4934 GB, free: 42.62 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003786/0.3286, allocations: 328.9 kB / 0.4937 GB, free: 42.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007367/0.3294, allocations: 324.4 kB / 0.494 GB, free: 42.46 MB / 410.7 MB 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.001376/0.3308, allocations: 0.6013 MB / 0.4946 GB, free: 41.98 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006334/0.3314, allocations: 317.3 kB / 0.4949 GB, free: 41.81 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002207/0.3336, allocations: 1.135 MB / 0.496 GB, free: 41.43 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.095e-05/0.3336, allocations: 15.44 kB / 0.496 GB, free: 41.43 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.295e-05/0.3336, allocations: 3.312 kB / 0.4961 GB, free: 41.43 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.376e-05/0.3336, allocations: 6.953 kB / 0.4961 GB, free: 41.43 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006953/0.3406, allocations: 3.984 MB / 0.4999 GB, free: 39.71 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.277e-06/0.3406, allocations: 3.125 kB / 0.5 GB, free: 39.71 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006442/0.3413, allocations: 194.7 kB / 0.5001 GB, free: 39.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003949/0.3452, allocations: 288.3 kB / 0.5004 GB, free: 39.67 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001086/0.3453, allocations: 18.69 kB / 0.5004 GB, free: 39.66 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001869/0.3472, allocations: 2.293 MB / 0.5027 GB, free: 37.69 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.3472, allocations: 7.438 kB / 0.5027 GB, free: 37.69 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003335/0.3505, allocations: 2.133 MB / 0.5048 GB, free: 36.66 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007134/0.3512, allocations: 267 kB / 0.505 GB, free: 36.48 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002635/0.3515, allocations: 22.88 kB / 0.505 GB, free: 36.47 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008827/0.3524, allocations: 101.2 kB / 0.5051 GB, free: 36.46 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001564/0.3525, allocations: 77.41 kB / 0.5052 GB, free: 36.45 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.268e-05/0.3526, allocations: 35.75 kB / 0.5052 GB, free: 36.44 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001459/0.354, allocations: 1.323 MB / 0.5065 GB, free: 35.98 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.354, allocations: 0 / 0.5065 GB, free: 35.98 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003178/0.3572, allocations: 0.8618 MB / 0.5074 GB, free: 35.87 MB / 410.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 (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.0003613/0.3576, allocations: 164.8 kB / 0.5075 GB, free: 35.75 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003879/0.3615, allocations: 2.627 MB / 0.5101 GB, free: 34.12 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.3615, allocations: 0 / 0.5101 GB, free: 34.12 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007306/0.3622, allocations: 0.6256 MB / 0.5107 GB, free: 33.53 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001501/0.3637, allocations: 316.4 kB / 0.511 GB, free: 33.27 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008459/0.3722, allocations: 5.697 MB / 0.5166 GB, free: 28 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001264/0.3734, allocations: 0.9436 MB / 0.5175 GB, free: 27.31 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002807/0.3762, allocations: 1.436 MB / 0.5189 GB, free: 26.49 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006143/0.3768, allocations: 194.1 kB / 0.5191 GB, free: 26.31 MB / 410.7 MB Notification: Performance of SimCode: time 2.895e-06/0.3769, allocations: 0 / 0.5191 GB, free: 26.31 MB / 410.7 MB Notification: Performance of Templates: time 0.03523/0.4121, allocations: 23.97 MB / 0.5425 GB, free: 4.582 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.336993920151144]