Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.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.001657/0.001657, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.00172/0.00172, allocations: 163.9 kB / 25.61 MB, free: 8.582 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.9386/0.9386, allocations: 177.1 MB / 206 MB, free: 4.496 MB / 186.7 MB " [Timeout remaining time 179] 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.1431/0.1431, allocations: 34.25 MB / 296.8 MB, free: 13.94 MB / 282.7 MB " [Timeout remaining time 180] 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.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.064e-06/2.064e-06, allocations: 0 / 379.3 MB, free: 23.43 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.928e-05/2.134e-05, allocations: 6.25 kB / 379.3 MB, free: 23.43 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.005956/0.005978, allocations: 8.49 MB / 387.8 MB, free: 14.89 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.004499/0.01048, allocations: 3.447 MB / 391.2 MB, free: 11.44 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006694/0.01115, allocations: 59.69 kB / 391.3 MB, free: 11.38 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001636/0.01278, allocations: 1.76 MB / 393 MB, free: 9.613 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001976/0.01476, allocations: 1.645 MB / 394.7 MB, free: 7.961 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007284/0.01549, allocations: 0.608 MB / 395.3 MB, free: 7.352 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002453/0.01794, allocations: 3.969 MB / 399.3 MB, free: 3.375 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001424/0.01936, allocations: 2.149 MB / 401.4 MB, free: 1.172 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001833/0.0212, allocations: 2.183 MB / 403.6 MB, free: 14.98 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001698/0.0229, allocations: 1.711 MB / 405.3 MB, free: 13.27 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003318/0.02323, allocations: 224 kB / 405.5 MB, free: 13.05 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001204/0.02443, allocations: 1.049 MB / 406.6 MB, free: 12 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009327/0.02536, allocations: 1.515 MB / 408.1 MB, free: 10.48 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008104/0.02617, allocations: 0.9072 MB / 409 MB, free: 9.566 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003372/0.02955, allocations: 3.705 MB / 412.7 MB, free: 5.848 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.02955, allocations: 0 / 412.7 MB, free: 5.848 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.02955, allocations: 0 / 412.7 MB, free: 5.848 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.893e-05/0.02965, allocations: 0 / 412.7 MB, free: 5.848 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: 1141 * Number of variables: 1141 Notification: Performance of Generate backend data structure: time 0.004646/0.0343, allocations: 3.907 MB / 416.6 MB, free: 1.875 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.669e-05/0.03433, allocations: 8.031 kB / 416.6 MB, free: 1.867 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00665/0.04098, allocations: 1.79 MB / 418.4 MB, free: 76 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001853/0.04284, allocations: 1.578 MB / 420 MB, free: 14.45 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.453e-05/0.04292, allocations: 160.5 kB / 420.1 MB, free: 14.29 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002664/0.04319, allocations: 216.2 kB / 420.3 MB, free: 14.08 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003946/0.04713, allocations: 4.264 MB / 424.6 MB, free: 8.965 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.831e-05/0.04719, allocations: 43.62 kB / 424.6 MB, free: 8.922 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001842/0.04738, allocations: 111.9 kB / 424.8 MB, free: 8.812 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001105/0.04848, allocations: 1.336 MB / 426.1 MB, free: 7.477 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002503/0.05098, allocations: 1.814 MB / 427.9 MB, free: 5.641 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01881/0.06979, allocations: 34.81 MB / 462.7 MB, free: 1.621 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001699/0.07149, allocations: 0.7664 MB / 463.5 MB, free: 0.8047 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002663/0.07176, allocations: 238.5 kB / 463.7 MB, free: 0.5547 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002814/0.07457, allocations: 2.363 MB / 466.1 MB, free: 14.16 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.162e-05/0.0746, allocations: 49.33 kB / 466.1 MB, free: 14.1 MB / 394.7 MB Notification: Performance of pre-optimization done (n=84): time 3.436e-06/0.07461, allocations: 0 / 466.1 MB, free: 14.1 MB / 394.7 MB Notification: Performance of matching and sorting (n=101): time 0.008784/0.08339, allocations: 3.775 MB / 469.9 MB, free: 10.26 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.267e-05/0.08346, allocations: 192.4 kB / 470.1 MB, free: 10.03 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002742/0.0862, allocations: 3.167 MB / 473.3 MB, free: 6.828 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.813e-05/0.08625, allocations: 37.7 kB / 473.3 MB, free: 6.785 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001411/0.08766, allocations: 2.904 MB / 476.2 MB, free: 3.852 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002866/0.08795, allocations: 468.8 kB / 476.7 MB, free: 3.391 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009354/0.08889, allocations: 1.179 MB / 477.8 MB, free: 2.199 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001141/0.089, allocations: 476.8 kB / 478.3 MB, free: 1.73 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006645/0.08966, allocations: 458.1 kB / 478.8 MB, free: 1.277 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003133/0.0928, allocations: 5.653 MB / 484.4 MB, free: 9.219 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004245/0.09704, allocations: 6.638 MB / 491 MB, free: 228 kB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.385e-05/0.09708, allocations: 32 kB / 491.1 MB, free: 196 kB / 410.7 MB Notification: Performance of matching and sorting (n=681) (initialization): time 0.004208/0.1013, allocations: 4.187 MB / 495.3 MB, free: 12 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.215e-05/0.1013, allocations: 56 kB / 495.3 MB, free: 11.94 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.684e-05/0.1014, allocations: 128 kB / 495.4 MB, free: 11.82 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002991/0.1017, allocations: 203.5 kB / 495.6 MB, free: 11.61 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001775/0.1035, allocations: 1.174 MB / 496.8 MB, free: 10.44 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001138/0.1046, allocations: 1.967 MB / 498.8 MB, free: 8.359 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001732/0.1064, allocations: 247.7 kB / 499 MB, free: 8.117 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002344/0.1066, allocations: 284 kB / 499.3 MB, free: 7.84 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 560 * Number of states: 0 () * Number of discrete variables: 29 (Distance1.arrow.twoHeadedArrow,Distance1.arrow.headAtOrigin,BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Distance1.arrowColor[3],Distance1.arrowColor[2],Distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (656): * Single equations (assignments): 652 * 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.0008422/0.1074, allocations: 0.6031 MB / 499.9 MB, free: 7.223 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002738/0.1077, allocations: 298.2 kB / 0.4885 GB, free: 6.93 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006492/0.1084, allocations: 0.5539 MB / 0.489 GB, free: 6.359 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-05/0.1084, allocations: 12 kB / 0.489 GB, free: 6.348 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.122e-06/0.1084, allocations: 3.938 kB / 0.489 GB, free: 6.344 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.999e-06/0.1084, allocations: 11.92 kB / 0.489 GB, free: 6.332 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003634/0.112, allocations: 3.068 MB / 0.492 GB, free: 3.16 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.081e-06/0.112, allocations: 4 kB / 0.492 GB, free: 3.156 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003569/0.1124, allocations: 131.8 kB / 0.4922 GB, free: 3.027 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001498/0.1125, allocations: 43.98 kB / 0.4922 GB, free: 2.98 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.57e-05/0.1126, allocations: 20 kB / 0.4922 GB, free: 2.961 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009556/0.1135, allocations: 1.74 MB / 0.4939 GB, free: 1.105 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.065e-06/0.1135, allocations: 4 kB / 0.4939 GB, free: 1.102 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1834/0.2969, allocations: 1.519 MB / 0.4954 GB, free: 119.5 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006428/0.2975, allocations: 258.4 kB / 0.4957 GB, free: 119.5 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002389/0.2978, allocations: 23.25 kB / 0.4957 GB, free: 119.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005068/0.2983, allocations: 20.38 kB / 0.4957 GB, free: 119.5 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.128e-05/0.2984, allocations: 63.17 kB / 0.4958 GB, free: 119.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.222e-05/0.2984, allocations: 29.67 kB / 0.4958 GB, free: 119.5 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001217/0.2996, allocations: 1.25 MB / 0.497 GB, free: 119.4 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.2996, allocations: 0 / 0.497 GB, free: 119.4 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002687/0.3023, allocations: 0.7635 MB / 0.4978 GB, free: 119.4 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 (rev.w,damper.phi_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (78): * Single equations (assignments): 74 * 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.0002714/0.3026, allocations: 158.8 kB / 0.4979 GB, free: 119.3 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0029/0.3055, allocations: 2.261 MB / 0.5001 GB, free: 119.1 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.3055, allocations: 0 / 0.5001 GB, free: 119.1 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003386/0.3058, allocations: 445 kB / 0.5005 GB, free: 118.9 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001038/0.3069, allocations: 303.6 kB / 0.5008 GB, free: 118.9 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006105/0.313, allocations: 5.517 MB / 0.5062 GB, free: 116.5 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007337/0.3137, allocations: 0.9267 MB / 0.5071 GB, free: 116.4 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0009399/0.3146, allocations: 420.9 kB / 0.5075 GB, free: 116.3 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005974/0.3152, allocations: 482.4 kB / 0.508 GB, free: 116.2 MB / 426.7 MB Notification: Performance of SimCode: time 2.024e-06/0.3152, allocations: 0 / 0.508 GB, free: 116.2 MB / 426.7 MB Notification: Performance of Templates: time 0.0302/0.3454, allocations: 21.74 MB / 0.5292 GB, free: 98.02 MB / 426.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.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.23950867773965]