Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002402/0.002402, allocations: 119.1 kB / 20.45 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002201/0.002201, allocations: 203.8 kB / 23.72 MB, free: 4.391 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.523/1.523, allocations: 230.5 MB / 257.4 MB, free: 7.77 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2415/0.2415, allocations: 46.95 MB / 360.8 MB, free: 3.906 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002432/0.002432, allocations: 79.88 kB / 0.4966 GB, free: 7.016 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3535/0.356, allocations: 66.09 MB / 0.5612 GB, free: 3.941 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.0123/0.3683, allocations: 8.03 MB / 0.569 GB, free: 11.88 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.007955/0.3762, allocations: 3.38 MB / 0.5723 GB, free: 8.488 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001448/0.3777, allocations: 59.69 kB / 0.5724 GB, free: 8.43 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004362/0.382, allocations: 1.873 MB / 0.5742 GB, free: 6.551 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004671/0.3867, allocations: 1.611 MB / 0.5758 GB, free: 4.934 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001578/0.3883, allocations: 0.5692 MB / 0.5763 GB, free: 4.363 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005349/0.3936, allocations: 3.661 MB / 0.5799 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003284/0.3969, allocations: 1.99 MB / 0.5818 GB, free: 14.65 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002166/0.3991, allocations: 1.187 MB / 0.583 GB, free: 13.46 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002808/0.4019, allocations: 1.686 MB / 0.5847 GB, free: 11.77 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007807/0.4027, allocations: 240 kB / 0.5849 GB, free: 11.53 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002227/0.4049, allocations: 1.014 MB / 0.5859 GB, free: 10.52 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001859/0.4068, allocations: 1.546 MB / 0.5874 GB, free: 8.965 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001715/0.4085, allocations: 1.258 MB / 0.5886 GB, free: 7.699 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006556/0.415, allocations: 5.727 MB / 0.5942 GB, free: 1.949 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.415, allocations: 0 / 0.5942 GB, free: 1.949 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.415, allocations: 0 / 0.5942 GB, free: 1.949 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.00013/0.4152, allocations: 0 / 0.5942 GB, free: 1.949 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.007643/0.4228, allocations: 3.858 MB / 0.598 GB, free: 14.04 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.385e-05/0.4228, allocations: 16.03 kB / 0.598 GB, free: 14.02 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0159/0.4387, allocations: 2.366 MB / 0.6003 GB, free: 11.65 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006443/0.4452, allocations: 2.197 MB / 0.6024 GB, free: 9.414 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001684/0.4454, allocations: 172.9 kB / 0.6026 GB, free: 9.242 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006715/0.446, allocations: 240 kB / 0.6028 GB, free: 9.008 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01265/0.4587, allocations: 7.837 MB / 0.6105 GB, free: 0.5078 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-05/0.4588, allocations: 35.75 kB / 0.6105 GB, free: 484 kB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000313/0.4591, allocations: 119.9 kB / 0.6106 GB, free: 364 kB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00263/0.4617, allocations: 1.593 MB / 0.6122 GB, free: 14.76 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01254/0.4743, allocations: 6.562 MB / 0.6186 GB, free: 8.184 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04317/0.5174, allocations: 29.77 MB / 0.6477 GB, free: 9.449 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005196/0.5226, allocations: 1.949 MB / 0.6496 GB, free: 7.465 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001707/0.5243, allocations: 1.038 MB / 0.6506 GB, free: 6.414 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000316/0.5247, allocations: 99.89 kB / 0.6507 GB, free: 6.316 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.469e-05/0.5247, allocations: 54.5 kB / 0.6507 GB, free: 6.254 MB / 494.1 MB Notification: Performance of pre-optimization done (n=104): time 4.117e-06/0.5247, allocations: 0 / 0.6507 GB, free: 6.254 MB / 494.1 MB Notification: Performance of matching and sorting (n=118): time 0.02568/0.5504, allocations: 9.17 MB / 0.6597 GB, free: 13.03 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001394/0.5505, allocations: 192.4 kB / 0.6599 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006567/0.5571, allocations: 3.526 MB / 0.6633 GB, free: 9.254 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001699/0.5573, allocations: 45.69 kB / 0.6634 GB, free: 9.203 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002588/0.5599, allocations: 2.832 MB / 0.6661 GB, free: 6.344 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007517/0.5606, allocations: 0.5119 MB / 0.6666 GB, free: 5.828 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002013/0.5626, allocations: 1.135 MB / 0.6677 GB, free: 4.684 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000137/0.5628, allocations: 305.1 kB / 0.668 GB, free: 4.383 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002994/0.5657, allocations: 1.689 MB / 0.6697 GB, free: 2.688 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006391/0.5721, allocations: 5.317 MB / 0.6749 GB, free: 11.56 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01108/0.5832, allocations: 7.513 MB / 0.6822 GB, free: 2.27 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001606/0.5834, allocations: 36 kB / 0.6822 GB, free: 2.234 MB / 0.5137 GB Notification: Performance of matching and sorting (n=717) (initialization): time 0.01533/0.5987, allocations: 7.091 MB / 0.6892 GB, free: 11.13 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001678/0.5989, allocations: 63.94 kB / 0.6892 GB, free: 11.07 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002184/0.5991, allocations: 125.2 kB / 0.6894 GB, free: 10.95 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001796/0.6009, allocations: 0.6565 MB / 0.69 GB, free: 10.29 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004039/0.6049, allocations: 1.251 MB / 0.6912 GB, free: 9.035 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005697/0.6106, allocations: 3.921 MB / 0.695 GB, free: 5.016 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003945/0.6146, allocations: 303.6 kB / 0.6953 GB, free: 4.719 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007824/0.6154, allocations: 344 kB / 0.6957 GB, free: 4.383 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.003564/0.6189, allocations: 1.779 MB / 0.6974 GB, free: 2.59 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007105/0.6196, allocations: 286.1 kB / 0.6977 GB, free: 2.309 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003784/0.6234, allocations: 1.8 MB / 0.6994 GB, free: 496 kB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.551e-05/0.6234, allocations: 16 kB / 0.6994 GB, free: 480 kB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.195e-05/0.6235, allocations: 4 kB / 0.6994 GB, free: 476 kB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.369e-05/0.6235, allocations: 3.984 kB / 0.6995 GB, free: 472 kB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009969/0.6334, allocations: 4.436 MB / 0.7038 GB, free: 11.96 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.166e-05/0.6334, allocations: 4 kB / 0.7038 GB, free: 11.96 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008094/0.6343, allocations: 159.8 kB / 0.7039 GB, free: 11.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001436/0.6357, allocations: 488.2 kB / 0.7044 GB, free: 11.32 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001092/0.6358, allocations: 23.94 kB / 0.7044 GB, free: 11.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004532/0.6403, allocations: 3.28 MB / 0.7076 GB, free: 7.918 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.6403, allocations: 8 kB / 0.7076 GB, free: 7.91 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006393/0.6467, allocations: 3.712 MB / 0.7113 GB, free: 4.172 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008915/0.6476, allocations: 254 kB / 0.7115 GB, free: 3.922 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000528/0.6482, allocations: 20 kB / 0.7115 GB, free: 3.902 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001197/0.6493, allocations: 55.92 kB / 0.7116 GB, free: 3.848 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002213/0.6496, allocations: 76.23 kB / 0.7117 GB, free: 3.773 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.649e-05/0.6497, allocations: 32 kB / 0.7117 GB, free: 3.742 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004447/0.6541, allocations: 2.015 MB / 0.7136 GB, free: 1.73 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6541, allocations: 0 / 0.7136 GB, free: 1.73 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005002/0.6591, allocations: 0.789 MB / 0.7144 GB, free: 0.9414 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.0005442/0.6597, allocations: 147 kB / 0.7146 GB, free: 0.7852 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.008352/0.668, allocations: 3.87 MB / 0.7183 GB, free: 12.93 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 9.758e-06/0.668, allocations: 0 / 0.7183 GB, free: 12.93 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001922/0.6699, allocations: 0.9354 MB / 0.7193 GB, free: 11.98 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00334/0.6733, allocations: 309.5 kB / 0.7195 GB, free: 11.68 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01533/0.6886, allocations: 7.24 MB / 0.7266 GB, free: 4.395 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004165/0.6928, allocations: 2.164 MB / 0.7287 GB, free: 2.191 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.00418/0.697, allocations: 1.665 MB / 0.7304 GB, free: 0.5195 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007356/0.6977, allocations: 187.4 kB / 0.7305 GB, free: 348 kB / 0.5606 GB Notification: Performance of SimCode: time 9.52e-07/0.6977, allocations: 4 kB / 0.7305 GB, free: 344 kB / 0.5606 GB Notification: Performance of Templates: time 0.3572/1.055, allocations: 25.78 MB / 0.7557 GB, free: 138.7 MB / 0.5606 GB " [Timeout remaining time 659] make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_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_trunk_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.06235801614821]