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.001442/0.001442, allocations: 71.75 kB / 21.24 MB, free: 404 kB / 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.001637/0.001637, allocations: 168.8 kB / 24.5 MB, free: 3.457 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.591/1.591, allocations: 177.2 MB / 204.9 MB, free: 9.047 MB / 190.1 MB " [Timeout remaining time 178] 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.2101/0.2101, allocations: 32.81 MB / 294.1 MB, free: 60 kB / 270.1 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: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002256/0.002256, allocations: 72.08 kB / 440.6 MB, free: 9.469 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3525/0.3548, allocations: 65.44 MB / 0.4941 GB, free: 31.44 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.008017/0.3628, allocations: 8.034 MB / 0.502 GB, free: 26.2 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.006315/0.3691, allocations: 3.383 MB / 0.5053 GB, free: 24.08 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001215/0.3703, allocations: 59.94 kB / 0.5053 GB, free: 24.06 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003069/0.3734, allocations: 1.861 MB / 0.5072 GB, free: 23.29 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003374/0.3768, allocations: 1.62 MB / 0.5087 GB, free: 22.56 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001139/0.3779, allocations: 0.5764 MB / 0.5093 GB, free: 22.34 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.004443/0.3823, allocations: 3.665 MB / 0.5129 GB, free: 20.95 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002784/0.3851, allocations: 1.986 MB / 0.5148 GB, free: 20.01 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001956/0.3871, allocations: 1.186 MB / 0.516 GB, free: 19.51 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002593/0.3897, allocations: 1.693 MB / 0.5176 GB, free: 18.95 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006216/0.3903, allocations: 239.9 kB / 0.5179 GB, free: 18.95 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002258/0.3926, allocations: 1.014 MB / 0.5189 GB, free: 18.75 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002037/0.3946, allocations: 1.54 MB / 0.5204 GB, free: 18.18 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002292/0.3969, allocations: 1.26 MB / 0.5216 GB, free: 17.41 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008883/0.4058, allocations: 5.723 MB / 0.5272 GB, free: 15.3 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.4058, allocations: 0 / 0.5272 GB, free: 15.3 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.4058, allocations: 0.7031 kB / 0.5272 GB, free: 15.3 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002305/0.406, allocations: 5.531 kB / 0.5272 GB, free: 15.3 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.01174/0.4177, allocations: 3.859 MB / 0.531 GB, free: 13.07 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.306e-05/0.4178, allocations: 9.375 kB / 0.531 GB, free: 13.07 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01729/0.4351, allocations: 2.423 MB / 0.5333 GB, free: 12.01 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007315/0.4424, allocations: 2.191 MB / 0.5355 GB, free: 10.66 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002002/0.4426, allocations: 177.5 kB / 0.5356 GB, free: 10.57 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001006/0.4436, allocations: 233.1 kB / 0.5359 GB, free: 10.49 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01413/0.4577, allocations: 7.851 MB / 0.5435 GB, free: 5.496 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001164/0.4579, allocations: 31.34 kB / 0.5436 GB, free: 5.48 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004195/0.4583, allocations: 121 kB / 0.5437 GB, free: 5.398 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002358/0.4606, allocations: 1.577 MB / 0.5452 GB, free: 3.902 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01219/0.4728, allocations: 6.574 MB / 0.5516 GB, free: 13.32 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0416/0.5144, allocations: 29.87 MB / 0.5808 GB, free: 14.49 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005058/0.5195, allocations: 2.003 MB / 0.5828 GB, free: 12.45 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001684/0.5212, allocations: 1.04 MB / 0.5838 GB, free: 11.4 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002855/0.5214, allocations: 91.95 kB / 0.5839 GB, free: 11.31 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.274e-05/0.5215, allocations: 50.5 kB / 0.5839 GB, free: 11.25 MB / 494.1 MB Notification: Performance of pre-optimization done (n=104): time 4.428e-06/0.5215, allocations: 0 / 0.5839 GB, free: 11.25 MB / 494.1 MB Notification: Performance of matching and sorting (n=118): time 0.02523/0.5467, allocations: 9.414 MB / 0.5931 GB, free: 1.781 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000125/0.5469, allocations: 192.4 kB / 0.5933 GB, free: 1.551 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005132/0.552, allocations: 3.518 MB / 0.5967 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002432/0.5522, allocations: 41.7 kB / 0.5968 GB, free: 13.97 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002292/0.5545, allocations: 2.839 MB / 0.5995 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006581/0.5552, allocations: 0.5042 MB / 0.6 GB, free: 10.6 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001592/0.5568, allocations: 1.135 MB / 0.6011 GB, free: 9.453 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001276/0.5569, allocations: 313 kB / 0.6014 GB, free: 9.145 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002764/0.5597, allocations: 1.689 MB / 0.6031 GB, free: 7.449 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005779/0.5655, allocations: 5.313 MB / 0.6083 GB, free: 332 kB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009999/0.5755, allocations: 7.512 MB / 0.6156 GB, free: 7.031 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001191/0.5756, allocations: 40 kB / 0.6156 GB, free: 6.992 MB / 0.5137 GB Notification: Performance of matching and sorting (n=717) (initialization): time 0.01534/0.5909, allocations: 7.087 MB / 0.6226 GB, free: 15.9 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.852e-05/0.591, allocations: 63.94 kB / 0.6226 GB, free: 15.84 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001767/0.5912, allocations: 127.9 kB / 0.6228 GB, free: 15.71 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001914/0.5931, allocations: 0.653 MB / 0.6234 GB, free: 15.05 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004651/0.5978, allocations: 1.255 MB / 0.6246 GB, free: 13.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005567/0.6033, allocations: 3.924 MB / 0.6284 GB, free: 9.781 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004192/0.6075, allocations: 299.6 kB / 0.6287 GB, free: 9.488 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007458/0.6083, allocations: 344 kB / 0.6291 GB, free: 9.152 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.003597/0.6119, allocations: 1.779 MB / 0.6308 GB, free: 7.359 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006305/0.6125, allocations: 286 kB / 0.6311 GB, free: 7.078 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003733/0.6162, allocations: 1.8 MB / 0.6328 GB, free: 5.254 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.716e-05/0.6162, allocations: 16 kB / 0.6328 GB, free: 5.238 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/0.6163, allocations: 4 kB / 0.6329 GB, free: 5.234 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.434e-05/0.6163, allocations: 7.969 kB / 0.6329 GB, free: 5.227 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00989/0.6262, allocations: 4.466 MB / 0.6372 GB, free: 0.7031 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.198e-05/0.6262, allocations: 4 kB / 0.6372 GB, free: 0.6992 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008261/0.627, allocations: 159.7 kB / 0.6374 GB, free: 0.543 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001389/0.6284, allocations: 488.3 kB / 0.6378 GB, free: 64 kB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.097e-05/0.6285, allocations: 19.98 kB / 0.6379 GB, free: 44 kB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00434/0.6328, allocations: 3.283 MB / 0.6411 GB, free: 12.66 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.6328, allocations: 4.031 kB / 0.6411 GB, free: 12.66 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005998/0.6388, allocations: 3.698 MB / 0.6447 GB, free: 8.926 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008705/0.6397, allocations: 258.1 kB / 0.6449 GB, free: 8.672 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002783/0.64, allocations: 24 kB / 0.645 GB, free: 8.648 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009713/0.6409, allocations: 59.86 kB / 0.645 GB, free: 8.59 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001891/0.6411, allocations: 72.25 kB / 0.6451 GB, free: 8.52 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001056/0.6412, allocations: 35.98 kB / 0.6451 GB, free: 8.484 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003243/0.6445, allocations: 2.019 MB / 0.6471 GB, free: 6.469 MB / 0.545 GB Notification: Performance of sort global known variables: time 9e-08/0.6445, allocations: 0 / 0.6471 GB, free: 6.469 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004784/0.6493, allocations: 0.785 MB / 0.6478 GB, free: 5.684 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.0003809/0.6496, allocations: 143.6 kB / 0.648 GB, free: 5.531 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.006622/0.6563, allocations: 3.877 MB / 0.6518 GB, free: 1.672 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.494e-06/0.6563, allocations: 0.5 kB / 0.6518 GB, free: 1.672 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00151/0.6578, allocations: 0.9422 MB / 0.6527 GB, free: 0.7188 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002045/0.6598, allocations: 302.7 kB / 0.653 GB, free: 432 kB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01463/0.6745, allocations: 7.234 MB / 0.66 GB, free: 9.148 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003637/0.6781, allocations: 2.161 MB / 0.6622 GB, free: 6.953 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003951/0.682, allocations: 1.658 MB / 0.6638 GB, free: 5.289 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005907/0.6826, allocations: 192.5 kB / 0.664 GB, free: 5.102 MB / 0.5606 GB Notification: Performance of SimCode: time 1.664e-06/0.6826, allocations: 0 / 0.664 GB, free: 5.102 MB / 0.5606 GB Notification: Performance of Templates: time 0.05051/0.7332, allocations: 22.34 MB / 0.6858 GB, free: 15.12 MB / 0.5919 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 -s ida -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins1/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: 6.621145979966968]