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.001607/0.001607, allocations: 107 kB / 21.18 MB, free: 0.6484 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.001489/0.001489, allocations: 216.4 kB / 24.48 MB, free: 3.941 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.424/1.424, allocations: 230.6 MB / 258.2 MB, free: 7.785 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.2317/0.2317, allocations: 46.96 MB / 361.6 MB, free: 4.113 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.001983/0.001983, allocations: 63.89 kB / 0.4973 GB, free: 7.223 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3251/0.3271, allocations: 66.04 MB / 0.5618 GB, free: 4.16 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01078/0.3379, allocations: 8.021 MB / 0.5696 GB, free: 12.1 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.007174/0.3451, allocations: 3.38 MB / 0.5729 GB, free: 8.707 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001158/0.3462, allocations: 59.75 kB / 0.573 GB, free: 8.648 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003685/0.3499, allocations: 1.861 MB / 0.5748 GB, free: 6.781 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004334/0.3542, allocations: 1.627 MB / 0.5764 GB, free: 5.148 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001323/0.3556, allocations: 0.5653 MB / 0.577 GB, free: 4.582 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004846/0.3604, allocations: 3.66 MB / 0.5805 GB, free: 0.918 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002442/0.3628, allocations: 2.01 MB / 0.5825 GB, free: 14.85 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001642/0.3645, allocations: 1.187 MB / 0.5837 GB, free: 13.66 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002359/0.3668, allocations: 1.776 MB / 0.5854 GB, free: 11.88 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005051/0.3673, allocations: 240 kB / 0.5856 GB, free: 11.64 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001909/0.3693, allocations: 1.034 MB / 0.5866 GB, free: 10.61 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00155/0.3708, allocations: 1.538 MB / 0.5881 GB, free: 9.066 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001707/0.3725, allocations: 1.262 MB / 0.5894 GB, free: 7.797 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007697/0.3802, allocations: 5.724 MB / 0.595 GB, free: 2.051 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.3802, allocations: 4 kB / 0.595 GB, free: 2.047 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3802, allocations: 0 / 0.595 GB, free: 2.047 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001335/0.3804, allocations: 4 kB / 0.595 GB, free: 2.043 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.007419/0.3878, allocations: 3.85 MB / 0.5987 GB, free: 14.14 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.407e-05/0.3878, allocations: 8.031 kB / 0.5987 GB, free: 14.13 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01513/0.4029, allocations: 2.37 MB / 0.601 GB, free: 11.75 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00663/0.4096, allocations: 2.193 MB / 0.6032 GB, free: 9.523 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001782/0.4098, allocations: 184.8 kB / 0.6034 GB, free: 9.34 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007395/0.4105, allocations: 236 kB / 0.6036 GB, free: 9.109 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01324/0.4237, allocations: 7.844 MB / 0.6112 GB, free: 0.6016 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001069/0.4238, allocations: 35.69 kB / 0.6113 GB, free: 0.5664 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003432/0.4242, allocations: 115.9 kB / 0.6114 GB, free: 464 kB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002707/0.4269, allocations: 1.589 MB / 0.6129 GB, free: 14.86 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01286/0.4397, allocations: 6.566 MB / 0.6194 GB, free: 8.281 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03928/0.479, allocations: 29.76 MB / 0.6484 GB, free: 9.559 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004737/0.4838, allocations: 1.955 MB / 0.6503 GB, free: 7.566 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001424/0.4852, allocations: 1.042 MB / 0.6513 GB, free: 6.512 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000271/0.4855, allocations: 99.89 kB / 0.6514 GB, free: 6.414 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.807e-05/0.4855, allocations: 42.61 kB / 0.6515 GB, free: 6.363 MB / 494.1 MB Notification: Performance of pre-optimization done (n=104): time 3.446e-06/0.4855, allocations: 0 / 0.6515 GB, free: 6.363 MB / 494.1 MB Notification: Performance of matching and sorting (n=118): time 0.02335/0.5088, allocations: 9.176 MB / 0.6604 GB, free: 13.13 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001466/0.509, allocations: 192.4 kB / 0.6606 GB, free: 12.9 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005039/0.514, allocations: 3.522 MB / 0.6641 GB, free: 9.363 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002511/0.5143, allocations: 45.64 kB / 0.6641 GB, free: 9.312 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002344/0.5166, allocations: 2.835 MB / 0.6669 GB, free: 6.449 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006484/0.5173, allocations: 0.508 MB / 0.6674 GB, free: 5.938 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00152/0.5188, allocations: 1.135 MB / 0.6685 GB, free: 4.793 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001398/0.5189, allocations: 313 kB / 0.6688 GB, free: 4.484 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00253/0.5215, allocations: 1.693 MB / 0.6704 GB, free: 2.785 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005904/0.5274, allocations: 5.313 MB / 0.6756 GB, free: 11.66 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01001/0.5374, allocations: 7.504 MB / 0.683 GB, free: 2.383 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001261/0.5375, allocations: 36 kB / 0.683 GB, free: 2.348 MB / 0.5137 GB Notification: Performance of matching and sorting (n=717) (initialization): time 0.01414/0.5516, allocations: 7.098 MB / 0.6899 GB, free: 11.24 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.592e-05/0.5517, allocations: 59.94 kB / 0.69 GB, free: 11.18 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001718/0.5519, allocations: 135.9 kB / 0.6901 GB, free: 11.05 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001764/0.5537, allocations: 0.6532 MB / 0.6907 GB, free: 10.39 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003916/0.5576, allocations: 1.248 MB / 0.692 GB, free: 9.145 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005134/0.5627, allocations: 3.909 MB / 0.6958 GB, free: 5.137 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003508/0.5662, allocations: 299.7 kB / 0.6961 GB, free: 4.844 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006395/0.5669, allocations: 348 kB / 0.6964 GB, free: 4.504 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.002753/0.5696, allocations: 1.778 MB / 0.6981 GB, free: 2.715 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005852/0.5702, allocations: 290.1 kB / 0.6984 GB, free: 2.43 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003608/0.5738, allocations: 1.8 MB / 0.7002 GB, free: 0.6055 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.689e-05/0.5738, allocations: 12 kB / 0.7002 GB, free: 0.5938 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.074e-05/0.5739, allocations: 8 kB / 0.7002 GB, free: 0.5859 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.1e-05/0.5739, allocations: 3.984 kB / 0.7002 GB, free: 0.582 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009655/0.5835, allocations: 4.45 MB / 0.7045 GB, free: 12.07 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.125e-05/0.5835, allocations: 3.938 kB / 0.7045 GB, free: 12.07 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008222/0.5844, allocations: 163.8 kB / 0.7047 GB, free: 11.91 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00141/0.5858, allocations: 484.6 kB / 0.7052 GB, free: 11.43 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001052/0.5859, allocations: 23.88 kB / 0.7052 GB, free: 11.41 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004443/0.5903, allocations: 3.272 MB / 0.7084 GB, free: 8.035 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.031e-06/0.5903, allocations: 7.922 kB / 0.7084 GB, free: 8.027 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005944/0.5963, allocations: 3.716 MB / 0.712 GB, free: 4.285 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001181/0.5974, allocations: 254 kB / 0.7123 GB, free: 4.035 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003217/0.5978, allocations: 16 kB / 0.7123 GB, free: 4.02 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009663/0.5987, allocations: 59.92 kB / 0.7123 GB, free: 3.961 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002131/0.5989, allocations: 68.31 kB / 0.7124 GB, free: 3.895 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.641e-05/0.599, allocations: 32 kB / 0.7124 GB, free: 3.863 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003182/0.6022, allocations: 2.011 MB / 0.7144 GB, free: 1.855 MB / 0.545 GB Notification: Performance of sort global known variables: time 7.1e-08/0.6022, allocations: 0 / 0.7144 GB, free: 1.855 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004039/0.6063, allocations: 0.7928 MB / 0.7152 GB, free: 1.062 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.0003932/0.6066, allocations: 143.6 kB / 0.7153 GB, free: 0.9102 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.006809/0.6135, allocations: 3.877 MB / 0.7191 GB, free: 13.05 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.893e-06/0.6135, allocations: 0 / 0.7191 GB, free: 13.05 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001548/0.615, allocations: 0.9374 MB / 0.72 GB, free: 12.1 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002033/0.617, allocations: 311.4 kB / 0.7203 GB, free: 11.8 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.013/0.6301, allocations: 7.243 MB / 0.7274 GB, free: 4.508 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003196/0.6332, allocations: 2.157 MB / 0.7295 GB, free: 2.312 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003915/0.6372, allocations: 1.662 MB / 0.7311 GB, free: 0.6445 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005844/0.6377, allocations: 195.4 kB / 0.7313 GB, free: 468 kB / 0.5606 GB Notification: Performance of SimCode: time 2.034e-06/0.6377, allocations: 0 / 0.7313 GB, free: 468 kB / 0.5606 GB Notification: Performance of Templates: time 0.2983/0.936, allocations: 28.12 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 cvode -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.568084628001088]