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.001865/0.001865, allocations: 85.58 kB / 20.68 MB, free: 1.035 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.002211/0.002211, allocations: 158.3 kB / 23.95 MB, free: 4.168 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.566/1.566, allocations: 177 MB / 204.1 MB, free: 9.145 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.244/0.244, allocations: 34.26 MB / 294.8 MB, free: 14.52 MB / 286.1 MB " [Timeout remaining time 180] 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 1.663e-06/1.663e-06, allocations: 0 / 442.7 MB, free: 5.289 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.272e-05/2.439e-05, allocations: 2.281 kB / 442.7 MB, free: 5.285 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.193/0.1931, allocations: 8.028 MB / 450.7 MB, free: 15.09 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006279/0.1994, allocations: 3.388 MB / 454.1 MB, free: 13.38 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00101/0.2004, allocations: 59.56 kB / 454.1 MB, free: 13.36 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003679/0.204, allocations: 1.958 MB / 456.1 MB, free: 12.54 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004/0.208, allocations: 1.666 MB / 457.7 MB, free: 11.79 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001434/0.2095, allocations: 0.6251 MB / 458.4 MB, free: 11.53 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006214/0.2157, allocations: 4.036 MB / 462.4 MB, free: 9.996 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003183/0.2189, allocations: 2.253 MB / 464.7 MB, free: 8.984 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00259/0.2215, allocations: 1.779 MB / 466.4 MB, free: 8.227 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002399/0.2239, allocations: 1.794 MB / 468.2 MB, free: 7.336 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004711/0.2243, allocations: 245.8 kB / 468.5 MB, free: 7.336 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00205/0.2264, allocations: 1.071 MB / 469.5 MB, free: 6.93 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001255/0.2276, allocations: 1.605 MB / 471.2 MB, free: 5.98 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001062/0.2287, allocations: 0.9685 MB / 472.1 MB, free: 5.422 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005056/0.2338, allocations: 5.773 MB / 477.9 MB, free: 1.578 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.2338, allocations: 4 kB / 477.9 MB, free: 1.574 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.2338, allocations: 0 / 477.9 MB, free: 1.574 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.599e-05/0.2339, allocations: 2.688 kB / 477.9 MB, free: 1.574 MB / 366.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.00754/0.2414, allocations: 3.868 MB / 481.8 MB, free: 14.71 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.854e-05/0.2414, allocations: 16.03 kB / 481.8 MB, free: 14.7 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01751/0.2589, allocations: 2.421 MB / 484.2 MB, free: 12.27 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005392/0.2643, allocations: 2.182 MB / 486.4 MB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001665/0.2645, allocations: 176.8 kB / 486.6 MB, free: 9.875 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004885/0.265, allocations: 236.2 kB / 486.8 MB, free: 9.645 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01212/0.2771, allocations: 7.853 MB / 494.6 MB, free: 1.129 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.693e-05/0.2772, allocations: 39.64 kB / 494.7 MB, free: 1.09 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003354/0.2775, allocations: 119.9 kB / 494.8 MB, free: 0.9727 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00282/0.2804, allocations: 1.582 MB / 496.4 MB, free: 15.38 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01189/0.2923, allocations: 6.573 MB / 0.4912 GB, free: 8.812 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04111/0.3334, allocations: 29.94 MB / 0.5204 GB, free: 9.914 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005207/0.3386, allocations: 1.991 MB / 0.5223 GB, free: 7.887 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001601/0.3402, allocations: 1.042 MB / 0.5234 GB, free: 6.832 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000288/0.3405, allocations: 87.94 kB / 0.5234 GB, free: 6.746 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.32e-05/0.3405, allocations: 47.73 kB / 0.5235 GB, free: 6.691 MB / 430.1 MB Notification: Performance of pre-optimization done (n=104): time 4.749e-06/0.3405, allocations: 0 / 0.5235 GB, free: 6.691 MB / 430.1 MB Notification: Performance of matching and sorting (n=118): time 0.02685/0.3674, allocations: 9.504 MB / 0.5328 GB, free: 13.13 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001548/0.3675, allocations: 196.3 kB / 0.533 GB, free: 12.9 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005516/0.373, allocations: 3.604 MB / 0.5365 GB, free: 9.281 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002414/0.3733, allocations: 41.7 kB / 0.5365 GB, free: 9.234 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002308/0.3756, allocations: 2.804 MB / 0.5393 GB, free: 6.398 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006833/0.3763, allocations: 0.5042 MB / 0.5398 GB, free: 5.891 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001598/0.3779, allocations: 1.115 MB / 0.5408 GB, free: 4.766 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.378, allocations: 309 kB / 0.5411 GB, free: 4.461 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002808/0.3808, allocations: 1.693 MB / 0.5428 GB, free: 2.762 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005961/0.3868, allocations: 5.306 MB / 0.548 GB, free: 11.64 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009962/0.3967, allocations: 7.512 MB / 0.5553 GB, free: 2.355 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001084/0.3969, allocations: 36.19 kB / 0.5553 GB, free: 2.32 MB / 462.1 MB Notification: Performance of matching and sorting (n=717) (initialization): time 0.01465/0.4115, allocations: 7.101 MB / 0.5623 GB, free: 11.21 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001022/0.4116, allocations: 60 kB / 0.5623 GB, free: 11.16 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001622/0.4118, allocations: 128 kB / 0.5625 GB, free: 11.03 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00172/0.4135, allocations: 0.6609 MB / 0.5631 GB, free: 10.37 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003743/0.4172, allocations: 1.248 MB / 0.5643 GB, free: 9.117 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005588/0.4228, allocations: 3.934 MB / 0.5682 GB, free: 5.082 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004291/0.4271, allocations: 335.5 kB / 0.5685 GB, free: 4.754 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009005/0.428, allocations: 351.9 kB / 0.5688 GB, free: 4.41 MB / 478.1 MB 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.00347/0.4315, allocations: 1.771 MB / 0.5705 GB, free: 2.625 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006733/0.4322, allocations: 278.1 kB / 0.5708 GB, free: 2.352 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00378/0.4359, allocations: 1.804 MB / 0.5726 GB, free: 0.5312 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.049e-05/0.436, allocations: 16 kB / 0.5726 GB, free: 0.5156 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.436, allocations: 0 / 0.5726 GB, free: 0.5156 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.573e-05/0.436, allocations: 11.97 kB / 0.5726 GB, free: 0.5039 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00974/0.4457, allocations: 4.518 MB / 0.577 GB, free: 11.93 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.682e-06/0.4457, allocations: 3.938 kB / 0.577 GB, free: 11.92 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000841/0.4466, allocations: 159.8 kB / 0.5772 GB, free: 11.77 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001477/0.4481, allocations: 488.3 kB / 0.5776 GB, free: 11.29 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.875e-05/0.4481, allocations: 16 kB / 0.5776 GB, free: 11.27 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004679/0.4528, allocations: 3.323 MB / 0.5809 GB, free: 7.848 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.4528, allocations: 0 / 0.5809 GB, free: 7.848 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006298/0.4591, allocations: 3.709 MB / 0.5845 GB, free: 4.109 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008459/0.46, allocations: 281.9 kB / 0.5848 GB, free: 3.832 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003234/0.4603, allocations: 23.94 kB / 0.5848 GB, free: 3.809 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001176/0.4615, allocations: 87.86 kB / 0.5849 GB, free: 3.723 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002048/0.4617, allocations: 64.38 kB / 0.585 GB, free: 3.66 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.553e-05/0.4618, allocations: 32 kB / 0.585 GB, free: 3.629 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003449/0.4652, allocations: 2.077 MB / 0.587 GB, free: 1.555 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4652, allocations: 0 / 0.587 GB, free: 1.555 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004326/0.4695, allocations: 0.8748 MB / 0.5879 GB, free: 0.6797 MB / 494.1 MB 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.0004371/0.47, allocations: 159 kB / 0.588 GB, free: 0.5117 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.006955/0.4769, allocations: 3.873 MB / 0.5918 GB, free: 12.65 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/0.4769, allocations: 0 / 0.5918 GB, free: 12.65 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001575/0.4785, allocations: 0.9381 MB / 0.5927 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00225/0.4808, allocations: 312.5 kB / 0.593 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01386/0.4946, allocations: 7.203 MB / 0.6001 GB, free: 4.16 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002986/0.4976, allocations: 2.16 MB / 0.6022 GB, free: 1.961 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.003875/0.5015, allocations: 1.669 MB / 0.6038 GB, free: 292 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006174/0.5021, allocations: 196.5 kB / 0.604 GB, free: 96 kB / 0.4981 GB Notification: Performance of SimCode: time 9.41e-07/0.5021, allocations: 4 kB / 0.604 GB, free: 92 kB / 0.4981 GB Notification: Performance of Templates: time 0.05435/0.5565, allocations: 23.58 MB / 0.627 GB, free: 8.859 MB / 0.5294 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: 6.648131135851145]