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.0009963/0.0009963, allocations: 75.77 kB / 21.18 MB, free: 3.383 MB / 18.57 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.0009841/0.0009841, allocations: 161 kB / 24.56 MB, free: 12 kB / 18.57 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 0.9482/0.9482, allocations: 177.1 MB / 205 MB, free: 5.246 MB / 186.7 MB " [Timeout remaining time 179] 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.2701/0.2701, allocations: 34.26 MB / 295.7 MB, free: 0.6445 MB / 266.7 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 1.513e-06/1.513e-06, allocations: 0 / 378 MB, free: 2.637 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.159e-05/2.31e-05, allocations: 5.266 kB / 378 MB, free: 2.633 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.007448/0.007471, allocations: 8.69 MB / 386.7 MB, free: 9.898 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.005463/0.01293, allocations: 3.485 MB / 390.2 MB, free: 6.402 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007394/0.01367, allocations: 59.69 kB / 390.3 MB, free: 6.344 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001956/0.01563, allocations: 1.783 MB / 392 MB, free: 4.555 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002405/0.01803, allocations: 1.637 MB / 393.7 MB, free: 2.91 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009078/0.01894, allocations: 0.6196 MB / 394.3 MB, free: 2.289 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.002842/0.02178, allocations: 3.964 MB / 398.3 MB, free: 14.32 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001572/0.02336, allocations: 2.138 MB / 400.4 MB, free: 12.12 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001408/0.02476, allocations: 1.695 MB / 402.1 MB, free: 10.42 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001356/0.02612, allocations: 1.722 MB / 403.8 MB, free: 8.695 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002185/0.02634, allocations: 228 kB / 404 MB, free: 8.473 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001099/0.02744, allocations: 1.049 MB / 405.1 MB, free: 7.422 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008737/0.02831, allocations: 1.519 MB / 406.6 MB, free: 5.898 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006723/0.02898, allocations: 0.9033 MB / 407.5 MB, free: 4.992 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003051/0.03203, allocations: 3.698 MB / 411.2 MB, free: 1.281 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.03204, allocations: 0 / 411.2 MB, free: 1.281 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.235e-06/0.03204, allocations: 0 / 411.2 MB, free: 1.281 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.518e-05/0.03207, allocations: 0 / 411.2 MB, free: 1.281 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.003967/0.03604, allocations: 4.017 MB / 415.2 MB, free: 13.2 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.311e-05/0.03608, allocations: 12.03 kB / 415.2 MB, free: 13.18 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007589/0.04367, allocations: 2.721 MB / 418 MB, free: 10.46 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00243/0.0461, allocations: 1.965 MB / 419.9 MB, free: 8.457 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.125e-05/0.04618, allocations: 156.5 kB / 420.1 MB, free: 8.301 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002638/0.04644, allocations: 228.2 kB / 420.3 MB, free: 8.078 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004616/0.05106, allocations: 4.601 MB / 424.9 MB, free: 2.625 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.782e-05/0.05112, allocations: 43.62 kB / 424.9 MB, free: 2.582 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001804/0.0513, allocations: 107.9 kB / 425.1 MB, free: 2.477 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001427/0.05272, allocations: 1.542 MB / 426.6 MB, free: 0.9336 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003637/0.05636, allocations: 2.347 MB / 428.9 MB, free: 14.57 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1721/0.2284, allocations: 34.85 MB / 463.8 MB, free: 62.73 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001909/0.2303, allocations: 0.9376 MB / 464.7 MB, free: 62.59 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004131/0.2307, allocations: 364.7 kB / 465.1 MB, free: 62.54 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001818/0.2309, allocations: 96.06 kB / 465.2 MB, free: 62.54 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.014e-05/0.231, allocations: 46.92 kB / 465.2 MB, free: 62.49 MB / 410.7 MB Notification: Performance of pre-optimization done (n=108): time 2.826e-06/0.231, allocations: 1.031 kB / 465.2 MB, free: 62.49 MB / 410.7 MB Notification: Performance of matching and sorting (n=132): time 0.01518/0.2461, allocations: 8.457 MB / 473.7 MB, free: 60.24 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.856e-05/0.2462, allocations: 198.7 kB / 473.9 MB, free: 60.02 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00289/0.2491, allocations: 3.109 MB / 477 MB, free: 59.52 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.053e-05/0.2491, allocations: 42.33 kB / 477 MB, free: 59.48 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001217/0.2504, allocations: 2.812 MB / 479.8 MB, free: 57.77 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003128/0.2507, allocations: 0.5673 MB / 480.4 MB, free: 57.37 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008456/0.2515, allocations: 1.168 MB / 481.6 MB, free: 56.74 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.94e-05/0.2516, allocations: 480 kB / 482 MB, free: 56.27 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008655/0.2524, allocations: 0.5749 MB / 482.6 MB, free: 56.2 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002112/0.2545, allocations: 5.597 MB / 488.2 MB, free: 49.38 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003703/0.2582, allocations: 6.73 MB / 494.9 MB, free: 42.2 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.913e-05/0.2583, allocations: 33.94 kB / 495 MB, free: 42.2 MB / 410.7 MB Notification: Performance of matching and sorting (n=694) (initialization): time 0.005597/0.2639, allocations: 4.881 MB / 499.9 MB, free: 40.42 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.45e-05/0.2639, allocations: 55.75 kB / 499.9 MB, free: 40.42 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001203/0.2641, allocations: 117.9 kB / 0.4883 GB, free: 40.42 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000929/0.265, allocations: 457.3 kB / 0.4887 GB, free: 40.39 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002049/0.267, allocations: 1.211 MB / 0.4899 GB, free: 40.24 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002039/0.2691, allocations: 2.908 MB / 0.4928 GB, free: 37.94 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00181/0.2709, allocations: 329.3 kB / 0.4931 GB, free: 37.83 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003068/0.2712, allocations: 332.8 kB / 0.4934 GB, free: 37.79 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.0007859/0.272, allocations: 0.5934 MB / 0.494 GB, free: 37.3 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003152/0.2723, allocations: 306.4 kB / 0.4943 GB, free: 37.14 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001515/0.2738, allocations: 1.139 MB / 0.4954 GB, free: 36.76 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.268e-05/0.2738, allocations: 15.16 kB / 0.4954 GB, free: 36.76 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.788e-06/0.2738, allocations: 3.438 kB / 0.4954 GB, free: 36.76 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.267e-06/0.2739, allocations: 7.828 kB / 0.4954 GB, free: 36.76 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004721/0.2786, allocations: 3.986 MB / 0.4993 GB, free: 35.03 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.2786, allocations: 2.406 kB / 0.4993 GB, free: 35.03 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004632/0.279, allocations: 194.8 kB / 0.4995 GB, free: 35.01 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006547/0.2797, allocations: 288.4 kB / 0.4998 GB, free: 34.98 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.588e-05/0.2798, allocations: 33.95 kB / 0.4998 GB, free: 34.96 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001365/0.2811, allocations: 2.291 MB / 0.502 GB, free: 33.01 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.2811, allocations: 7.438 kB / 0.502 GB, free: 33 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002155/0.2833, allocations: 2.126 MB / 0.5041 GB, free: 31.98 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002373/0.2835, allocations: 271.1 kB / 0.5044 GB, free: 31.8 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001558/0.2837, allocations: 22.56 kB / 0.5044 GB, free: 31.79 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005781/0.2842, allocations: 104.6 kB / 0.5045 GB, free: 31.77 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001176/0.2844, allocations: 75.34 kB / 0.5046 GB, free: 31.76 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.014e-05/0.2844, allocations: 38.17 kB / 0.5046 GB, free: 31.75 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001217/0.2856, allocations: 1.32 MB / 0.5059 GB, free: 31.29 MB / 410.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2856, allocations: 0 / 0.5059 GB, free: 31.29 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002309/0.2879, allocations: 0.8586 MB / 0.5067 GB, free: 31.19 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.0002923/0.2882, allocations: 168.3 kB / 0.5069 GB, free: 31.06 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002827/0.2911, allocations: 2.619 MB / 0.5094 GB, free: 30.13 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.2911, allocations: 3.562 kB / 0.5095 GB, free: 30.13 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005733/0.2916, allocations: 0.6326 MB / 0.5101 GB, free: 29.83 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001024/0.2927, allocations: 315.9 kB / 0.5104 GB, free: 29.69 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006199/0.2989, allocations: 5.691 MB / 0.5159 GB, free: 24.65 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000834/0.2997, allocations: 0.9457 MB / 0.5169 GB, free: 23.96 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002125/0.3018, allocations: 1.438 MB / 0.5183 GB, free: 23.15 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003374/0.3022, allocations: 193.3 kB / 0.5184 GB, free: 22.97 MB / 410.7 MB Notification: Performance of SimCode: time 8.62e-07/0.3022, allocations: 0 / 0.5184 GB, free: 22.97 MB / 410.7 MB Notification: Performance of Templates: time 0.02864/0.3308, allocations: 23.96 MB / 0.5418 GB, free: 2.23 MB / 410.7 MB " [Timeout remaining time 660] 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_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.1357341217808425]