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.001432/0.001432, allocations: 91.5 kB / 21.2 MB, free: 3.375 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.001519/0.001519, allocations: 156.5 kB / 24.55 MB, free: 20 kB / 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 0.9899/0.9899, allocations: 177 MB / 204.8 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.2838/0.2838, allocations: 34.87 MB / 296.3 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.964e-06/1.964e-06, allocations: 0 / 378.7 MB, free: 2.129 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.944e-05/3.14e-05, allocations: 4.422 kB / 378.8 MB, free: 2.125 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.007496/0.007528, allocations: 8.69 MB / 387.4 MB, free: 9.391 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.005012/0.01254, allocations: 3.492 MB / 390.9 MB, free: 5.887 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005882/0.01313, allocations: 55.75 kB / 391 MB, free: 5.832 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001975/0.0151, allocations: 1.783 MB / 392.8 MB, free: 4.043 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002319/0.01742, allocations: 1.637 MB / 394.4 MB, free: 2.398 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001013/0.01843, allocations: 0.6157 MB / 395 MB, free: 1.781 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.003722/0.02216, allocations: 3.967 MB / 399 MB, free: 13.81 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002062/0.02422, allocations: 2.145 MB / 401.1 MB, free: 11.61 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001835/0.02605, allocations: 1.687 MB / 402.8 MB, free: 9.918 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001817/0.02787, allocations: 1.726 MB / 404.6 MB, free: 8.188 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002788/0.02815, allocations: 224 kB / 404.8 MB, free: 7.969 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001238/0.02939, allocations: 1.049 MB / 405.8 MB, free: 6.918 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009108/0.0303, allocations: 1.511 MB / 407.3 MB, free: 5.402 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006877/0.03099, allocations: 0.9111 MB / 408.2 MB, free: 4.488 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003034/0.03402, allocations: 3.694 MB / 411.9 MB, free: 0.7812 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.03402, allocations: 0 / 411.9 MB, free: 0.7812 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.03403, allocations: 4 kB / 411.9 MB, free: 0.7773 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.63e-05/0.03405, allocations: 0 / 411.9 MB, free: 0.7773 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.004026/0.03808, allocations: 4.021 MB / 416 MB, free: 12.69 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.945e-05/0.03812, allocations: 12.03 kB / 416 MB, free: 12.68 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007559/0.04568, allocations: 2.729 MB / 418.7 MB, free: 9.945 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002556/0.04823, allocations: 1.949 MB / 420.7 MB, free: 7.961 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.491e-05/0.04832, allocations: 168.4 kB / 420.8 MB, free: 7.793 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002605/0.04858, allocations: 216.2 kB / 421 MB, free: 7.582 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004772/0.05335, allocations: 4.612 MB / 425.6 MB, free: 2.113 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.08e-05/0.05341, allocations: 31.7 kB / 425.7 MB, free: 2.082 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001998/0.05361, allocations: 115.8 kB / 425.8 MB, free: 1.969 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001476/0.05509, allocations: 1.539 MB / 427.3 MB, free: 440 kB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004148/0.05923, allocations: 2.354 MB / 429.7 MB, free: 14.07 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1801/0.2394, allocations: 34.85 MB / 464.5 MB, free: 62.47 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002083/0.2414, allocations: 0.9388 MB / 465.5 MB, free: 62.33 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004927/0.2419, allocations: 367.8 kB / 465.8 MB, free: 62.29 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002368/0.2422, allocations: 90.72 kB / 465.9 MB, free: 62.28 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.574e-05/0.2422, allocations: 47.45 kB / 466 MB, free: 62.24 MB / 410.7 MB Notification: Performance of pre-optimization done (n=108): time 4.789e-06/0.2422, allocations: 3.562 kB / 466 MB, free: 62.24 MB / 410.7 MB Notification: Performance of matching and sorting (n=132): time 0.01525/0.2575, allocations: 8.457 MB / 474.4 MB, free: 59.98 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.338e-05/0.2575, allocations: 193.4 kB / 474.6 MB, free: 59.77 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002598/0.2601, allocations: 3.108 MB / 477.7 MB, free: 59.26 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.464e-05/0.2602, allocations: 43.73 kB / 477.8 MB, free: 59.21 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001047/0.2612, allocations: 2.808 MB / 480.6 MB, free: 57.24 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000322/0.2615, allocations: 0.5698 MB / 481.1 MB, free: 56.83 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008646/0.2624, allocations: 1.173 MB / 482.3 MB, free: 56.21 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.263e-05/0.2625, allocations: 480.7 kB / 482.8 MB, free: 55.73 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008098/0.2633, allocations: 0.5777 MB / 483.4 MB, free: 55.66 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002342/0.2656, allocations: 5.589 MB / 488.9 MB, free: 48.84 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003975/0.2696, allocations: 6.73 MB / 495.7 MB, free: 41.63 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.802e-05/0.2696, allocations: 36 kB / 495.7 MB, free: 41.63 MB / 410.7 MB Notification: Performance of matching and sorting (n=694) (initialization): time 0.005831/0.2755, allocations: 4.882 MB / 0.4889 GB, free: 39.85 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.322e-05/0.2755, allocations: 63.02 kB / 0.4889 GB, free: 39.85 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001018/0.2756, allocations: 117.6 kB / 0.489 GB, free: 39.85 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009663/0.2766, allocations: 455.1 kB / 0.4895 GB, free: 39.82 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002128/0.2787, allocations: 1.21 MB / 0.4906 GB, free: 39.67 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002111/0.2808, allocations: 2.908 MB / 0.4935 GB, free: 37.36 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005954/0.2868, allocations: 324.3 kB / 0.4938 GB, free: 37.26 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001022/0.2878, allocations: 333 kB / 0.4941 GB, free: 37.21 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.001941/0.2898, allocations: 0.5926 MB / 0.4947 GB, free: 36.73 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008031/0.2906, allocations: 318.2 kB / 0.495 GB, free: 36.56 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00274/0.2933, allocations: 1.129 MB / 0.4961 GB, free: 36.2 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.512e-05/0.2933, allocations: 15.28 kB / 0.4961 GB, free: 36.2 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.816e-05/0.2934, allocations: 2.656 kB / 0.4961 GB, free: 36.2 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.427e-05/0.2934, allocations: 4.578 kB / 0.4961 GB, free: 36.2 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008882/0.3023, allocations: 3.985 MB / 0.5 GB, free: 34.46 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.126e-05/0.3023, allocations: 5.547 kB / 0.5 GB, free: 34.46 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008582/0.3031, allocations: 196.5 kB / 0.5002 GB, free: 34.44 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001158/0.3043, allocations: 294 kB / 0.5005 GB, free: 34.41 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001161/0.3044, allocations: 22 kB / 0.5005 GB, free: 34.39 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002356/0.3068, allocations: 2.289 MB / 0.5027 GB, free: 32.44 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.367e-06/0.3068, allocations: 3.156 kB / 0.5027 GB, free: 32.44 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003876/0.3106, allocations: 2.137 MB / 0.5048 GB, free: 31.42 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009618/0.3116, allocations: 269.3 kB / 0.5051 GB, free: 31.24 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004172/0.312, allocations: 22.66 kB / 0.5051 GB, free: 31.23 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008133/0.3128, allocations: 100.6 kB / 0.5052 GB, free: 31.21 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001257/0.3129, allocations: 77.53 kB / 0.5053 GB, free: 31.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.633e-05/0.313, allocations: 35.75 kB / 0.5053 GB, free: 31.19 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001637/0.3146, allocations: 1.318 MB / 0.5066 GB, free: 30.73 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3146, allocations: 0 / 0.5066 GB, free: 30.73 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003259/0.3179, allocations: 0.8668 MB / 0.5074 GB, free: 30.63 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.0003876/0.3183, allocations: 166 kB / 0.5076 GB, free: 30.5 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003889/0.3222, allocations: 2.625 MB / 0.5102 GB, free: 29.57 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.3222, allocations: 4.062 kB / 0.5102 GB, free: 29.56 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000662/0.3228, allocations: 0.6222 MB / 0.5108 GB, free: 29.27 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001296/0.3241, allocations: 326.2 kB / 0.5111 GB, free: 29.12 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007367/0.3315, allocations: 5.682 MB / 0.5166 GB, free: 24.05 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000989/0.3325, allocations: 0.9499 MB / 0.5176 GB, free: 23.36 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002491/0.335, allocations: 1.435 MB / 0.519 GB, free: 22.55 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004558/0.3354, allocations: 194.4 kB / 0.5192 GB, free: 22.37 MB / 410.7 MB Notification: Performance of SimCode: time 2.275e-06/0.3354, allocations: 0 / 0.5192 GB, free: 22.37 MB / 410.7 MB Notification: Performance of Templates: time 0.03167/0.3671, allocations: 23.96 MB / 0.5426 GB, free: 1.66 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.203172772191465]