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.0009399/0.0009399, allocations: 89.05 kB / 9.989 MB, free: 0.6992 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001532/0.002472, allocations: 452 kB / 10.43 MB, free: 264 kB / 10.45 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.0008608/0.0008608, allocations: 161.1 kB / 11.33 MB, free: 2.84 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001243/0.002103, allocations: 483.5 kB / 11.8 MB, free: 2.363 MB / 13.93 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.989/0.989, allocations: 158.6 MB / 171.2 MB, free: 2.5 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1931/1.182, allocations: 49.5 MB / 220.7 MB, free: 1.359 MB / 218.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.1432/0.1432, allocations: 32.35 MB / 253.8 MB, free: 232 kB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0278/0.171, allocations: 12.32 MB / 266.1 MB, free: 3.875 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 1.753e-06/1.753e-06, allocations: 0 / 267.4 MB, free: 2.574 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.018e-05/2.193e-05, allocations: 6.25 kB / 267.4 MB, free: 2.566 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01217/0.0122, allocations: 9.609 MB / 277 MB, free: 8.898 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.008327/0.02052, allocations: 3.761 MB / 280.8 MB, free: 5.125 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009242/0.02145, allocations: 59.75 kB / 280.8 MB, free: 5.066 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002255/0.0237, allocations: 2.008 MB / 282.8 MB, free: 3.051 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002838/0.02654, allocations: 1.831 MB / 284.7 MB, free: 1.211 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009167/0.02746, allocations: 0.569 MB / 285.2 MB, free: 0.6406 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.2029/0.2303, allocations: 3.863 MB / 289.1 MB, free: 2.039 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003441/0.2338, allocations: 2.258 MB / 291.3 MB, free: 1.758 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004417/0.2382, allocations: 2.264 MB / 293.6 MB, free: 1.578 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003463/0.2417, allocations: 1.892 MB / 295.5 MB, free: 1.445 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009646/0.2426, allocations: 280.6 kB / 295.8 MB, free: 1.445 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002248/0.2449, allocations: 1.145 MB / 296.9 MB, free: 1.43 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001566/0.2464, allocations: 1.632 MB / 298.5 MB, free: 1.172 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001579/0.248, allocations: 0.9003 MB / 299.4 MB, free: 0.9961 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004979/0.253, allocations: 4.002 MB / 303.5 MB, free: 0 / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.568e-05/0.253, allocations: 160 / 303.5 MB, free: 0 / 282.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.253, allocations: 0.5312 kB / 303.5 MB, free: 0 / 282.7 MB Notification: Performance of Transformations before backend: time 0.000191/0.2532, allocations: 0.6875 kB / 303.5 MB, free: 0 / 282.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.006506/0.2597, allocations: 4.768 MB / 308.2 MB, free: 12.84 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.2598, allocations: 8.031 kB / 308.2 MB, free: 12.83 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003496/0.2633, allocations: 1.133 MB / 309.4 MB, free: 11.9 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002191/0.2654, allocations: 1.636 MB / 311 MB, free: 10.39 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.904e-05/0.2655, allocations: 203.3 kB / 311.2 MB, free: 10.22 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000304/0.2659, allocations: 258.8 kB / 311.4 MB, free: 10.01 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004126/0.27, allocations: 4.341 MB / 315.8 MB, free: 5.422 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.275e-05/0.2701, allocations: 45.97 kB / 315.8 MB, free: 5.395 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002421/0.2703, allocations: 127.7 kB / 316 MB, free: 5.309 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001256/0.2715, allocations: 1.514 MB / 317.5 MB, free: 3.812 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003639/0.2752, allocations: 2.158 MB / 319.6 MB, free: 1.848 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01822/0.2934, allocations: 27.65 MB / 347.3 MB, free: 6.16 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001676/0.2951, allocations: 0.8185 MB / 348.1 MB, free: 5.332 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000251/0.2953, allocations: 198.8 kB / 348.3 MB, free: 5.125 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003102/0.2984, allocations: 2.397 MB / 350.7 MB, free: 2.742 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.245e-05/0.2985, allocations: 42.56 kB / 350.7 MB, free: 2.691 MB / 330.7 MB Notification: Performance of pre-optimization done (n=91): time 2.886e-06/0.2985, allocations: 3.281 kB / 350.7 MB, free: 2.691 MB / 330.7 MB Notification: Performance of matching and sorting (n=100): time 0.005664/0.3041, allocations: 2.652 MB / 353.4 MB, free: 48 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.89e-05/0.3042, allocations: 143 kB / 353.5 MB, free: 15.88 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002345/0.3066, allocations: 3.149 MB / 356.7 MB, free: 13.29 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.545e-05/0.3066, allocations: 37.7 kB / 356.7 MB, free: 13.25 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001401/0.308, allocations: 3.028 MB / 359.7 MB, free: 10.38 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002733/0.3083, allocations: 456.2 kB / 360.2 MB, free: 9.953 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008412/0.3091, allocations: 1.139 MB / 361.3 MB, free: 8.934 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.814e-05/0.3092, allocations: 301.1 kB / 361.6 MB, free: 8.637 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009274/0.3101, allocations: 0.6757 MB / 362.3 MB, free: 7.953 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002707/0.3128, allocations: 4.574 MB / 366.9 MB, free: 1.422 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004187/0.317, allocations: 6.197 MB / 373.1 MB, free: 9.336 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.149e-05/0.317, allocations: 40 kB / 373.1 MB, free: 9.297 MB / 362.7 MB Notification: Performance of matching and sorting (n=766) (initialization): time 0.004059/0.3211, allocations: 4.029 MB / 377.1 MB, free: 5.254 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.351e-05/0.3212, allocations: 67.94 kB / 377.2 MB, free: 5.188 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001332/0.3213, allocations: 152.2 kB / 377.4 MB, free: 5.039 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000305/0.3216, allocations: 223.6 kB / 377.6 MB, free: 4.816 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00215/0.3238, allocations: 1.482 MB / 379.1 MB, free: 3.332 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009249/0.3247, allocations: 1.482 MB / 380.5 MB, free: 1.754 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00208/0.3268, allocations: 271.7 kB / 380.8 MB, free: 1.488 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002565/0.327, allocations: 328 kB / 381.1 MB, free: 1.168 MB / 362.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.001107/0.3281, allocations: 0.6183 MB / 381.7 MB, free: 0.5352 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002411/0.3284, allocations: 175.8 kB / 381.9 MB, free: 372 kB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006284/0.329, allocations: 0.4986 MB / 382.4 MB, free: 15.86 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.471e-05/0.329, allocations: 15.98 kB / 382.4 MB, free: 15.84 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.329, allocations: 4 kB / 382.4 MB, free: 15.84 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.715e-06/0.329, allocations: 3.984 kB / 382.4 MB, free: 15.83 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00336/0.3324, allocations: 2.755 MB / 385.2 MB, free: 12.99 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-05/0.3324, allocations: 12 kB / 385.2 MB, free: 12.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003457/0.3327, allocations: 143.8 kB / 385.3 MB, free: 12.84 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003702/0.3331, allocations: 349.8 kB / 385.7 MB, free: 12.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002969/0.3334, allocations: 221.4 kB / 385.9 MB, free: 12.27 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.917e-05/0.3334, allocations: 20 kB / 385.9 MB, free: 12.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000621/0.3341, allocations: 1.214 MB / 387.1 MB, free: 10.95 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.538e-06/0.3341, allocations: 4 kB / 387.1 MB, free: 10.94 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001655/0.3357, allocations: 1.275 MB / 388.4 MB, free: 9.598 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003385/0.3361, allocations: 19.98 kB / 388.4 MB, free: 9.578 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006712/0.3367, allocations: 27.94 kB / 388.5 MB, free: 9.551 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000105/0.3368, allocations: 59.83 kB / 388.5 MB, free: 9.492 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.651e-05/0.3369, allocations: 24 kB / 388.5 MB, free: 9.469 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001469/0.3384, allocations: 1.117 MB / 389.7 MB, free: 8.359 MB / 378.7 MB Notification: Performance of sort global known variables: time 2e-07/0.3384, allocations: 0 / 389.7 MB, free: 8.359 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004337/0.3427, allocations: 0.8787 MB / 390.5 MB, free: 7.48 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.0004326/0.3431, allocations: 148.2 kB / 390.7 MB, free: 7.324 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0037/0.3468, allocations: 2.374 MB / 393.1 MB, free: 4.973 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0002268/0.3471, allocations: 108.1 kB / 393.2 MB, free: 4.859 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005536/0.3476, allocations: 405.9 kB / 393.6 MB, free: 4.449 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003333/0.3509, allocations: 2.248 MB / 395.8 MB, free: 1.941 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01248/0.3634, allocations: 6.368 MB / 402.2 MB, free: 11.46 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009257/0.3643, allocations: 1.07 MB / 403.2 MB, free: 10.37 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001284/0.3656, allocations: 465.1 kB / 403.7 MB, free: 9.914 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005838/0.3662, allocations: 469.2 kB / 404.2 MB, free: 9.453 MB / 394.7 MB Notification: Performance of SimCode: time 1.483e-06/0.3662, allocations: 0 / 404.2 MB, free: 9.453 MB / 394.7 MB Notification: Performance of Templates: time 0.03742/0.4036, allocations: 20.32 MB / 424.5 MB, free: 5.121 MB / 410.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.486699723638594]