Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.0008983/0.0008983, allocations: 87.62 kB / 21.44 MB, free: 3.129 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.003836/0.003836, allocations: 160.2 kB / 24.7 MB, free: 9.418 MB / 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.8666/0.8666, allocations: 177.2 MB / 205 MB, free: 5.715 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2191/0.2191, allocations: 32.79 MB / 294.2 MB, free: 1.188 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0.0_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.034e-06/2.034e-06, allocations: 0 / 440.8 MB, free: 3.746 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.931e-05/3.134e-05, allocations: 2.281 kB / 440.8 MB, free: 3.742 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.1916/0.1916, allocations: 7.925 MB / 448.8 MB, free: 42.52 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.003649/0.1952, allocations: 3.369 MB / 452.1 MB, free: 40.69 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004088/0.1957, allocations: 55.34 kB / 452.2 MB, free: 40.68 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00144/0.1971, allocations: 1.708 MB / 453.9 MB, free: 39.96 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001497/0.1986, allocations: 1.638 MB / 455.5 MB, free: 39.21 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005242/0.1991, allocations: 0.6059 MB / 456.1 MB, free: 38.97 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.001779/0.2009, allocations: 3.958 MB / 460.1 MB, free: 37.47 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001095/0.202, allocations: 2.073 MB / 462.2 MB, free: 36.54 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009399/0.2029, allocations: 1.674 MB / 463.8 MB, free: 35.83 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009851/0.2039, allocations: 1.704 MB / 465.5 MB, free: 35.39 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001742/0.2041, allocations: 222 kB / 465.8 MB, free: 35.39 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008506/0.2049, allocations: 1.053 MB / 466.8 MB, free: 35.18 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005916/0.2055, allocations: 1.514 MB / 468.3 MB, free: 34.55 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000466/0.206, allocations: 0.9021 MB / 469.2 MB, free: 34.11 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00258/0.2086, allocations: 5.461 MB / 474.7 MB, free: 32.25 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.2086, allocations: 3.328 kB / 474.7 MB, free: 32.25 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2086, allocations: 0 / 474.7 MB, free: 32.25 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.054e-05/0.2086, allocations: 0 / 474.7 MB, free: 32.25 MB / 410.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.003242/0.2119, allocations: 3.711 MB / 478.4 MB, free: 30.1 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.443e-05/0.2119, allocations: 9.875 kB / 478.4 MB, free: 30.1 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007065/0.219, allocations: 2.397 MB / 480.8 MB, free: 29.78 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002736/0.2217, allocations: 2.12 MB / 482.9 MB, free: 28.74 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.467e-05/0.2218, allocations: 164.6 kB / 483.1 MB, free: 28.66 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002746/0.2221, allocations: 218.5 kB / 483.3 MB, free: 28.58 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006905/0.229, allocations: 7.452 MB / 490.8 MB, free: 24.84 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.35e-05/0.229, allocations: 43.89 kB / 490.8 MB, free: 24.81 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002073/0.2292, allocations: 106.2 kB / 490.9 MB, free: 24.74 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001856/0.2311, allocations: 1.549 MB / 492.5 MB, free: 24.46 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008112/0.2392, allocations: 6.298 MB / 498.7 MB, free: 22.51 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01539/0.2546, allocations: 28.56 MB / 0.515 GB, free: 12.49 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002416/0.257, allocations: 1.757 MB / 0.5167 GB, free: 10.7 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008631/0.2579, allocations: 1.048 MB / 0.5177 GB, free: 9.645 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001589/0.258, allocations: 80.45 kB / 0.5178 GB, free: 9.566 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.701e-05/0.2581, allocations: 54.98 kB / 0.5178 GB, free: 9.504 MB / 426.7 MB Notification: Performance of pre-optimization done (n=108): time 4.047e-06/0.2581, allocations: 0 / 0.5178 GB, free: 9.504 MB / 426.7 MB Notification: Performance of matching and sorting (n=132): time 0.01907/0.2771, allocations: 12.14 MB / 0.5297 GB, free: 13.29 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.388e-05/0.2772, allocations: 204.5 kB / 0.5299 GB, free: 13.05 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003258/0.2805, allocations: 3.445 MB / 0.5332 GB, free: 9.582 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.887e-05/0.2805, allocations: 41.7 kB / 0.5333 GB, free: 9.535 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001125/0.2816, allocations: 2.649 MB / 0.5359 GB, free: 6.859 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003357/0.282, allocations: 0.5467 MB / 0.5364 GB, free: 6.309 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008905/0.2829, allocations: 1.072 MB / 0.5374 GB, free: 5.227 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.868e-05/0.283, allocations: 305.1 kB / 0.5377 GB, free: 4.926 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001609/0.2846, allocations: 1.736 MB / 0.5394 GB, free: 3.184 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003309/0.2879, allocations: 5.134 MB / 0.5444 GB, free: 12.35 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006238/0.2941, allocations: 7.365 MB / 0.5516 GB, free: 3.328 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.01e-05/0.2942, allocations: 36 kB / 0.5517 GB, free: 3.293 MB / 458.7 MB Notification: Performance of matching and sorting (n=694) (initialization): time 0.007818/0.302, allocations: 7.038 MB / 0.5585 GB, free: 12.25 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.665e-05/0.302, allocations: 56 kB / 0.5586 GB, free: 12.2 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.612e-05/0.3021, allocations: 120 kB / 0.5587 GB, free: 12.08 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009842/0.3031, allocations: 0.6369 MB / 0.5593 GB, free: 11.44 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001882/0.305, allocations: 1.224 MB / 0.5605 GB, free: 10.21 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003285/0.3083, allocations: 3.939 MB / 0.5644 GB, free: 6.176 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002002/0.3103, allocations: 319.5 kB / 0.5647 GB, free: 5.863 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002605/0.3105, allocations: 332 kB / 0.565 GB, free: 5.539 MB / 474.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.002261/0.3128, allocations: 1.708 MB / 0.5667 GB, free: 3.82 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002643/0.313, allocations: 282.1 kB / 0.5669 GB, free: 3.543 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002171/0.3152, allocations: 2.05 MB / 0.5689 GB, free: 1.477 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.527e-05/0.3152, allocations: 20 kB / 0.569 GB, free: 1.457 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-06/0.3152, allocations: 4 kB / 0.569 GB, free: 1.453 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.047e-06/0.3152, allocations: 3.984 kB / 0.569 GB, free: 1.449 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005714/0.321, allocations: 4.867 MB / 0.5737 GB, free: 12.53 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.702e-06/0.321, allocations: 4 kB / 0.5737 GB, free: 12.52 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004694/0.3214, allocations: 195.7 kB / 0.5739 GB, free: 12.33 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007071/0.3221, allocations: 488.3 kB / 0.5744 GB, free: 11.85 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.275e-05/0.3222, allocations: 23.98 kB / 0.5744 GB, free: 11.83 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00242/0.3246, allocations: 3.319 MB / 0.5776 GB, free: 8.406 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.3246, allocations: 3.625 kB / 0.5776 GB, free: 8.406 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00387/0.3285, allocations: 4.156 MB / 0.5817 GB, free: 4.219 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003085/0.3288, allocations: 278 kB / 0.582 GB, free: 3.945 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001544/0.3289, allocations: 16 kB / 0.582 GB, free: 3.93 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006168/0.3296, allocations: 108.1 kB / 0.5821 GB, free: 3.824 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001125/0.3297, allocations: 72.45 kB / 0.5822 GB, free: 3.75 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.528e-05/0.3297, allocations: 36 kB / 0.5822 GB, free: 3.715 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001773/0.3315, allocations: 1.999 MB / 0.5841 GB, free: 1.715 MB / 490.7 MB Notification: Performance of sort global known variables: time 5e-08/0.3315, allocations: 0 / 0.5841 GB, free: 1.715 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002718/0.3342, allocations: 0.8671 MB / 0.585 GB, free: 0.8477 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 (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.0003493/0.3346, allocations: 163 kB / 0.5851 GB, free: 0.6758 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.004511/0.3391, allocations: 3.983 MB / 0.589 GB, free: 12.71 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.3391, allocations: 0 / 0.589 GB, free: 12.71 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0009317/0.34, allocations: 1.051 MB / 0.5901 GB, free: 11.64 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001118/0.3411, allocations: 301.4 kB / 0.5903 GB, free: 11.36 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008141/0.3493, allocations: 7.474 MB / 0.5976 GB, free: 3.832 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001608/0.3509, allocations: 2.072 MB / 0.5997 GB, free: 1.719 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004722/0.3514, allocations: 236.5 kB / 0.5999 GB, free: 1.488 MB / 0.4948 GB Notification: Performance of SimCode: time 1.613e-06/0.3514, allocations: 0 / 0.5999 GB, free: 1.488 MB / 0.4948 GB Notification: Performance of Templates: time 0.2296/0.5809, allocations: 61.31 MB / 0.6598 GB, free: 138.9 MB / 0.5261 GB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 8.30861818883568]