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.001496/0.001496, allocations: 88.23 kB / 20.2 MB, free: 4.223 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.001621/0.001621, allocations: 157.7 kB / 23.51 MB, free: 0.918 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 1.449/1.449, allocations: 158.6 MB / 185.3 MB, free: 2.879 MB / 170.7 MB " [Timeout remaining time 178] 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.2481/0.2481, allocations: 32.38 MB / 270 MB, free: 14.77 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.204e-06/2.204e-06, allocations: 4 kB / 346.9 MB, free: 9.805 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.296e-05/2.517e-05, allocations: 2.312 kB / 346.9 MB, free: 9.801 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.00743/0.007455, allocations: 8.841 MB / 355.8 MB, free: 0.918 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.008802/0.01626, allocations: 3.528 MB / 359.3 MB, free: 13.38 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001576/0.01783, allocations: 59.75 kB / 359.4 MB, free: 13.32 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005016/0.02285, allocations: 2.036 MB / 361.4 MB, free: 11.28 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005508/0.02836, allocations: 1.847 MB / 363.2 MB, free: 9.422 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001736/0.03009, allocations: 0.6313 MB / 363.9 MB, free: 8.789 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.007387/0.03748, allocations: 4.107 MB / 368 MB, free: 4.676 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004427/0.04191, allocations: 2.479 MB / 370.5 MB, free: 2.137 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003986/0.04589, allocations: 1.964 MB / 372.4 MB, free: 172 kB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003877/0.04977, allocations: 1.995 MB / 374.4 MB, free: 14.17 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006849/0.05046, allocations: 280 kB / 374.7 MB, free: 13.89 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002517/0.05297, allocations: 1.112 MB / 375.8 MB, free: 12.78 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002155/0.05513, allocations: 1.807 MB / 377.6 MB, free: 10.97 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0018/0.05693, allocations: 1.098 MB / 378.7 MB, free: 9.867 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009783/0.06671, allocations: 6.53 MB / 385.2 MB, free: 3.316 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.032e-06/0.06672, allocations: 0 / 385.2 MB, free: 3.316 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.06672, allocations: 0 / 385.2 MB, free: 3.316 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002061/0.06692, allocations: 0 / 385.2 MB, free: 3.316 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.01129/0.07822, allocations: 4.276 MB / 389.5 MB, free: 14.98 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.135e-05/0.07827, allocations: 8.031 kB / 389.5 MB, free: 14.98 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01787/0.09613, allocations: 2.967 MB / 392.5 MB, free: 12 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006807/0.1029, allocations: 2.38 MB / 394.9 MB, free: 9.586 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002099/0.1032, allocations: 193.3 kB / 395.1 MB, free: 9.395 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007043/0.1039, allocations: 268.1 kB / 395.3 MB, free: 9.133 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01774/0.1216, allocations: 8.842 MB / 404.2 MB, free: 15.63 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001508/0.1217, allocations: 39.7 kB / 404.2 MB, free: 15.59 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004436/0.1222, allocations: 123.9 kB / 404.3 MB, free: 15.47 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003441/0.1256, allocations: 1.84 MB / 406.2 MB, free: 13.63 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01555/0.1412, allocations: 7.471 MB / 413.6 MB, free: 6.145 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05028/0.1915, allocations: 32.26 MB / 445.9 MB, free: 4.859 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005584/0.197, allocations: 1.985 MB / 447.9 MB, free: 2.844 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001935/0.199, allocations: 1.11 MB / 449 MB, free: 1.723 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003852/0.1994, allocations: 112.3 kB / 449.1 MB, free: 1.613 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.667e-05/0.1994, allocations: 47.05 kB / 449.1 MB, free: 1.559 MB / 378.7 MB Notification: Performance of pre-optimization done (n=119): time 3.928e-06/0.1994, allocations: 4 kB / 449.1 MB, free: 1.555 MB / 378.7 MB Notification: Performance of matching and sorting (n=133): time 0.1937/0.3931, allocations: 11.59 MB / 460.7 MB, free: 102.1 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.882e-05/0.3932, allocations: 192.2 kB / 460.9 MB, free: 101.8 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003659/0.3968, allocations: 3.821 MB / 464.7 MB, free: 100.5 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001247/0.3969, allocations: 41.3 kB / 464.8 MB, free: 100.4 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001232/0.3982, allocations: 3.068 MB / 467.9 MB, free: 98.22 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000417/0.3986, allocations: 0.5614 MB / 468.4 MB, free: 97.82 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001173/0.3998, allocations: 1.187 MB / 469.6 MB, free: 97.16 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.157e-05/0.3998, allocations: 301.1 kB / 469.9 MB, free: 96.86 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002139/0.4019, allocations: 1.874 MB / 471.8 MB, free: 95.17 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003357/0.4053, allocations: 5.742 MB / 477.5 MB, free: 87.52 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006201/0.4115, allocations: 8.177 MB / 485.7 MB, free: 77.49 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.622e-05/0.4116, allocations: 39.88 kB / 485.7 MB, free: 77.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=768) (initialization): time 0.01043/0.422, allocations: 8.011 MB / 493.7 MB, free: 69.44 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.74e-05/0.4221, allocations: 67.98 kB / 493.8 MB, free: 69.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001085/0.4222, allocations: 136.9 kB / 493.9 MB, free: 69.24 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001555/0.4237, allocations: 0.6994 MB / 494.6 MB, free: 68.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003342/0.4271, allocations: 1.365 MB / 496 MB, free: 67.17 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003706/0.4308, allocations: 3.966 MB / 500 MB, free: 63.11 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004106/0.4349, allocations: 367.5 kB / 0.4886 GB, free: 62.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005181/0.4354, allocations: 368 kB / 0.489 GB, free: 62.39 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 617 * 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 (733): * Single equations (assignments): 729 * 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.002321/0.4377, allocations: 1.941 MB / 0.4908 GB, free: 60.44 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006431/0.4384, allocations: 334 kB / 0.4912 GB, free: 60.11 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003338/0.4417, allocations: 2.199 MB / 0.4933 GB, free: 57.89 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.259e-05/0.4417, allocations: 12 kB / 0.4933 GB, free: 57.88 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.363e-05/0.4417, allocations: 7.703 kB / 0.4933 GB, free: 57.87 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.068e-05/0.4418, allocations: 7.984 kB / 0.4933 GB, free: 57.86 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007845/0.4496, allocations: 5.148 MB / 0.4984 GB, free: 52.69 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.29e-05/0.4496, allocations: 4 kB / 0.4984 GB, free: 52.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009173/0.4505, allocations: 203.9 kB / 0.4986 GB, free: 52.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001346/0.4519, allocations: 0.5079 MB / 0.4991 GB, free: 51.97 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.571e-05/0.452, allocations: 31.92 kB / 0.4991 GB, free: 51.94 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003123/0.4551, allocations: 3.333 MB / 0.5023 GB, free: 48.51 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.4551, allocations: 4.031 kB / 0.5023 GB, free: 48.51 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005279/0.4604, allocations: 4.28 MB / 0.5065 GB, free: 44.18 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001241/0.4616, allocations: 493.7 kB / 0.507 GB, free: 43.7 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003327/0.4619, allocations: 19.75 kB / 0.507 GB, free: 43.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001281/0.4632, allocations: 119.8 kB / 0.5071 GB, free: 43.57 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000212/0.4634, allocations: 80.39 kB / 0.5072 GB, free: 43.48 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.278e-05/0.4635, allocations: 39.98 kB / 0.5072 GB, free: 43.45 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002511/0.466, allocations: 2.21 MB / 0.5094 GB, free: 41.24 MB / 378.7 MB Notification: Performance of sort global known variables: time 8e-08/0.466, allocations: 0 / 0.5094 GB, free: 41.24 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004579/0.4706, allocations: 0.9647 MB / 0.5103 GB, free: 40.28 MB / 378.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.0004029/0.471, allocations: 178.7 kB / 0.5105 GB, free: 40.1 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005816/0.4768, allocations: 4.277 MB / 0.5147 GB, free: 35.84 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.131e-06/0.4769, allocations: 448 / 0.5147 GB, free: 35.84 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001273/0.4781, allocations: 1.087 MB / 0.5158 GB, free: 34.75 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002077/0.4802, allocations: 330.3 kB / 0.5161 GB, free: 34.43 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01206/0.4923, allocations: 8.139 MB / 0.524 GB, free: 26.22 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004035/0.4963, allocations: 2.417 MB / 0.5264 GB, free: 23.79 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.006205/0.5025, allocations: 1.784 MB / 0.5281 GB, free: 22 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001045/0.5035, allocations: 208.5 kB / 0.5283 GB, free: 21.79 MB / 378.7 MB Notification: Performance of SimCode: time 1.332e-06/0.5036, allocations: 0 / 0.5283 GB, free: 21.79 MB / 378.7 MB Notification: Performance of Templates: time 0.07304/0.5766, allocations: 24.95 MB / 0.5527 GB, free: 13.01 MB / 394.7 MB " [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: 6.5671353589277714]