Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.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.001152/0.001152, allocations: 95.31 kB / 20.43 MB, free: 4.145 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.0008972/0.0008972, allocations: 165.3 kB / 23.8 MB, free: 0.7773 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8686/0.8686, allocations: 158.6 MB / 185.7 MB, free: 2.934 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.154/0.154, allocations: 32.38 MB / 270.4 MB, free: 14.71 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.484e-06/2.484e-06, allocations: 4 kB / 347.7 MB, free: 9.453 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.581e-05/1.829e-05, allocations: 9.344 kB / 347.7 MB, free: 9.445 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.006808/0.006826, allocations: 9.717 MB / 357.4 MB, free: 15.68 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006037/0.01286, allocations: 3.641 MB / 361 MB, free: 12.03 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009023/0.01377, allocations: 59.75 kB / 361.1 MB, free: 11.97 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00234/0.01611, allocations: 2.098 MB / 363.2 MB, free: 9.867 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003239/0.01934, allocations: 1.859 MB / 365 MB, free: 8 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001049/0.02039, allocations: 0.6275 MB / 365.7 MB, free: 7.371 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003886/0.02428, allocations: 4.103 MB / 369.8 MB, free: 3.258 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003157/0.02744, allocations: 2.479 MB / 372.3 MB, free: 0.7188 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003483/0.03092, allocations: 2.28 MB / 374.5 MB, free: 14.43 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002683/0.0336, allocations: 1.999 MB / 376.5 MB, free: 12.43 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005524/0.03416, allocations: 288 kB / 376.8 MB, free: 12.15 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001798/0.03595, allocations: 1.1 MB / 377.9 MB, free: 11.05 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00168/0.03763, allocations: 1.827 MB / 379.7 MB, free: 9.215 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00132/0.03895, allocations: 1.098 MB / 380.8 MB, free: 8.113 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004041/0.04299, allocations: 4.324 MB / 385.2 MB, free: 3.773 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.043, allocations: 0 / 385.2 MB, free: 3.773 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.043, allocations: 0 / 385.2 MB, free: 3.773 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.631e-05/0.04308, allocations: 4 kB / 385.2 MB, free: 3.77 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1367 * Number of variables: 1367 Notification: Performance of Generate backend data structure: time 0.005055/0.04814, allocations: 4.622 MB / 389.8 MB, free: 15.09 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.196e-05/0.04818, allocations: 12.03 kB / 389.8 MB, free: 15.07 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0107/0.05889, allocations: 2.869 MB / 392.7 MB, free: 12.2 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003717/0.0626, allocations: 2.008 MB / 394.7 MB, free: 10.15 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001695/0.06277, allocations: 197.3 kB / 394.9 MB, free: 9.957 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004619/0.06323, allocations: 264.2 kB / 395.1 MB, free: 9.699 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006098/0.06933, allocations: 5.272 MB / 400.4 MB, free: 3.535 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.961e-05/0.06941, allocations: 43.64 kB / 400.4 MB, free: 3.492 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002537/0.06966, allocations: 131.8 kB / 400.6 MB, free: 3.363 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001517/0.07118, allocations: 1.774 MB / 402.3 MB, free: 1.59 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004943/0.07613, allocations: 2.631 MB / 405 MB, free: 14.95 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02419/0.1003, allocations: 38.82 MB / 443.8 MB, free: 6.801 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001887/0.1022, allocations: 0.9082 MB / 444.7 MB, free: 5.844 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004048/0.1026, allocations: 300 kB / 445 MB, free: 5.535 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003156/0.1058, allocations: 2.686 MB / 447.7 MB, free: 2.816 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.886e-05/0.1058, allocations: 45.33 kB / 447.7 MB, free: 2.762 MB / 378.7 MB Notification: Performance of pre-optimization done (n=91): time 3.226e-06/0.1058, allocations: 0 / 447.7 MB, free: 2.762 MB / 378.7 MB Notification: Performance of matching and sorting (n=100): time 0.1577/0.2635, allocations: 5.573 MB / 453.3 MB, free: 97.25 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.076e-05/0.2635, allocations: 188.8 kB / 453.5 MB, free: 97.04 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003682/0.2672, allocations: 3.54 MB / 457 MB, free: 96.49 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.232e-05/0.2673, allocations: 39.08 kB / 457.1 MB, free: 96.46 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001592/0.2689, allocations: 3.343 MB / 460.4 MB, free: 94.67 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003813/0.2692, allocations: 483.6 kB / 460.9 MB, free: 94.44 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0012/0.2704, allocations: 1.296 MB / 462.2 MB, free: 94.28 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.582e-05/0.2705, allocations: 484.1 kB / 462.7 MB, free: 93.81 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007648/0.2712, allocations: 0.5387 MB / 463.2 MB, free: 93.79 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002376/0.2736, allocations: 6.494 MB / 469.7 MB, free: 86.03 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003881/0.2775, allocations: 7.678 MB / 477.4 MB, free: 77.68 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.508e-05/0.2775, allocations: 37.56 kB / 477.4 MB, free: 77.68 MB / 378.7 MB Notification: Performance of matching and sorting (n=766) (initialization): time 0.005079/0.2826, allocations: 5.046 MB / 482.4 MB, free: 75.62 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.091e-05/0.2827, allocations: 64 kB / 482.5 MB, free: 75.56 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001035/0.2828, allocations: 140.9 kB / 482.6 MB, free: 75.43 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003282/0.2831, allocations: 229.3 kB / 482.9 MB, free: 75.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001903/0.285, allocations: 1.364 MB / 484.2 MB, free: 74 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008169/0.2858, allocations: 2.022 MB / 486.3 MB, free: 71.92 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002254/0.2881, allocations: 357.3 kB / 486.6 MB, free: 71.61 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002423/0.2883, allocations: 374.2 kB / 487 MB, free: 71.25 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 647 * Number of states: 0 () * Number of discrete variables: 31 (LessEqualThreshold1.y,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[1],distance1.arrowColor[3],distance1.arrowColor[2],distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.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 (741): * Single equations (assignments): 737 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008937/0.2892, allocations: 0.6653 MB / 487.6 MB, free: 70.57 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003518/0.2896, allocations: 329.4 kB / 488 MB, free: 70.25 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006767/0.2902, allocations: 0.587 MB / 488.5 MB, free: 69.75 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.521e-05/0.2903, allocations: 12 kB / 488.6 MB, free: 69.73 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.488e-06/0.2903, allocations: 3 kB / 488.6 MB, free: 69.73 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.306e-06/0.2903, allocations: 7.516 kB / 488.6 MB, free: 69.73 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003806/0.2941, allocations: 3.381 MB / 491.9 MB, free: 66.76 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.544e-06/0.2941, allocations: 7.953 kB / 492 MB, free: 66.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004906/0.2946, allocations: 165.1 kB / 492.1 MB, free: 66.62 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001675/0.2948, allocations: 42.91 kB / 492.2 MB, free: 66.58 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.966e-05/0.2948, allocations: 19.66 kB / 492.2 MB, free: 66.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006319/0.2954, allocations: 1.757 MB / 493.9 MB, free: 64.71 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.774e-06/0.2954, allocations: 7.938 kB / 493.9 MB, free: 64.71 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001466/0.2969, allocations: 1.609 MB / 495.5 MB, free: 63.1 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004975/0.2974, allocations: 394.3 kB / 495.9 MB, free: 62.74 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002474/0.2977, allocations: 16 kB / 496 MB, free: 62.73 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007619/0.2984, allocations: 84.55 kB / 496 MB, free: 62.68 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001154/0.2985, allocations: 69.98 kB / 496.1 MB, free: 62.64 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.766e-05/0.2986, allocations: 32 kB / 496.1 MB, free: 62.61 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00159/0.3002, allocations: 1.484 MB / 497.6 MB, free: 61.39 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3002, allocations: 0 / 497.6 MB, free: 61.39 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003325/0.3035, allocations: 0.8671 MB / 498.5 MB, free: 60.53 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 (Revolute1.phi,Revolute1.w) * Number of discrete variables: 1 (LessEqualThreshold1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (79): * Single equations (assignments): 75 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000304/0.3038, allocations: 173.1 kB / 498.7 MB, free: 60.36 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003154/0.3069, allocations: 2.611 MB / 0.4895 GB, free: 58.03 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.307, allocations: 5.938 kB / 0.4895 GB, free: 58.03 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004496/0.3074, allocations: 464 kB / 0.49 GB, free: 57.59 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00138/0.3088, allocations: 326.1 kB / 0.4903 GB, free: 57.32 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007566/0.3163, allocations: 6.308 MB / 0.4964 GB, free: 50.91 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008607/0.3172, allocations: 1.078 MB / 0.4975 GB, free: 49.8 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002483/0.3197, allocations: 1.527 MB / 0.499 GB, free: 48.28 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003483/0.32, allocations: 204.5 kB / 0.4992 GB, free: 48.08 MB / 378.7 MB Notification: Performance of SimCode: time 1.252e-06/0.32, allocations: 0 / 0.4992 GB, free: 48.08 MB / 378.7 MB Notification: Performance of Templates: time 0.03607/0.3561, allocations: 20.26 MB / 0.519 GB, free: 28.04 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.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.002915743272752]