Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_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.0007649/0.0007649, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001061/0.001825, allocations: 449.7 kB / 10.37 MB, free: 328 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.0007015/0.0007015, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008996/0.001601, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.8974/0.8974, allocations: 177.2 MB / 189.6 MB, free: 5.32 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09296/0.9904, allocations: 53.64 MB / 243.2 MB, free: 15.6 MB / 250.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.2504/0.2504, allocations: 34.25 MB / 278.2 MB, free: 15.28 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02003/0.2705, allocations: 13.09 MB / 291.3 MB, free: 7.367 MB / 282.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.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.372e-06/1.372e-06, allocations: 0 / 292.6 MB, free: 6.309 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.608e-06/1.098e-05, allocations: 4.203 kB / 292.6 MB, free: 6.305 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.006467/0.006478, allocations: 8.729 MB / 301.3 MB, free: 13.54 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00541/0.01189, allocations: 3.629 MB / 305 MB, free: 9.898 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007264/0.01261, allocations: 55.75 kB / 305 MB, free: 9.844 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001795/0.01441, allocations: 1.958 MB / 307 MB, free: 7.879 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002118/0.01653, allocations: 1.645 MB / 308.6 MB, free: 6.227 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000725/0.01725, allocations: 0.5768 MB / 309.2 MB, free: 5.648 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002577/0.01983, allocations: 3.796 MB / 313 MB, free: 1.844 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001474/0.0213, allocations: 2.109 MB / 315.1 MB, free: 15.66 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003159/0.02446, allocations: 2.17 MB / 317.3 MB, free: 13.49 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002809/0.02727, allocations: 1.703 MB / 319 MB, free: 11.78 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006023/0.02787, allocations: 244 kB / 319.2 MB, free: 11.54 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001357/0.02923, allocations: 1.108 MB / 320.3 MB, free: 10.43 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009077/0.03014, allocations: 1.457 MB / 321.8 MB, free: 8.973 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008298/0.03097, allocations: 0.7944 MB / 322.6 MB, free: 8.176 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002914/0.03388, allocations: 3.573 MB / 326.2 MB, free: 4.59 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.814e-05/0.0339, allocations: 0 / 326.2 MB, free: 4.59 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.0339, allocations: 0 / 326.2 MB, free: 4.59 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.8e-05/0.03396, allocations: 0 / 326.2 MB, free: 4.59 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: 1211 * Number of variables: 1211 Notification: Performance of Generate backend data structure: time 0.004082/0.03804, allocations: 4.342 MB / 330.5 MB, free: 184 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.968e-05/0.03807, allocations: 8.031 kB / 330.5 MB, free: 176 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002737/0.04081, allocations: 1.007 MB / 331.5 MB, free: 15.16 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001665/0.04247, allocations: 1.524 MB / 333 MB, free: 13.61 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.34e-05/0.04256, allocations: 180.8 kB / 333.2 MB, free: 13.43 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000251/0.04281, allocations: 232.2 kB / 333.4 MB, free: 13.2 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003396/0.0462, allocations: 3.996 MB / 337.4 MB, free: 8.539 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.267e-05/0.04627, allocations: 39.62 kB / 337.5 MB, free: 8.5 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000179/0.04645, allocations: 119.9 kB / 337.6 MB, free: 8.383 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001074/0.04752, allocations: 1.391 MB / 339 MB, free: 6.992 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002541/0.05006, allocations: 1.928 MB / 340.9 MB, free: 5.035 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01687/0.06693, allocations: 25.88 MB / 366.8 MB, free: 10.13 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001547/0.06848, allocations: 0.7886 MB / 367.6 MB, free: 9.305 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002123/0.06869, allocations: 178.8 kB / 367.7 MB, free: 9.117 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002793/0.07149, allocations: 2.231 MB / 370 MB, free: 6.855 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.809e-05/0.07151, allocations: 42.78 kB / 370 MB, free: 6.805 MB / 362.7 MB Notification: Performance of pre-optimization done (n=82): time 3.216e-06/0.07152, allocations: 0 / 370 MB, free: 6.805 MB / 362.7 MB Notification: Performance of matching and sorting (n=91): time 0.005318/0.07684, allocations: 2.455 MB / 372.5 MB, free: 4.309 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.713e-05/0.07688, allocations: 144.4 kB / 372.6 MB, free: 4.137 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002105/0.07899, allocations: 2.978 MB / 375.6 MB, free: 1.141 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.495e-05/0.07903, allocations: 37.7 kB / 375.6 MB, free: 1.098 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001099/0.08013, allocations: 2.739 MB / 378.4 MB, free: 14.32 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002596/0.08039, allocations: 421 kB / 378.8 MB, free: 13.91 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007627/0.08116, allocations: 1.068 MB / 379.8 MB, free: 12.83 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.472e-05/0.08122, allocations: 305.1 kB / 380.1 MB, free: 12.53 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008111/0.08203, allocations: 0.6197 MB / 380.8 MB, free: 11.91 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002421/0.08445, allocations: 4.266 MB / 385 MB, free: 5.746 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003785/0.08824, allocations: 5.328 MB / 390.4 MB, free: 14.55 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.278e-05/0.08831, allocations: 36 kB / 390.4 MB, free: 14.52 MB / 394.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.003941/0.09225, allocations: 3.765 MB / 394.2 MB, free: 10.74 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.268e-05/0.0923, allocations: 64 kB / 394.2 MB, free: 10.68 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.178e-05/0.09238, allocations: 132.1 kB / 394.4 MB, free: 10.55 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002947/0.09268, allocations: 211.6 kB / 394.6 MB, free: 10.34 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001946/0.09463, allocations: 1.365 MB / 395.9 MB, free: 8.973 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008395/0.09547, allocations: 1.451 MB / 397.4 MB, free: 7.418 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001936/0.0974, allocations: 263.6 kB / 397.6 MB, free: 7.16 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002321/0.09763, allocations: 308 kB / 397.9 MB, free: 6.859 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 604 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.twoHeadedArrow,distance2.arrow.headAtOrigin,distance1.arrow.twoHeadedArrow,distance1.arrow.headAtOrigin,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 (689): * Single equations (assignments): 685 * 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.0007842/0.09842, allocations: 0.5912 MB / 398.5 MB, free: 6.254 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002489/0.09867, allocations: 163.8 kB / 398.7 MB, free: 6.094 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004824/0.09915, allocations: 439.5 kB / 399.1 MB, free: 5.652 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.624e-05/0.09917, allocations: 19.97 kB / 399.1 MB, free: 5.633 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.586e-06/0.09917, allocations: 0 / 399.1 MB, free: 5.633 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.09918, allocations: 4 kB / 399.1 MB, free: 5.629 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002657/0.1018, allocations: 2.503 MB / 401.6 MB, free: 3.035 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.1018, allocations: 4 kB / 401.6 MB, free: 3.031 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003065/0.1021, allocations: 127.8 kB / 401.8 MB, free: 2.906 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002588/0.1024, allocations: 258 kB / 402 MB, free: 2.652 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002756/0.1027, allocations: 221.2 kB / 402.2 MB, free: 2.43 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.116e-05/0.1027, allocations: 12 kB / 402.2 MB, free: 2.418 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005629/0.1033, allocations: 1.217 MB / 403.5 MB, free: 1.102 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.1033, allocations: 4 kB / 403.5 MB, free: 1.098 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008513/0.1041, allocations: 1.208 MB / 404.7 MB, free: 15.82 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001613/0.1043, allocations: 19.94 kB / 404.7 MB, free: 15.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004116/0.1047, allocations: 19.98 kB / 404.7 MB, free: 15.78 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.234e-05/0.1048, allocations: 55.8 kB / 404.8 MB, free: 15.73 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.737e-05/0.1048, allocations: 31.97 kB / 404.8 MB, free: 15.7 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0007875/0.1056, allocations: 1.049 MB / 405.9 MB, free: 14.65 MB / 410.7 MB Notification: Performance of sort global known variables: time 1e-07/0.1056, allocations: 4.062 kB / 405.9 MB, free: 14.64 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002341/0.1079, allocations: 0.7772 MB / 406.6 MB, free: 13.87 MB / 410.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 (69): * Single equations (assignments): 65 * 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.0002558/0.1082, allocations: 144.1 kB / 406.8 MB, free: 13.72 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002416/0.1106, allocations: 2.118 MB / 408.9 MB, free: 11.6 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001505/0.1108, allocations: 96.16 kB / 409 MB, free: 11.5 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003009/0.1111, allocations: 319.4 kB / 409.3 MB, free: 11.17 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001292/0.1124, allocations: 0.6547 MB / 410 MB, free: 10.52 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007822/0.1202, allocations: 5.734 MB / 415.7 MB, free: 4.676 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007187/0.1209, allocations: 0.9633 MB / 416.6 MB, free: 3.695 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0009593/0.1219, allocations: 439.1 kB / 417.1 MB, free: 3.262 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005119/0.1224, allocations: 453.2 kB / 417.5 MB, free: 2.816 MB / 410.7 MB Notification: Performance of SimCode: time 1.383e-06/0.1224, allocations: 0 / 417.5 MB, free: 2.816 MB / 410.7 MB Notification: Performance of Templates: time 0.1583/0.2806, allocations: 20.94 MB / 438.5 MB, free: 121.9 MB / 426.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/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: 3.565823179669678]