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.0008187/0.0008187, allocations: 87.62 kB / 21.43 MB, free: 3.133 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.003673/0.003673, allocations: 165.1 kB / 24.7 MB, free: 9.426 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.8511/0.8511, allocations: 177.2 MB / 205 MB, free: 5.719 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.2359/0.2359, allocations: 34.25 MB / 295.7 MB, free: 0.6875 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.703e-06/1.703e-06, allocations: 0 / 443.4 MB, free: 1.141 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.493e-05/2.663e-05, allocations: 2.281 kB / 443.4 MB, free: 1.137 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.185/0.185, allocations: 7.924 MB / 451.4 MB, free: 40.14 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.003294/0.1883, allocations: 3.367 MB / 454.7 MB, free: 38.07 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004504/0.1888, allocations: 57.28 kB / 454.8 MB, free: 38.05 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001537/0.1903, allocations: 1.707 MB / 456.5 MB, free: 37.34 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002042/0.1923, allocations: 1.63 MB / 458.1 MB, free: 36.6 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000669/0.193, allocations: 0.6129 MB / 458.7 MB, free: 36.35 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.00218/0.1952, allocations: 3.951 MB / 462.7 MB, free: 34.85 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001147/0.1963, allocations: 2.073 MB / 464.8 MB, free: 33.92 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001059/0.1974, allocations: 1.686 MB / 466.4 MB, free: 33.2 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001019/0.1984, allocations: 1.696 MB / 468.1 MB, free: 32.76 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001792/0.1986, allocations: 224.9 kB / 468.4 MB, free: 32.76 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008744/0.1995, allocations: 1.048 MB / 469.4 MB, free: 32.56 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005776/0.2001, allocations: 1.509 MB / 470.9 MB, free: 31.93 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000472/0.2005, allocations: 0.9041 MB / 471.8 MB, free: 31.49 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002591/0.2031, allocations: 5.472 MB / 477.3 MB, free: 29.62 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.2031, allocations: 0 / 477.3 MB, free: 29.62 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.2031, allocations: 0 / 477.3 MB, free: 29.62 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.473e-05/0.2032, allocations: 0 / 477.3 MB, free: 29.62 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.003498/0.2067, allocations: 3.699 MB / 481 MB, free: 27.49 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.456e-05/0.2067, allocations: 12.94 kB / 481 MB, free: 27.48 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00734/0.214, allocations: 2.4 MB / 483.4 MB, free: 27.16 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002711/0.2167, allocations: 2.117 MB / 485.5 MB, free: 26.12 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.39e-05/0.2168, allocations: 169.1 kB / 485.7 MB, free: 26.04 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002788/0.2171, allocations: 214.1 kB / 485.9 MB, free: 25.96 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006466/0.2236, allocations: 7.459 MB / 493.4 MB, free: 22.22 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.794e-05/0.2236, allocations: 40.27 kB / 493.4 MB, free: 22.2 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000194/0.2238, allocations: 111.7 kB / 493.5 MB, free: 22.12 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001661/0.2255, allocations: 1.54 MB / 495 MB, free: 21.85 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007278/0.2328, allocations: 6.3 MB / 0.4896 GB, free: 19.9 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01637/0.2491, allocations: 28.57 MB / 0.5175 GB, free: 8.562 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00239/0.2515, allocations: 1.752 MB / 0.5192 GB, free: 6.777 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008499/0.2524, allocations: 1.047 MB / 0.5202 GB, free: 5.719 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001666/0.2525, allocations: 84.44 kB / 0.5203 GB, free: 5.637 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.464e-05/0.2526, allocations: 47.06 kB / 0.5204 GB, free: 5.582 MB / 426.7 MB Notification: Performance of pre-optimization done (n=108): time 3.206e-06/0.2526, allocations: 3.938 kB / 0.5204 GB, free: 5.578 MB / 426.7 MB Notification: Performance of matching and sorting (n=132): time 0.01867/0.2712, allocations: 12.14 MB / 0.5322 GB, free: 9.363 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.678e-05/0.2713, allocations: 192.6 kB / 0.5324 GB, free: 9.133 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002847/0.2742, allocations: 3.445 MB / 0.5358 GB, free: 5.668 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.98e-05/0.2742, allocations: 41.7 kB / 0.5358 GB, free: 5.621 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001055/0.2753, allocations: 2.657 MB / 0.5384 GB, free: 2.938 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003244/0.2756, allocations: 0.539 MB / 0.5389 GB, free: 2.395 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008477/0.2765, allocations: 1.076 MB / 0.54 GB, free: 1.309 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 6.357e-05/0.2765, allocations: 301.1 kB / 0.5403 GB, free: 1.012 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001566/0.2781, allocations: 1.74 MB / 0.542 GB, free: 15.27 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002934/0.281, allocations: 5.138 MB / 0.547 GB, free: 8.43 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004805/0.2858, allocations: 7.368 MB / 0.5542 GB, free: 15.41 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.852e-05/0.2858, allocations: 32 kB / 0.5542 GB, free: 15.38 MB / 474.7 MB Notification: Performance of matching and sorting (n=694) (initialization): time 0.006471/0.2923, allocations: 7.034 MB / 0.5611 GB, free: 8.332 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.056e-05/0.2924, allocations: 59.98 kB / 0.5611 GB, free: 8.273 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.288e-05/0.2924, allocations: 116 kB / 0.5612 GB, free: 8.16 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008921/0.2933, allocations: 0.6408 MB / 0.5619 GB, free: 7.516 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001811/0.2951, allocations: 1.217 MB / 0.5631 GB, free: 6.297 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003044/0.2982, allocations: 3.941 MB / 0.5669 GB, free: 2.262 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001822/0.3, allocations: 327.5 kB / 0.5672 GB, free: 1.941 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002478/0.3003, allocations: 327.9 kB / 0.5675 GB, free: 1.621 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.001706/0.302, allocations: 1.707 MB / 0.5692 GB, free: 15.9 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002528/0.3022, allocations: 278.1 kB / 0.5695 GB, free: 15.62 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002136/0.3043, allocations: 2.053 MB / 0.5715 GB, free: 13.55 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.416e-05/0.3044, allocations: 20 kB / 0.5715 GB, free: 13.54 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.037e-06/0.3044, allocations: 8.812 kB / 0.5715 GB, free: 13.53 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.646e-06/0.3044, allocations: 3.984 kB / 0.5715 GB, free: 13.52 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005116/0.3095, allocations: 4.866 MB / 0.5762 GB, free: 8.602 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.342e-06/0.3095, allocations: 3.984 kB / 0.5763 GB, free: 8.598 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004636/0.31, allocations: 193.9 kB / 0.5764 GB, free: 8.41 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007078/0.3107, allocations: 496.2 kB / 0.5769 GB, free: 7.922 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.302e-05/0.3107, allocations: 20 kB / 0.5769 GB, free: 7.902 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002436/0.3132, allocations: 3.311 MB / 0.5802 GB, free: 4.488 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.3132, allocations: 0 / 0.5802 GB, free: 4.488 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003597/0.3168, allocations: 4.152 MB / 0.5842 GB, free: 312 kB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003009/0.3171, allocations: 278.3 kB / 0.5845 GB, free: 32 kB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001574/0.3172, allocations: 20 kB / 0.5845 GB, free: 12 kB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006211/0.3178, allocations: 105 kB / 0.5846 GB, free: 15.91 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001154/0.318, allocations: 88.31 kB / 0.5847 GB, free: 15.82 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.24e-05/0.318, allocations: 32 kB / 0.5847 GB, free: 15.79 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001693/0.3197, allocations: 2.003 MB / 0.5867 GB, free: 13.79 MB / 0.4948 GB Notification: Performance of sort global known variables: time 5e-08/0.3197, allocations: 0 / 0.5867 GB, free: 13.79 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.002414/0.3221, allocations: 0.8554 MB / 0.5875 GB, free: 12.93 MB / 0.4948 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.0003029/0.3224, allocations: 167 kB / 0.5877 GB, free: 12.75 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.003687/0.3261, allocations: 3.977 MB / 0.5915 GB, free: 8.797 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.3261, allocations: 4 kB / 0.5916 GB, free: 8.793 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0009756/0.3271, allocations: 1.058 MB / 0.5926 GB, free: 7.723 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001046/0.3281, allocations: 302.8 kB / 0.5929 GB, free: 7.438 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007478/0.3356, allocations: 7.46 MB / 0.6002 GB, free: 15.92 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001635/0.3372, allocations: 2.072 MB / 0.6022 GB, free: 13.81 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004639/0.3377, allocations: 240.5 kB / 0.6024 GB, free: 13.57 MB / 0.5105 GB Notification: Performance of SimCode: time 1.232e-06/0.3377, allocations: 0 / 0.6024 GB, free: 13.57 MB / 0.5105 GB Notification: Performance of Templates: time 0.2032/0.5409, allocations: 61.33 MB / 0.6623 GB, free: 138.9 MB / 0.5261 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins/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: 7.299697579815984]