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.00166/0.00166, allocations: 81.62 kB / 21.25 MB, free: 0.5469 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.001982/0.001982, allocations: 159.8 kB / 24.5 MB, free: 3.719 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.533/1.533, allocations: 177.1 MB / 204.7 MB, free: 8.965 MB / 190.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.2139/0.2139, allocations: 34.26 MB / 295.4 MB, free: 14.47 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.002832/0.002832, allocations: 75.88 kB / 443.1 MB, free: 6.484 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3274/0.3302, allocations: 66.06 MB / 0.4973 GB, free: 29.8 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.007697/0.3379, allocations: 8.029 MB / 0.5051 GB, free: 24.57 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.005166/0.3431, allocations: 3.389 MB / 0.5084 GB, free: 22.45 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006344/0.3437, allocations: 54.66 kB / 0.5085 GB, free: 22.44 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002757/0.3465, allocations: 1.861 MB / 0.5103 GB, free: 21.66 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002633/0.3491, allocations: 1.62 MB / 0.5119 GB, free: 20.94 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001036/0.3501, allocations: 0.5732 MB / 0.5124 GB, free: 20.71 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.00421/0.3544, allocations: 3.666 MB / 0.516 GB, free: 19.32 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002199/0.3566, allocations: 1.987 MB / 0.518 GB, free: 18.39 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00149/0.358, allocations: 1.186 MB / 0.5191 GB, free: 17.89 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002111/0.3602, allocations: 1.692 MB / 0.5208 GB, free: 17.32 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004831/0.3606, allocations: 241 kB / 0.521 GB, free: 17.32 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001874/0.3625, allocations: 1.018 MB / 0.522 GB, free: 17.13 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001484/0.364, allocations: 1.541 MB / 0.5235 GB, free: 16.56 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001301/0.3653, allocations: 1.256 MB / 0.5247 GB, free: 15.79 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006522/0.3718, allocations: 5.728 MB / 0.5303 GB, free: 13.51 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.3718, allocations: 1.188 kB / 0.5303 GB, free: 13.51 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3718, allocations: 4 kB / 0.5303 GB, free: 13.5 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001417/0.372, allocations: 0 / 0.5303 GB, free: 13.5 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.007642/0.3796, allocations: 3.86 MB / 0.5341 GB, free: 10.77 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/0.3797, allocations: 9.75 kB / 0.5341 GB, free: 10.77 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01625/0.3959, allocations: 2.423 MB / 0.5365 GB, free: 9.629 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006256/0.4022, allocations: 2.192 MB / 0.5386 GB, free: 8.277 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001557/0.4023, allocations: 177.1 kB / 0.5388 GB, free: 8.191 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007821/0.4031, allocations: 237.2 kB / 0.539 GB, free: 8.105 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0106/0.4137, allocations: 7.847 MB / 0.5467 GB, free: 2.125 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.611e-05/0.4138, allocations: 31.75 kB / 0.5467 GB, free: 2.094 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002881/0.4141, allocations: 115.9 kB / 0.5468 GB, free: 1.98 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002063/0.4161, allocations: 1.586 MB / 0.5483 GB, free: 400 kB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01151/0.4276, allocations: 6.574 MB / 0.5548 GB, free: 9.805 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03816/0.4658, allocations: 29.86 MB / 0.5839 GB, free: 10.99 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004926/0.4707, allocations: 2.006 MB / 0.5859 GB, free: 8.945 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001551/0.4723, allocations: 1.047 MB / 0.5869 GB, free: 7.887 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002696/0.4725, allocations: 91.73 kB / 0.587 GB, free: 7.797 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.863e-05/0.4726, allocations: 54.44 kB / 0.587 GB, free: 7.734 MB / 494.1 MB Notification: Performance of pre-optimization done (n=104): time 3.416e-06/0.4726, allocations: 0 / 0.587 GB, free: 7.734 MB / 494.1 MB Notification: Performance of matching and sorting (n=118): time 0.02659/0.4992, allocations: 9.41 MB / 0.5962 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001324/0.4993, allocations: 192.4 kB / 0.5964 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006183/0.5055, allocations: 3.518 MB / 0.5999 GB, free: 10.51 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001561/0.5057, allocations: 41.7 kB / 0.5999 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002374/0.508, allocations: 2.839 MB / 0.6027 GB, free: 7.594 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006404/0.5087, allocations: 0.508 MB / 0.6032 GB, free: 7.082 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001913/0.5106, allocations: 1.139 MB / 0.6043 GB, free: 5.934 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001278/0.5107, allocations: 305.1 kB / 0.6046 GB, free: 5.633 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00291/0.5136, allocations: 1.693 MB / 0.6062 GB, free: 3.934 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006373/0.52, allocations: 5.313 MB / 0.6114 GB, free: 12.81 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01018/0.5302, allocations: 7.513 MB / 0.6187 GB, free: 3.516 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001972/0.5304, allocations: 36 kB / 0.6188 GB, free: 3.48 MB / 0.5137 GB Notification: Performance of matching and sorting (n=717) (initialization): time 0.01444/0.5448, allocations: 7.091 MB / 0.6257 GB, free: 12.38 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001867/0.545, allocations: 63.94 kB / 0.6258 GB, free: 12.32 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002452/0.5453, allocations: 124 kB / 0.6259 GB, free: 12.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001876/0.5471, allocations: 0.6531 MB / 0.6265 GB, free: 11.54 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004221/0.5514, allocations: 1.255 MB / 0.6277 GB, free: 10.28 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005495/0.5569, allocations: 3.913 MB / 0.6316 GB, free: 6.27 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004312/0.5612, allocations: 303.6 kB / 0.6319 GB, free: 5.973 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001082/0.5622, allocations: 344 kB / 0.6322 GB, free: 5.637 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.004296/0.5665, allocations: 1.779 MB / 0.6339 GB, free: 3.844 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007967/0.5673, allocations: 282.1 kB / 0.6342 GB, free: 3.566 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00421/0.5716, allocations: 1.804 MB / 0.636 GB, free: 1.738 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.375e-05/0.5716, allocations: 16 kB / 0.636 GB, free: 1.723 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.08e-05/0.5716, allocations: 0 / 0.636 GB, free: 1.723 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.911e-05/0.5716, allocations: 7.984 kB / 0.636 GB, free: 1.715 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0118/0.5834, allocations: 4.464 MB / 0.6403 GB, free: 13.19 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.114e-05/0.5834, allocations: 0 / 0.6403 GB, free: 13.19 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008432/0.5843, allocations: 159.8 kB / 0.6405 GB, free: 13.04 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001493/0.5858, allocations: 496.5 kB / 0.641 GB, free: 12.55 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001329/0.5859, allocations: 23.94 kB / 0.641 GB, free: 12.52 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004478/0.5904, allocations: 3.28 MB / 0.6442 GB, free: 9.145 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.019e-06/0.5904, allocations: 4.031 kB / 0.6442 GB, free: 9.141 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0066/0.597, allocations: 3.702 MB / 0.6478 GB, free: 5.406 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000919/0.5979, allocations: 262.1 kB / 0.6481 GB, free: 5.148 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005932/0.5985, allocations: 16 kB / 0.6481 GB, free: 5.133 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001367/0.5999, allocations: 59.92 kB / 0.6481 GB, free: 5.074 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002139/0.6001, allocations: 68.25 kB / 0.6482 GB, free: 5.008 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001032/0.6002, allocations: 32 kB / 0.6482 GB, free: 4.977 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00489/0.6051, allocations: 2.015 MB / 0.6502 GB, free: 2.965 MB / 0.545 GB Notification: Performance of sort global known variables: time 9e-08/0.6051, allocations: 0 / 0.6502 GB, free: 2.965 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005804/0.6109, allocations: 0.7928 MB / 0.651 GB, free: 2.172 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.0006169/0.6115, allocations: 139.3 kB / 0.6511 GB, free: 2.023 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.008277/0.6198, allocations: 3.879 MB / 0.6549 GB, free: 14.16 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.394e-06/0.6198, allocations: 192 / 0.6549 GB, free: 14.16 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001881/0.6217, allocations: 0.9345 MB / 0.6558 GB, free: 13.21 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002905/0.6246, allocations: 321 kB / 0.6561 GB, free: 12.91 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0171/0.6417, allocations: 7.231 MB / 0.6632 GB, free: 5.633 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004735/0.6464, allocations: 2.164 MB / 0.6653 GB, free: 3.434 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004666/0.6511, allocations: 1.662 MB / 0.6669 GB, free: 1.766 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007017/0.6518, allocations: 188.5 kB / 0.6671 GB, free: 1.582 MB / 0.5606 GB Notification: Performance of SimCode: time 1.533e-06/0.6518, allocations: 4 kB / 0.6671 GB, free: 1.578 MB / 0.5606 GB Notification: Performance of Templates: time 0.05375/0.7055, allocations: 22.34 MB / 0.6889 GB, free: 11.58 MB / 0.5919 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 -s ida -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/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_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: 6.853061166009866]