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.001337/0.001337, allocations: 111 kB / 21.18 MB, free: 0.6758 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.001479/0.001479, allocations: 211.4 kB / 24.48 MB, free: 3.977 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.457/1.457, allocations: 230.6 MB / 258.2 MB, free: 7.797 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.2333/0.2333, allocations: 46.97 MB / 361.6 MB, free: 4.031 MB / 286.1 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.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.00202/0.00202, allocations: 63.91 kB / 0.4973 GB, free: 7.219 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2757/0.2778, allocations: 66.04 MB / 0.5618 GB, free: 4.152 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01075/0.2885, allocations: 8.021 MB / 0.5696 GB, free: 12.09 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.007095/0.2956, allocations: 3.384 MB / 0.5729 GB, free: 8.695 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001091/0.2967, allocations: 59.69 kB / 0.573 GB, free: 8.637 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004077/0.3008, allocations: 1.861 MB / 0.5748 GB, free: 6.77 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005117/0.3059, allocations: 1.619 MB / 0.5764 GB, free: 5.145 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001392/0.3073, allocations: 0.5809 MB / 0.577 GB, free: 4.562 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005096/0.3124, allocations: 3.658 MB / 0.5805 GB, free: 0.8984 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002692/0.3151, allocations: 2.006 MB / 0.5825 GB, free: 14.84 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001913/0.317, allocations: 1.191 MB / 0.5837 GB, free: 13.64 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002482/0.3195, allocations: 1.768 MB / 0.5854 GB, free: 11.87 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004823/0.3199, allocations: 240 kB / 0.5856 GB, free: 11.63 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001908/0.3219, allocations: 1.034 MB / 0.5866 GB, free: 10.6 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001669/0.3235, allocations: 1.546 MB / 0.5881 GB, free: 9.047 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001666/0.3252, allocations: 1.25 MB / 0.5894 GB, free: 7.789 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007163/0.3323, allocations: 5.731 MB / 0.595 GB, free: 2.035 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.3324, allocations: 0 / 0.595 GB, free: 2.035 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3324, allocations: 0 / 0.595 GB, free: 2.035 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.000105/0.3325, allocations: 0 / 0.595 GB, free: 2.035 MB / 430.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.007542/0.34, allocations: 3.854 MB / 0.5987 GB, free: 14.12 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/0.34, allocations: 12.03 kB / 0.5987 GB, free: 14.11 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01666/0.3567, allocations: 2.366 MB / 0.601 GB, free: 11.74 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005928/0.3626, allocations: 2.197 MB / 0.6032 GB, free: 9.508 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001578/0.3628, allocations: 180.8 kB / 0.6034 GB, free: 9.328 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005298/0.3633, allocations: 236 kB / 0.6036 GB, free: 9.098 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01273/0.3761, allocations: 7.837 MB / 0.6112 GB, free: 0.5977 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-05/0.3762, allocations: 39.69 kB / 0.6113 GB, free: 0.5586 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003467/0.3765, allocations: 115.9 kB / 0.6114 GB, free: 456 kB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002833/0.3793, allocations: 1.593 MB / 0.6129 GB, free: 14.85 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01261/0.3919, allocations: 6.562 MB / 0.6194 GB, free: 8.273 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03831/0.4303, allocations: 29.77 MB / 0.6484 GB, free: 9.547 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004961/0.4352, allocations: 1.963 MB / 0.6503 GB, free: 7.547 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001616/0.4368, allocations: 1.042 MB / 0.6514 GB, free: 6.492 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002771/0.4371, allocations: 91.95 kB / 0.6514 GB, free: 6.402 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.301e-05/0.4371, allocations: 46.56 kB / 0.6515 GB, free: 6.348 MB / 494.1 MB Notification: Performance of pre-optimization done (n=104): time 3.727e-06/0.4372, allocations: 112 / 0.6515 GB, free: 6.348 MB / 494.1 MB Notification: Performance of matching and sorting (n=118): time 0.02471/0.4619, allocations: 9.171 MB / 0.6604 GB, free: 13.12 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001324/0.462, allocations: 200.4 kB / 0.6606 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004856/0.4669, allocations: 3.522 MB / 0.6641 GB, free: 9.348 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001424/0.467, allocations: 41.7 kB / 0.6641 GB, free: 9.301 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002248/0.4692, allocations: 2.835 MB / 0.6669 GB, free: 6.438 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005385/0.4698, allocations: 0.5042 MB / 0.6674 GB, free: 5.93 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001529/0.4713, allocations: 1.131 MB / 0.6685 GB, free: 4.789 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001525/0.4715, allocations: 309 kB / 0.6688 GB, free: 4.484 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002674/0.4741, allocations: 1.693 MB / 0.6704 GB, free: 2.785 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005744/0.4799, allocations: 5.317 MB / 0.6756 GB, free: 11.66 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008967/0.4888, allocations: 7.516 MB / 0.683 GB, free: 2.367 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.379e-05/0.4889, allocations: 36 kB / 0.683 GB, free: 2.332 MB / 0.5137 GB Notification: Performance of matching and sorting (n=717) (initialization): time 0.01212/0.501, allocations: 7.095 MB / 0.6899 GB, free: 11.23 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.684e-05/0.5011, allocations: 63.94 kB / 0.69 GB, free: 11.16 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001405/0.5013, allocations: 124 kB / 0.6901 GB, free: 11.04 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001713/0.503, allocations: 0.6526 MB / 0.6907 GB, free: 10.39 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003668/0.5067, allocations: 1.248 MB / 0.692 GB, free: 9.137 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005407/0.5121, allocations: 3.917 MB / 0.6958 GB, free: 5.121 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003731/0.5158, allocations: 299.6 kB / 0.6961 GB, free: 4.828 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005822/0.5164, allocations: 344 kB / 0.6964 GB, free: 4.492 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.002906/0.5193, allocations: 1.787 MB / 0.6981 GB, free: 2.695 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005366/0.5198, allocations: 286.1 kB / 0.6984 GB, free: 2.414 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003651/0.5235, allocations: 1.792 MB / 0.7002 GB, free: 0.5977 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.406e-05/0.5235, allocations: 16.38 kB / 0.7002 GB, free: 0.582 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.628e-06/0.5235, allocations: 4 kB / 0.7002 GB, free: 0.5781 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.079e-05/0.5235, allocations: 7.984 kB / 0.7002 GB, free: 0.5703 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009275/0.5328, allocations: 4.446 MB / 0.7045 GB, free: 12.06 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.071e-05/0.5328, allocations: 7.938 kB / 0.7045 GB, free: 12.05 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008254/0.5336, allocations: 155.9 kB / 0.7047 GB, free: 11.9 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00145/0.5351, allocations: 492.1 kB / 0.7052 GB, free: 11.42 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.124e-05/0.5352, allocations: 23.94 kB / 0.7052 GB, free: 11.39 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004445/0.5396, allocations: 3.279 MB / 0.7084 GB, free: 8.016 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.5396, allocations: 0 / 0.7084 GB, free: 8.016 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006044/0.5457, allocations: 3.704 MB / 0.712 GB, free: 4.285 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007697/0.5464, allocations: 258 kB / 0.7122 GB, free: 4.031 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003112/0.5467, allocations: 20 kB / 0.7123 GB, free: 4.012 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009713/0.5477, allocations: 55.92 kB / 0.7123 GB, free: 3.957 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002114/0.5479, allocations: 68.72 kB / 0.7124 GB, free: 3.891 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.201e-05/0.548, allocations: 32 kB / 0.7124 GB, free: 3.859 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003078/0.5511, allocations: 2.019 MB / 0.7144 GB, free: 1.844 MB / 0.545 GB Notification: Performance of sort global known variables: time 8e-08/0.5511, allocations: 3.938 kB / 0.7144 GB, free: 1.84 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.003915/0.555, allocations: 0.7889 MB / 0.7152 GB, free: 1.051 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.0003756/0.5554, allocations: 145.1 kB / 0.7153 GB, free: 0.8984 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.006845/0.5622, allocations: 3.868 MB / 0.7191 GB, free: 13.04 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.915e-06/0.5622, allocations: 4 kB / 0.7191 GB, free: 13.04 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001513/0.5637, allocations: 0.9395 MB / 0.72 GB, free: 12.09 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001899/0.5656, allocations: 305.8 kB / 0.7203 GB, free: 11.79 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01203/0.5777, allocations: 7.25 MB / 0.7274 GB, free: 4.5 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002937/0.5806, allocations: 2.164 MB / 0.7295 GB, free: 2.297 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.00371/0.5843, allocations: 1.658 MB / 0.7311 GB, free: 0.6328 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005089/0.5848, allocations: 195.4 kB / 0.7313 GB, free: 456 kB / 0.5606 GB Notification: Performance of SimCode: time 1.312e-06/0.5848, allocations: 4 kB / 0.7313 GB, free: 452 kB / 0.5606 GB Notification: Performance of Templates: time 0.2637/0.8485, allocations: 28.11 MB / 0.7587 GB, free: 136.7 MB / 0.5606 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins1/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: 6.490967168007046]