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.0008332/0.0008332, allocations: 84.44 kB / 20.69 MB, free: 3.871 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.000824/0.000824, allocations: 173.9 kB / 23.96 MB, free: 0.5977 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.8691/0.8691, allocations: 158.6 MB / 185.7 MB, free: 3.023 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.1313/0.1313, allocations: 32.37 MB / 270.3 MB, free: 14.98 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 6.61e-07/6.61e-07, allocations: 0 / 408.1 MB, free: 13.03 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.551e-05/1.617e-05, allocations: 5.656 kB / 408.1 MB, free: 13.03 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.006482/0.006498, allocations: 8.849 MB / 416.9 MB, free: 4.137 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.004463/0.01096, allocations: 3.524 MB / 420.5 MB, free: 0.5977 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005962/0.01156, allocations: 59.75 kB / 420.5 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001682/0.01324, allocations: 2.005 MB / 422.5 MB, free: 14.53 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002231/0.01547, allocations: 1.855 MB / 424.4 MB, free: 12.66 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006891/0.01616, allocations: 0.6119 MB / 425 MB, free: 12.05 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.002657/0.01882, allocations: 4.105 MB / 429.1 MB, free: 7.934 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001749/0.02057, allocations: 2.416 MB / 431.5 MB, free: 5.465 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001619/0.02218, allocations: 1.96 MB / 433.5 MB, free: 3.5 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001604/0.02379, allocations: 1.995 MB / 435.5 MB, free: 1.5 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003312/0.02412, allocations: 276 kB / 435.7 MB, free: 1.23 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001315/0.02544, allocations: 1.112 MB / 436.9 MB, free: 120 kB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.173/0.1985, allocations: 1.809 MB / 438.7 MB, free: 21.99 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001274/0.1998, allocations: 1.097 MB / 439.8 MB, free: 21.99 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006201/0.206, allocations: 6.495 MB / 446.3 MB, free: 21.6 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.206, allocations: 1.062 kB / 446.3 MB, free: 21.6 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.206, allocations: 0 / 446.3 MB, free: 21.6 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.299e-05/0.206, allocations: 0 / 446.3 MB, free: 21.6 MB / 362.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.005254/0.2113, allocations: 4.253 MB / 450.5 MB, free: 19.82 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.799e-05/0.2113, allocations: 10.16 kB / 450.5 MB, free: 19.82 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007546/0.2189, allocations: 2.518 MB / 453 MB, free: 19.52 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003716/0.2226, allocations: 2.365 MB / 455.4 MB, free: 18.53 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001134/0.2227, allocations: 194.6 kB / 455.6 MB, free: 18.47 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003762/0.2231, allocations: 260.5 kB / 455.9 MB, free: 18.41 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008076/0.2311, allocations: 8.812 MB / 464.7 MB, free: 13.67 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.668e-05/0.2312, allocations: 39.61 kB / 464.7 MB, free: 13.66 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002391/0.2314, allocations: 128.5 kB / 464.8 MB, free: 13.61 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001455/0.2329, allocations: 1.838 MB / 466.7 MB, free: 12.93 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006799/0.2397, allocations: 7.446 MB / 474.1 MB, free: 7.164 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02295/0.2626, allocations: 32.13 MB / 0.4944 GB, free: 6.48 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002826/0.2655, allocations: 2.102 MB / 0.4964 GB, free: 4.355 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009404/0.2664, allocations: 1.102 MB / 0.4975 GB, free: 3.246 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001619/0.2666, allocations: 95.98 kB / 0.4976 GB, free: 3.156 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.685e-05/0.2666, allocations: 43.06 kB / 0.4976 GB, free: 3.102 MB / 394.7 MB Notification: Performance of pre-optimization done (n=119): time 3.517e-06/0.2666, allocations: 0 / 0.4976 GB, free: 3.102 MB / 394.7 MB Notification: Performance of matching and sorting (n=133): time 0.01441/0.281, allocations: 10.2 MB / 0.5076 GB, free: 8.875 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.738e-05/0.2811, allocations: 208.1 kB / 0.5078 GB, free: 8.633 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003483/0.2846, allocations: 3.822 MB / 0.5115 GB, free: 4.801 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.225e-05/0.2846, allocations: 41.7 kB / 0.5116 GB, free: 4.754 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00141/0.286, allocations: 3.07 MB / 0.5146 GB, free: 1.703 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003616/0.2864, allocations: 0.5612 MB / 0.5151 GB, free: 1.148 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001044/0.2874, allocations: 1.198 MB / 0.5163 GB, free: 15.95 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.508e-05/0.2875, allocations: 305.1 kB / 0.5166 GB, free: 15.65 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001671/0.2892, allocations: 1.803 MB / 0.5183 GB, free: 13.84 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003416/0.2926, allocations: 5.687 MB / 0.5239 GB, free: 6.289 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00588/0.2985, allocations: 8.043 MB / 0.5318 GB, free: 12.46 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.644e-05/0.2985, allocations: 40 kB / 0.5318 GB, free: 12.42 MB / 442.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.007567/0.3061, allocations: 7.561 MB / 0.5392 GB, free: 4.848 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.951e-05/0.3061, allocations: 66.5 kB / 0.5392 GB, free: 4.785 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.368e-05/0.3062, allocations: 136.7 kB / 0.5394 GB, free: 4.652 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008957/0.3071, allocations: 0.664 MB / 0.54 GB, free: 3.988 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001993/0.3091, allocations: 1.357 MB / 0.5413 GB, free: 2.629 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00314/0.3122, allocations: 3.956 MB / 0.5452 GB, free: 14.57 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002299/0.3145, allocations: 355.4 kB / 0.5455 GB, free: 14.23 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002814/0.3148, allocations: 372 kB / 0.5459 GB, free: 13.86 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 619 * 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 (735): * Single equations (assignments): 731 * 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 {(2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002269/0.3171, allocations: 1.945 MB / 0.5478 GB, free: 11.91 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002923/0.3174, allocations: 305.9 kB / 0.5481 GB, free: 11.61 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002197/0.3196, allocations: 2.035 MB / 0.5501 GB, free: 9.547 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.405e-05/0.3196, allocations: 12 kB / 0.5501 GB, free: 9.535 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.3196, allocations: 7.938 kB / 0.5501 GB, free: 9.527 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.027e-06/0.3196, allocations: 7.984 kB / 0.5501 GB, free: 9.52 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005858/0.3255, allocations: 4.97 MB / 0.555 GB, free: 4.516 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.81e-06/0.3255, allocations: 4 kB / 0.555 GB, free: 4.512 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004311/0.3259, allocations: 179.8 kB / 0.5551 GB, free: 4.336 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000709/0.3266, allocations: 488.2 kB / 0.5556 GB, free: 3.855 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.552e-05/0.3267, allocations: 27.98 kB / 0.5556 GB, free: 3.828 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002634/0.3293, allocations: 3.323 MB / 0.5589 GB, free: 408 kB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/0.3293, allocations: 4 kB / 0.5589 GB, free: 404 kB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00351/0.3328, allocations: 3.961 MB / 0.5627 GB, free: 12.4 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006361/0.3334, allocations: 481.6 kB / 0.5632 GB, free: 11.93 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001673/0.3336, allocations: 24.12 kB / 0.5632 GB, free: 11.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006466/0.3343, allocations: 103.8 kB / 0.5633 GB, free: 11.8 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000116/0.3344, allocations: 68.53 kB / 0.5634 GB, free: 11.73 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.562e-05/0.3344, allocations: 39.98 kB / 0.5634 GB, free: 11.7 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002228/0.3367, allocations: 2.214 MB / 0.5656 GB, free: 9.488 MB / 474.7 MB Notification: Performance of sort global known variables: time 4e-08/0.3367, allocations: 0 / 0.5656 GB, free: 9.488 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003078/0.3397, allocations: 0.9625 MB / 0.5665 GB, free: 8.527 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (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.0003219/0.3401, allocations: 177.5 kB / 0.5667 GB, free: 8.348 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.004297/0.3443, allocations: 4.143 MB / 0.5707 GB, free: 4.223 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.3444, allocations: 1.375 kB / 0.5707 GB, free: 4.223 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008754/0.3452, allocations: 1.004 MB / 0.5717 GB, free: 3.207 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001085/0.3463, allocations: 312.4 kB / 0.572 GB, free: 2.906 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008797/0.3551, allocations: 8.326 MB / 0.5802 GB, free: 10.52 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001924/0.357, allocations: 2.399 MB / 0.5825 GB, free: 8.086 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004664/0.3575, allocations: 256.5 kB / 0.5827 GB, free: 7.836 MB / 490.7 MB Notification: Performance of SimCode: time 8.61e-07/0.3575, allocations: 0 / 0.5827 GB, free: 7.836 MB / 490.7 MB Notification: Performance of Templates: time 0.2422/0.5997, allocations: 68.57 MB / 0.6497 GB, free: 161 MB / 0.5105 GB " [Timeout remaining time 659] 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.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.669477346353233]