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.0009141/0.0009141, allocations: 87.62 kB / 21.44 MB, free: 3.129 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.004591/0.004591, allocations: 158.6 kB / 24.7 MB, free: 8.898 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.8669/0.8669, allocations: 177.1 MB / 205 MB, free: 5.727 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.2287/0.2287, allocations: 32.8 MB / 294.2 MB, free: 1.18 MB / 266.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.112e-06/1.112e-06, allocations: 0 / 440.8 MB, free: 3.742 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.115e-05/2.226e-05, allocations: 5.094 kB / 440.8 MB, free: 3.738 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.2126/0.2126, allocations: 8.025 MB / 448.9 MB, free: 42.47 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.004029/0.2166, allocations: 3.388 MB / 452.3 MB, free: 40.61 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006322/0.2173, allocations: 59.31 kB / 452.3 MB, free: 40.59 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001673/0.2189, allocations: 1.964 MB / 454.3 MB, free: 39.77 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001824/0.2208, allocations: 1.658 MB / 455.9 MB, free: 39.02 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000647/0.2214, allocations: 0.6278 MB / 456.6 MB, free: 38.76 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.002238/0.2237, allocations: 4.048 MB / 460.6 MB, free: 37.23 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00135/0.225, allocations: 2.249 MB / 462.9 MB, free: 36.22 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001141/0.2261, allocations: 1.778 MB / 464.6 MB, free: 35.46 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00118/0.2273, allocations: 1.785 MB / 466.4 MB, free: 34.99 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002234/0.2275, allocations: 247.2 kB / 466.7 MB, free: 34.99 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001195/0.2287, allocations: 1.072 MB / 467.7 MB, free: 34.79 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000939/0.2297, allocations: 1.605 MB / 469.3 MB, free: 34.12 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008367/0.2305, allocations: 0.9771 MB / 470.3 MB, free: 33.64 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003773/0.2343, allocations: 5.768 MB / 476.1 MB, free: 31.66 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.2343, allocations: 4 kB / 476.1 MB, free: 31.66 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.934e-06/0.2343, allocations: 0 / 476.1 MB, free: 31.66 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.588e-05/0.2343, allocations: 0 / 476.1 MB, free: 31.66 MB / 410.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.00389/0.2382, allocations: 3.868 MB / 480 MB, free: 29.44 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.062e-05/0.2383, allocations: 13.03 kB / 480 MB, free: 29.44 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008056/0.2463, allocations: 2.42 MB / 482.4 MB, free: 29.1 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004565/0.2509, allocations: 2.187 MB / 484.6 MB, free: 28.03 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001019/0.251, allocations: 176.2 kB / 484.7 MB, free: 27.95 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000363/0.2514, allocations: 241.8 kB / 485 MB, free: 27.86 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008244/0.2596, allocations: 7.845 MB / 492.8 MB, free: 23.93 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.446e-05/0.2597, allocations: 44.14 kB / 492.9 MB, free: 23.9 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002175/0.2599, allocations: 117.5 kB / 493 MB, free: 23.82 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00173/0.2616, allocations: 1.584 MB / 494.6 MB, free: 23.54 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008174/0.2698, allocations: 6.568 MB / 0.4894 GB, free: 21.39 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01929/0.2891, allocations: 29.94 MB / 0.5186 GB, free: 8.625 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002757/0.2918, allocations: 1.995 MB / 0.5206 GB, free: 6.598 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008748/0.2927, allocations: 1.046 MB / 0.5216 GB, free: 5.539 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001684/0.2929, allocations: 83.94 kB / 0.5217 GB, free: 5.457 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.858e-05/0.2929, allocations: 46.56 kB / 0.5217 GB, free: 5.402 MB / 426.7 MB Notification: Performance of pre-optimization done (n=104): time 2.775e-06/0.2929, allocations: 0 / 0.5217 GB, free: 5.402 MB / 426.7 MB Notification: Performance of matching and sorting (n=118): time 0.01348/0.3064, allocations: 9.516 MB / 0.531 GB, free: 11.83 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.713e-05/0.3065, allocations: 192.4 kB / 0.5312 GB, free: 11.6 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003051/0.3095, allocations: 3.608 MB / 0.5347 GB, free: 7.98 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6e-05/0.3096, allocations: 41.7 kB / 0.5348 GB, free: 7.934 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001236/0.3108, allocations: 2.804 MB / 0.5375 GB, free: 5.102 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003078/0.3111, allocations: 0.5081 MB / 0.538 GB, free: 4.59 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009346/0.3121, allocations: 1.112 MB / 0.5391 GB, free: 3.469 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 6.703e-05/0.3121, allocations: 305.1 kB / 0.5394 GB, free: 3.168 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001543/0.3137, allocations: 1.693 MB / 0.541 GB, free: 1.469 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003173/0.3168, allocations: 5.306 MB / 0.5462 GB, free: 10.35 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005086/0.3219, allocations: 7.509 MB / 0.5535 GB, free: 1.059 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.742e-05/0.322, allocations: 36 kB / 0.5536 GB, free: 1.023 MB / 458.7 MB Notification: Performance of matching and sorting (n=717) (initialization): time 0.007101/0.3291, allocations: 7.097 MB / 0.5605 GB, free: 9.918 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.493e-05/0.3291, allocations: 60 kB / 0.5606 GB, free: 9.859 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.589e-05/0.3292, allocations: 128 kB / 0.5607 GB, free: 9.734 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009377/0.3301, allocations: 0.6569 MB / 0.5613 GB, free: 9.078 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001993/0.3321, allocations: 1.252 MB / 0.5626 GB, free: 7.824 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003261/0.3354, allocations: 3.934 MB / 0.5664 GB, free: 3.797 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002172/0.3376, allocations: 331.6 kB / 0.5667 GB, free: 3.473 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002927/0.3379, allocations: 353.1 kB / 0.567 GB, free: 3.133 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 577 * 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 (682): * Single equations (assignments): 678 * 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.001951/0.3398, allocations: 1.773 MB / 0.5688 GB, free: 1.348 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003061/0.3401, allocations: 286.1 kB / 0.5691 GB, free: 1.066 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001936/0.3421, allocations: 1.808 MB / 0.5708 GB, free: 15.24 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.456e-05/0.3421, allocations: 12 kB / 0.5708 GB, free: 15.23 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.256e-06/0.3421, allocations: 4 kB / 0.5708 GB, free: 15.23 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.765e-06/0.3421, allocations: 3.984 kB / 0.5708 GB, free: 15.22 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005216/0.3473, allocations: 4.521 MB / 0.5753 GB, free: 10.64 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/0.3473, allocations: 0.5 kB / 0.5753 GB, free: 10.64 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003749/0.3477, allocations: 151.8 kB / 0.5754 GB, free: 10.5 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007071/0.3484, allocations: 488.6 kB / 0.5759 GB, free: 10.02 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.994e-05/0.3484, allocations: 23.94 kB / 0.5759 GB, free: 9.992 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002507/0.351, allocations: 3.316 MB / 0.5791 GB, free: 6.578 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.351, allocations: 5.906 kB / 0.5791 GB, free: 6.574 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003241/0.3542, allocations: 3.702 MB / 0.5827 GB, free: 2.844 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004023/0.3546, allocations: 289.9 kB / 0.583 GB, free: 2.559 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001684/0.3548, allocations: 19.98 kB / 0.583 GB, free: 2.539 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005637/0.3553, allocations: 87.81 kB / 0.5831 GB, free: 2.453 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001186/0.3554, allocations: 60.38 kB / 0.5832 GB, free: 2.395 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.091e-05/0.3555, allocations: 38.31 kB / 0.5832 GB, free: 2.359 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001977/0.3575, allocations: 2.081 MB / 0.5853 GB, free: 288 kB / 490.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.3575, allocations: 0 / 0.5853 GB, free: 288 kB / 490.7 MB Notification: Performance of remove unused functions: time 0.002591/0.3601, allocations: 0.8633 MB / 0.5861 GB, free: 15.41 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (88): * Single equations (assignments): 84 * 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.0003202/0.3604, allocations: 159.5 kB / 0.5862 GB, free: 15.25 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.003722/0.3641, allocations: 3.882 MB / 0.59 GB, free: 11.38 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3641, allocations: 0 / 0.59 GB, free: 11.38 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0008252/0.3649, allocations: 0.9471 MB / 0.591 GB, free: 10.42 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001032/0.366, allocations: 303.5 kB / 0.5913 GB, free: 10.14 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007969/0.3739, allocations: 7.561 MB / 0.5986 GB, free: 2.527 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001814/0.3758, allocations: 2.16 MB / 0.6007 GB, free: 336 kB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004314/0.3762, allocations: 232.5 kB / 0.601 GB, free: 104 kB / 0.4948 GB Notification: Performance of SimCode: time 9.52e-07/0.3762, allocations: 0 / 0.601 GB, free: 104 kB / 0.4948 GB Notification: Performance of Templates: time 0.2109/0.5871, allocations: 62.4 MB / 0.6619 GB, free: 139.2 MB / 0.5261 GB " [Timeout remaining time 659] 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_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.918516259640455]