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.001399/0.001399, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 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.001728/0.001728, allocations: 209 kB / 23.73 MB, free: 4.523 MB / 14.72 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 1.617/1.617, allocations: 230.6 MB / 257.5 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] 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.2712/0.2712, allocations: 46.96 MB / 360.9 MB, free: 4.043 MB / 286.1 MB " [Timeout remaining time 179] 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 0.002067/0.002067, allocations: 71.89 kB / 0.4966 GB, free: 7.742 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.333/0.335, allocations: 66.02 MB / 0.5611 GB, free: 33.61 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.007484/0.3425, allocations: 8.021 MB / 0.5689 GB, free: 28.41 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.005996/0.3485, allocations: 3.385 MB / 0.5722 GB, free: 26.32 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009944/0.3495, allocations: 56.56 kB / 0.5723 GB, free: 26.3 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003358/0.3529, allocations: 1.873 MB / 0.5741 GB, free: 25.51 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003635/0.3565, allocations: 1.624 MB / 0.5757 GB, free: 24.8 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001236/0.3577, allocations: 0.5726 MB / 0.5762 GB, free: 24.58 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.004776/0.3625, allocations: 3.652 MB / 0.5798 GB, free: 23.2 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002383/0.3649, allocations: 2.005 MB / 0.5818 GB, free: 22.24 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00183/0.3667, allocations: 1.185 MB / 0.5829 GB, free: 21.74 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002603/0.3693, allocations: 1.776 MB / 0.5846 GB, free: 21.09 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000612/0.3699, allocations: 243.2 kB / 0.5849 GB, free: 21.09 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002245/0.3722, allocations: 1.03 MB / 0.5859 GB, free: 20.88 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00168/0.3739, allocations: 1.54 MB / 0.5874 GB, free: 20.31 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001484/0.3753, allocations: 1.259 MB / 0.5886 GB, free: 19.54 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007394/0.3827, allocations: 5.725 MB / 0.5942 GB, free: 16.47 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.3827, allocations: 0 / 0.5942 GB, free: 16.47 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3827, allocations: 1.562 kB / 0.5942 GB, free: 16.47 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001265/0.3829, allocations: 0 / 0.5942 GB, free: 16.47 MB / 446.1 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.00854/0.3914, allocations: 3.856 MB / 0.598 GB, free: 13.75 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.586e-05/0.3915, allocations: 9.844 kB / 0.598 GB, free: 13.75 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01535/0.4068, allocations: 2.368 MB / 0.6003 GB, free: 12.61 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006381/0.4132, allocations: 2.199 MB / 0.6024 GB, free: 11.25 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001238/0.4133, allocations: 176 kB / 0.6026 GB, free: 11.16 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005584/0.4139, allocations: 238.6 kB / 0.6028 GB, free: 11.07 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009314/0.4232, allocations: 7.843 MB / 0.6105 GB, free: 3.082 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.086e-05/0.4233, allocations: 43.67 kB / 0.6105 GB, free: 3.039 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002837/0.4235, allocations: 115.9 kB / 0.6107 GB, free: 2.926 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002064/0.4256, allocations: 1.582 MB / 0.6122 GB, free: 1.34 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01192/0.4375, allocations: 6.566 MB / 0.6186 GB, free: 10.76 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04203/0.4796, allocations: 29.77 MB / 0.6477 GB, free: 12.03 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005045/0.4846, allocations: 1.948 MB / 0.6496 GB, free: 10.04 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001635/0.4862, allocations: 1.046 MB / 0.6506 GB, free: 8.984 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003074/0.4865, allocations: 95.89 kB / 0.6507 GB, free: 8.891 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.998e-05/0.4866, allocations: 42.56 kB / 0.6507 GB, free: 8.84 MB / 494.1 MB Notification: Performance of pre-optimization done (n=104): time 3.666e-06/0.4866, allocations: 0 / 0.6507 GB, free: 8.84 MB / 494.1 MB Notification: Performance of matching and sorting (n=118): time 0.0252/0.5118, allocations: 9.178 MB / 0.6597 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001488/0.512, allocations: 196.3 kB / 0.6599 GB, free: 15.37 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00539/0.5174, allocations: 3.522 MB / 0.6633 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002676/0.5176, allocations: 41.7 kB / 0.6634 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002551/0.5202, allocations: 2.835 MB / 0.6661 GB, free: 8.926 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007458/0.5209, allocations: 0.508 MB / 0.6666 GB, free: 8.414 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001637/0.5226, allocations: 1.135 MB / 0.6677 GB, free: 7.27 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001499/0.5227, allocations: 305.1 kB / 0.668 GB, free: 6.969 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002928/0.5256, allocations: 1.693 MB / 0.6697 GB, free: 5.27 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006498/0.5321, allocations: 5.317 MB / 0.6749 GB, free: 14.14 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01074/0.5429, allocations: 7.509 MB / 0.6822 GB, free: 4.859 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001483/0.543, allocations: 36.19 kB / 0.6822 GB, free: 4.824 MB / 0.5137 GB Notification: Performance of matching and sorting (n=717) (initialization): time 0.01598/0.559, allocations: 7.098 MB / 0.6892 GB, free: 13.72 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.513e-05/0.5591, allocations: 56 kB / 0.6892 GB, free: 13.66 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001766/0.5593, allocations: 131.9 kB / 0.6894 GB, free: 13.54 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001682/0.5609, allocations: 0.6525 MB / 0.69 GB, free: 12.88 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00412/0.5651, allocations: 1.252 MB / 0.6912 GB, free: 11.62 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005679/0.5707, allocations: 3.917 MB / 0.695 GB, free: 7.609 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00415/0.5749, allocations: 299.6 kB / 0.6953 GB, free: 7.316 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008789/0.5758, allocations: 348 kB / 0.6957 GB, free: 6.977 MB / 0.5294 GB 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.00329/0.5791, allocations: 1.779 MB / 0.6974 GB, free: 5.184 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006293/0.5797, allocations: 282.1 kB / 0.6977 GB, free: 4.906 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003718/0.5834, allocations: 1.804 MB / 0.6994 GB, free: 3.078 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.739e-05/0.5834, allocations: 15.94 kB / 0.6994 GB, free: 3.062 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.174e-05/0.5835, allocations: 11.98 kB / 0.6995 GB, free: 3.051 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.707e-05/0.5835, allocations: 7.984 kB / 0.6995 GB, free: 3.043 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01051/0.594, allocations: 4.438 MB / 0.7038 GB, free: 14.54 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.157e-05/0.594, allocations: 0 / 0.7038 GB, free: 14.54 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008199/0.5948, allocations: 155.8 kB / 0.7039 GB, free: 14.39 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001382/0.5962, allocations: 484.2 kB / 0.7044 GB, free: 13.91 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.886e-05/0.5963, allocations: 28.02 kB / 0.7044 GB, free: 13.88 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004389/0.6007, allocations: 3.283 MB / 0.7076 GB, free: 10.5 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.6007, allocations: 0 / 0.7076 GB, free: 10.5 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006442/0.6071, allocations: 3.713 MB / 0.7113 GB, free: 6.762 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009527/0.6081, allocations: 254 kB / 0.7115 GB, free: 6.512 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002931/0.6084, allocations: 16 kB / 0.7115 GB, free: 6.496 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009731/0.6093, allocations: 64.05 kB / 0.7116 GB, free: 6.434 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001903/0.6095, allocations: 68.31 kB / 0.7117 GB, free: 6.367 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.036e-05/0.6096, allocations: 28 kB / 0.7117 GB, free: 6.34 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003481/0.6131, allocations: 2.015 MB / 0.7136 GB, free: 4.328 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.01e-07/0.6131, allocations: 0 / 0.7136 GB, free: 4.328 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0044/0.6175, allocations: 0.7928 MB / 0.7144 GB, free: 3.535 MB / 0.545 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.0004035/0.6179, allocations: 151.5 kB / 0.7146 GB, free: 3.375 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.007324/0.6252, allocations: 3.864 MB / 0.7183 GB, free: 15.52 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.6252, allocations: 1.188 kB / 0.7183 GB, free: 15.52 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001533/0.6268, allocations: 0.9412 MB / 0.7193 GB, free: 14.57 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002207/0.629, allocations: 314 kB / 0.7196 GB, free: 14.27 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01346/0.6424, allocations: 7.228 MB / 0.7266 GB, free: 6.996 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003077/0.6455, allocations: 2.16 MB / 0.7287 GB, free: 4.797 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.00387/0.6494, allocations: 1.662 MB / 0.7303 GB, free: 3.129 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005525/0.6499, allocations: 195.4 kB / 0.7305 GB, free: 2.941 MB / 0.5606 GB Notification: Performance of SimCode: time 9.32e-07/0.6499, allocations: 0 / 0.7305 GB, free: 2.941 MB / 0.5606 GB Notification: Performance of Templates: time 0.06025/0.7102, allocations: 28.14 MB / 0.758 GB, free: 7.16 MB / 0.5919 GB " [Timeout remaining time 659] 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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.102093226276338]