Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001021/0.001021, allocations: 80.31 kB / 22.21 MB, free: 2.285 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.001822/0.001822, allocations: 168.4 kB / 25.61 MB, free: 8.902 MB / 18.57 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.939/0.939, allocations: 177.1 MB / 206.1 MB, free: 4.488 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1352/0.1352, allocations: 32.81 MB / 295.4 MB, free: 15.38 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0.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.0.0_ModelicaTest.MultiBody.Sensors.Distance2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.623e-06/1.623e-06, allocations: 0 / 377.3 MB, free: 25.61 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.727e-05/1.89e-05, allocations: 2.312 kB / 377.3 MB, free: 25.6 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.006012/0.006031, allocations: 8.604 MB / 385.9 MB, free: 16.95 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.004025/0.01006, allocations: 3.463 MB / 389.3 MB, free: 13.48 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005846/0.01064, allocations: 55.75 kB / 389.4 MB, free: 13.43 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001802/0.01244, allocations: 2.032 MB / 391.4 MB, free: 11.39 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002159/0.0146, allocations: 1.676 MB / 393.1 MB, free: 9.703 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007773/0.01538, allocations: 0.6235 MB / 393.7 MB, free: 9.078 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002635/0.01801, allocations: 4.062 MB / 397.8 MB, free: 5.012 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001498/0.01951, allocations: 2.327 MB / 400.1 MB, free: 2.629 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001849/0.02136, allocations: 2.273 MB / 402.4 MB, free: 360 kB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001504/0.02286, allocations: 1.796 MB / 404.2 MB, free: 14.55 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002526/0.02312, allocations: 248 kB / 404.4 MB, free: 14.31 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001232/0.02435, allocations: 1.072 MB / 405.5 MB, free: 13.23 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001001/0.02535, allocations: 1.613 MB / 407.1 MB, free: 11.62 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000723/0.02607, allocations: 0.9695 MB / 408.1 MB, free: 10.64 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002939/0.02901, allocations: 3.881 MB / 411.9 MB, free: 6.746 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.02902, allocations: 4 kB / 412 MB, free: 6.742 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.02902, allocations: 0 / 412 MB, free: 6.742 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.513e-05/0.02904, allocations: 4 kB / 412 MB, free: 6.738 MB / 330.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.00392/0.03296, allocations: 4.092 MB / 416 MB, free: 2.582 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.344e-05/0.033, allocations: 11.98 kB / 416.1 MB, free: 2.57 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006537/0.03953, allocations: 1.825 MB / 417.9 MB, free: 0.7422 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001895/0.04143, allocations: 1.629 MB / 419.5 MB, free: 15.07 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001154/0.04154, allocations: 176.8 kB / 419.7 MB, free: 14.89 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000356/0.0419, allocations: 236.2 kB / 419.9 MB, free: 14.66 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005055/0.04695, allocations: 4.503 MB / 424.4 MB, free: 9.273 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.384e-05/0.04703, allocations: 35.7 kB / 424.5 MB, free: 9.238 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002604/0.04729, allocations: 119.8 kB / 424.6 MB, free: 9.121 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001536/0.04883, allocations: 1.383 MB / 426 MB, free: 7.738 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00355/0.05237, allocations: 1.898 MB / 427.9 MB, free: 5.82 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02446/0.07683, allocations: 36.44 MB / 464.3 MB, free: 124 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002166/0.079, allocations: 0.754 MB / 465 MB, free: 15.32 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003409/0.07934, allocations: 239.1 kB / 465.3 MB, free: 15.07 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003172/0.08251, allocations: 2.372 MB / 467.7 MB, free: 12.67 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.215e-05/0.08254, allocations: 45.56 kB / 467.7 MB, free: 12.61 MB / 394.7 MB Notification: Performance of pre-optimization done (n=82): time 3.136e-06/0.08255, allocations: 0 / 467.7 MB, free: 12.61 MB / 394.7 MB Notification: Performance of matching and sorting (n=91): time 0.007752/0.0903, allocations: 2.701 MB / 470.4 MB, free: 9.871 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.051e-05/0.09037, allocations: 191.7 kB / 470.6 MB, free: 9.641 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003191/0.09356, allocations: 3.336 MB / 473.9 MB, free: 6.281 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.736e-05/0.09361, allocations: 37.7 kB / 474 MB, free: 6.238 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002445/0.09605, allocations: 3.083 MB / 477 MB, free: 3.125 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000458/0.09651, allocations: 445 kB / 477.5 MB, free: 2.688 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001222/0.09773, allocations: 1.235 MB / 478.7 MB, free: 1.441 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001007/0.09783, allocations: 476.8 kB / 479.2 MB, free: 0.9727 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008335/0.09867, allocations: 458.6 kB / 479.6 MB, free: 0.5195 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003648/0.1023, allocations: 6.041 MB / 485.7 MB, free: 7.887 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004128/0.1064, allocations: 7.062 MB / 492.7 MB, free: 14.28 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.795e-05/0.1065, allocations: 36 kB / 492.8 MB, free: 14.24 MB / 426.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.004345/0.1108, allocations: 4.399 MB / 497.2 MB, free: 9.84 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.912e-05/0.1109, allocations: 64 kB / 497.2 MB, free: 9.777 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.254e-05/0.111, allocations: 132 kB / 497.4 MB, free: 9.648 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002586/0.1112, allocations: 208.3 kB / 497.6 MB, free: 9.441 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001749/0.113, allocations: 1.24 MB / 498.8 MB, free: 8.199 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008545/0.1138, allocations: 1.978 MB / 0.489 GB, free: 6.109 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001599/0.1154, allocations: 255.8 kB / 0.4893 GB, free: 5.859 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002268/0.1156, allocations: 316 kB / 0.4896 GB, free: 5.551 MB / 426.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.0006978/0.1163, allocations: 0.6184 MB / 0.4902 GB, free: 4.918 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002727/0.1166, allocations: 306.1 kB / 0.4905 GB, free: 4.617 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006457/0.1173, allocations: 487.4 kB / 0.4909 GB, free: 4.125 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.46e-05/0.1173, allocations: 15.98 kB / 0.491 GB, free: 4.109 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.1173, allocations: 7.922 kB / 0.491 GB, free: 4.102 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.1173, allocations: 3.938 kB / 0.491 GB, free: 4.098 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003543/0.1208, allocations: 3.017 MB / 0.4939 GB, free: 0.9727 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.1208, allocations: 4 kB / 0.4939 GB, free: 0.9688 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002883/0.1211, allocations: 115.8 kB / 0.494 GB, free: 0.8555 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001259/0.1212, allocations: 35.66 kB / 0.4941 GB, free: 0.8164 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.139e-05/0.1213, allocations: 20.34 kB / 0.4941 GB, free: 0.7969 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1507/0.2719, allocations: 1.732 MB / 0.4958 GB, free: 119.8 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.678e-06/0.2719, allocations: 7.438 kB / 0.4958 GB, free: 119.8 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001463/0.2734, allocations: 1.438 MB / 0.4972 GB, free: 119.1 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003984/0.2738, allocations: 265.9 kB / 0.4974 GB, free: 119.1 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001844/0.274, allocations: 18.53 kB / 0.4975 GB, free: 119.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004774/0.2745, allocations: 22.17 kB / 0.4975 GB, free: 119.1 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.833e-05/0.2745, allocations: 55.86 kB / 0.4975 GB, free: 119.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.601e-05/0.2746, allocations: 23.94 kB / 0.4976 GB, free: 119.1 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001169/0.2757, allocations: 1.318 MB / 0.4988 GB, free: 118.9 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.2757, allocations: 0 / 0.4988 GB, free: 118.9 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002636/0.2784, allocations: 0.7723 MB / 0.4996 GB, free: 118.9 MB / 426.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.0002608/0.2786, allocations: 165.3 kB / 0.4998 GB, free: 118.8 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002503/0.2811, allocations: 2.32 MB / 0.502 GB, free: 118.6 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.2812, allocations: 0 / 0.502 GB, free: 118.6 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000262/0.2814, allocations: 409.2 kB / 0.5024 GB, free: 118.4 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000944/0.2824, allocations: 328.7 kB / 0.5027 GB, free: 118.4 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005845/0.2882, allocations: 5.665 MB / 0.5083 GB, free: 116 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007449/0.2889, allocations: 0.9696 MB / 0.5092 GB, free: 115.9 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.000865/0.2898, allocations: 428.9 kB / 0.5096 GB, free: 115.8 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004423/0.2903, allocations: 492.7 kB / 0.5101 GB, free: 115.7 MB / 426.7 MB Notification: Performance of SimCode: time 1.413e-06/0.2903, allocations: 0 / 0.5101 GB, free: 115.7 MB / 426.7 MB Notification: Performance of Templates: time 0.02902/0.3193, allocations: 20.99 MB / 0.5306 GB, free: 97.45 MB / 426.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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: 4.2165018590167165]