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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) 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=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001189/0.001188, allocations: 119.9 kB / 18.42 MB, free: 4.555 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001244/0.001243, allocations: 207.5 kB / 19.36 MB, free: 3.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.398/1.398, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2219/0.2219, allocations: 46.11 MB / 344.9 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001336/0.001336, allocations: 71.88 kB / 419 MB, free: 19.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1252/0.1265, allocations: 62.45 MB / 481.5 MB, free: 4.539 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01017/0.1367, allocations: 9.035 MB / 490.5 MB, free: 11.46 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007461/0.1442, allocations: 3.57 MB / 494.1 MB, free: 7.879 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001426/0.1457, allocations: 47.88 kB / 494.1 MB, free: 7.832 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003325/0.149, allocations: 1.912 MB / 496 MB, free: 5.914 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004177/0.1532, allocations: 1.58 MB / 497.6 MB, free: 4.332 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001297/0.1545, allocations: 0.5653 MB / 498.2 MB, free: 3.766 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004933/0.1595, allocations: 3.654 MB / 0.4901 GB, free: 104 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002669/0.1622, allocations: 2.417 MB / 0.4924 GB, free: 13.63 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001628/0.1638, allocations: 1.164 MB / 0.4936 GB, free: 12.46 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00198/0.1658, allocations: 1.631 MB / 0.4952 GB, free: 10.82 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004564/0.1663, allocations: 240 kB / 0.4954 GB, free: 10.59 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001755/0.1681, allocations: 1.112 MB / 0.4965 GB, free: 9.477 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001322/0.1694, allocations: 1.508 MB / 0.4979 GB, free: 7.965 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001558/0.171, allocations: 1.716 MB / 0.4996 GB, free: 6.238 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005771/0.1767, allocations: 5.695 MB / 0.5052 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.093e-06/0.1768, allocations: 0 / 0.5052 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1768, allocations: 0 / 0.5052 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001243/0.1769, allocations: 0 / 0.5052 GB, free: 0.5234 MB / 382.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.2365/0.4134, allocations: 3.822 MB / 0.5089 GB, free: 39.71 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/0.4135, allocations: 11.12 kB / 0.5089 GB, free: 39.71 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01417/0.4277, allocations: 2.343 MB / 0.5112 GB, free: 39.41 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006257/0.4339, allocations: 2.245 MB / 0.5134 GB, free: 38.35 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001241/0.4341, allocations: 177.5 kB / 0.5136 GB, free: 38.29 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000553/0.4346, allocations: 240.2 kB / 0.5138 GB, free: 38.24 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0119/0.4466, allocations: 7.798 MB / 0.5214 GB, free: 34.32 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.749e-05/0.4467, allocations: 44.11 kB / 0.5215 GB, free: 34.3 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003119/0.447, allocations: 117.3 kB / 0.5216 GB, free: 34.22 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002206/0.4492, allocations: 1.578 MB / 0.5231 GB, free: 33.6 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009174/0.4584, allocations: 6.585 MB / 0.5295 GB, free: 29.73 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02899/0.4874, allocations: 31.62 MB / 0.5604 GB, free: 13.17 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004937/0.4924, allocations: 2.494 MB / 0.5629 GB, free: 10.53 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001446/0.4939, allocations: 1.128 MB / 0.564 GB, free: 9.387 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004316/0.4943, allocations: 323.2 kB / 0.5643 GB, free: 9.016 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.824e-05/0.4944, allocations: 42.56 kB / 0.5643 GB, free: 8.965 MB / 398.1 MB Notification: Performance of pre-optimization done (n=104): time 4.318e-06/0.4944, allocations: 0 / 0.5643 GB, free: 8.965 MB / 398.1 MB Notification: Performance of matching and sorting (n=118): time 0.02477/0.5192, allocations: 9.136 MB / 0.5732 GB, free: 15.71 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001243/0.5194, allocations: 196.4 kB / 0.5734 GB, free: 15.48 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007064/0.5264, allocations: 3.747 MB / 0.5771 GB, free: 11.74 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000248/0.5267, allocations: 45.7 kB / 0.5771 GB, free: 11.69 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002039/0.5288, allocations: 2.7 MB / 0.5798 GB, free: 8.949 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000577/0.5293, allocations: 494 kB / 0.5802 GB, free: 8.461 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001459/0.5308, allocations: 1.119 MB / 0.5813 GB, free: 7.332 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001128/0.5309, allocations: 305.1 kB / 0.5816 GB, free: 7.031 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002462/0.5334, allocations: 1.701 MB / 0.5833 GB, free: 5.328 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004948/0.5384, allocations: 5.259 MB / 0.5884 GB, free: 14.27 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00854/0.5469, allocations: 7.513 MB / 0.5957 GB, free: 4.984 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.867e-05/0.547, allocations: 36 kB / 0.5958 GB, free: 4.949 MB / 430.1 MB Notification: Performance of matching and sorting (n=717) (initialization): time 0.01255/0.5596, allocations: 7.125 MB / 0.6027 GB, free: 13.81 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.35e-05/0.5597, allocations: 60 kB / 0.6028 GB, free: 13.75 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001302/0.5598, allocations: 128 kB / 0.6029 GB, free: 13.62 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001514/0.5614, allocations: 0.6487 MB / 0.6035 GB, free: 12.97 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003389/0.5648, allocations: 1.255 MB / 0.6048 GB, free: 11.71 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00482/0.5696, allocations: 4.068 MB / 0.6087 GB, free: 7.508 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003697/0.5733, allocations: 303.5 kB / 0.609 GB, free: 7.211 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006886/0.574, allocations: 344 kB / 0.6094 GB, free: 6.875 MB / 446.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.002841/0.5769, allocations: 1.787 MB / 0.6111 GB, free: 5.078 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006268/0.5775, allocations: 300.1 kB / 0.6114 GB, free: 4.781 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003474/0.581, allocations: 1.832 MB / 0.6132 GB, free: 2.938 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.64e-05/0.581, allocations: 16 kB / 0.6132 GB, free: 2.922 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.091e-05/0.581, allocations: 7.938 kB / 0.6132 GB, free: 2.914 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.291e-05/0.5811, allocations: 11.97 kB / 0.6132 GB, free: 2.902 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009782/0.5908, allocations: 5.204 MB / 0.6183 GB, free: 13.62 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-05/0.5909, allocations: 3.984 kB / 0.6183 GB, free: 13.62 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007624/0.5917, allocations: 155.8 kB / 0.6185 GB, free: 13.46 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001293/0.593, allocations: 489.1 kB / 0.6189 GB, free: 12.98 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001076/0.5931, allocations: 31.86 kB / 0.619 GB, free: 12.95 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003995/0.5971, allocations: 3.425 MB / 0.6223 GB, free: 9.391 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.06e-06/0.5971, allocations: 7.969 kB / 0.6223 GB, free: 9.383 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005434/0.6026, allocations: 3.728 MB / 0.6259 GB, free: 5.629 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001052/0.6036, allocations: 357 kB / 0.6263 GB, free: 5.258 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006347/0.6043, allocations: 19.98 kB / 0.6263 GB, free: 5.238 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001046/0.6053, allocations: 63.83 kB / 0.6264 GB, free: 5.18 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001711/0.6055, allocations: 60.42 kB / 0.6264 GB, free: 5.121 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.124e-05/0.6056, allocations: 36.06 kB / 0.6265 GB, free: 5.086 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003368/0.609, allocations: 2.334 MB / 0.6287 GB, free: 2.766 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.609, allocations: 0 / 0.6287 GB, free: 2.766 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004136/0.6131, allocations: 0.793 MB / 0.6295 GB, free: 1.973 MB / 462.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.0004577/0.6136, allocations: 147 kB / 0.6297 GB, free: 1.82 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006208/0.6198, allocations: 4.024 MB / 0.6336 GB, free: 13.82 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/0.6198, allocations: 0 / 0.6336 GB, free: 13.82 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00131/0.6212, allocations: 1.003 MB / 0.6346 GB, free: 12.8 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002209/0.6234, allocations: 363.5 kB / 0.6349 GB, free: 12.45 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01323/0.6366, allocations: 7.125 MB / 0.6419 GB, free: 5.285 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002869/0.6396, allocations: 2.708 MB / 0.6445 GB, free: 2.543 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003643/0.6432, allocations: 1.698 MB / 0.6462 GB, free: 0.8438 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005503/0.6438, allocations: 203.4 kB / 0.6464 GB, free: 0.6484 MB / 478.1 MB Notification: Performance of SimCode: time 1.363e-06/0.6438, allocations: 3.938 kB / 0.6464 GB, free: 0.6445 MB / 478.1 MB Notification: Performance of Templates: time 0.04779/0.6916, allocations: 24.04 MB / 0.6698 GB, free: 8.68 MB / 0.4981 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.makefile (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 cvode -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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) Reference file matches