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.001211/0.001211, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001282/0.001282, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.443/1.443, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2167/0.2167, allocations: 46.11 MB / 344.1 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002089/0.002089, allocations: 79.55 kB / 417.6 MB, free: 19.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1731/0.1752, allocations: 62.45 MB / 480 MB, free: 5.293 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01151/0.1868, allocations: 9.039 MB / 489.1 MB, free: 12.21 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007238/0.1941, allocations: 3.566 MB / 492.6 MB, free: 8.633 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009874/0.1951, allocations: 51.88 kB / 492.7 MB, free: 8.582 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003348/0.1984, allocations: 1.912 MB / 494.6 MB, free: 6.664 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003449/0.2019, allocations: 1.576 MB / 496.2 MB, free: 5.086 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001234/0.2032, allocations: 0.5691 MB / 496.7 MB, free: 4.516 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004691/0.2079, allocations: 3.654 MB / 0.4887 GB, free: 0.8516 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002966/0.2109, allocations: 2.417 MB / 0.491 GB, free: 14.38 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001778/0.2127, allocations: 1.156 MB / 0.4921 GB, free: 13.22 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002168/0.2148, allocations: 1.631 MB / 0.4937 GB, free: 11.58 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005907/0.2155, allocations: 240 kB / 0.494 GB, free: 11.35 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002165/0.2176, allocations: 1.116 MB / 0.4951 GB, free: 10.23 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001484/0.2191, allocations: 1.508 MB / 0.4965 GB, free: 8.719 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002075/0.2212, allocations: 1.712 MB / 0.4982 GB, free: 6.996 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007291/0.2285, allocations: 5.487 MB / 0.5036 GB, free: 1.492 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.2286, allocations: 4 kB / 0.5036 GB, free: 1.488 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.2286, allocations: 0 / 0.5036 GB, free: 1.488 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001705/0.2287, allocations: 0 / 0.5036 GB, free: 1.488 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.2263/0.4551, allocations: 3.825 MB / 0.5073 GB, free: 39.4 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.41e-05/0.4552, allocations: 9.625 kB / 0.5073 GB, free: 39.4 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01694/0.4721, allocations: 2.35 MB / 0.5096 GB, free: 39.1 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008139/0.4803, allocations: 2.208 MB / 0.5118 GB, free: 38.04 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002663/0.4806, allocations: 177.4 kB / 0.5119 GB, free: 37.98 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00103/0.4816, allocations: 240.8 kB / 0.5122 GB, free: 37.93 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01678/0.4984, allocations: 7.79 MB / 0.5198 GB, free: 34.11 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001208/0.4986, allocations: 47.73 kB / 0.5198 GB, free: 34.07 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003692/0.499, allocations: 117.2 kB / 0.5199 GB, free: 34 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002694/0.5017, allocations: 1.578 MB / 0.5215 GB, free: 33.38 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01213/0.5138, allocations: 6.589 MB / 0.5279 GB, free: 29.77 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0298/0.5436, allocations: 31.75 MB / 0.5589 GB, free: 13.1 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00516/0.5488, allocations: 2.492 MB / 0.5613 GB, free: 10.47 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001614/0.5505, allocations: 1.12 MB / 0.5624 GB, free: 9.336 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004357/0.5509, allocations: 327.2 kB / 0.5627 GB, free: 8.961 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.123e-05/0.551, allocations: 42.56 kB / 0.5628 GB, free: 8.91 MB / 398.1 MB Notification: Performance of pre-optimization done (n=104): time 3.857e-06/0.551, allocations: 0 / 0.5628 GB, free: 8.91 MB / 398.1 MB Notification: Performance of matching and sorting (n=118): time 0.02928/0.5803, allocations: 9.141 MB / 0.5717 GB, free: 15.66 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001458/0.5805, allocations: 188.5 kB / 0.5719 GB, free: 15.43 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006085/0.5866, allocations: 3.751 MB / 0.5756 GB, free: 11.68 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002866/0.5869, allocations: 49.64 kB / 0.5756 GB, free: 11.63 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002428/0.5894, allocations: 2.7 MB / 0.5782 GB, free: 8.891 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009085/0.5903, allocations: 498 kB / 0.5787 GB, free: 8.398 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001826/0.5921, allocations: 1.126 MB / 0.5798 GB, free: 7.262 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001564/0.5923, allocations: 301.1 kB / 0.5801 GB, free: 6.965 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003187/0.5955, allocations: 1.693 MB / 0.5818 GB, free: 5.266 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00571/0.6012, allocations: 5.267 MB / 0.5869 GB, free: 14.2 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0106/0.6119, allocations: 7.501 MB / 0.5942 GB, free: 4.926 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001218/0.612, allocations: 39.94 kB / 0.5943 GB, free: 4.887 MB / 430.1 MB Notification: Performance of matching and sorting (n=717) (initialization): time 0.01387/0.6259, allocations: 7.128 MB / 0.6012 GB, free: 13.75 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.79e-05/0.626, allocations: 60 kB / 0.6013 GB, free: 13.69 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001214/0.6261, allocations: 127.9 kB / 0.6014 GB, free: 13.57 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001593/0.6277, allocations: 0.6566 MB / 0.602 GB, free: 12.91 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003535/0.6313, allocations: 1.255 MB / 0.6033 GB, free: 11.65 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004856/0.6362, allocations: 4.075 MB / 0.6072 GB, free: 7.434 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003909/0.6401, allocations: 295.5 kB / 0.6075 GB, free: 7.145 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004775/0.6406, allocations: 352 kB / 0.6079 GB, free: 6.801 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.002565/0.6432, allocations: 1.771 MB / 0.6096 GB, free: 5.016 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005459/0.6437, allocations: 300.1 kB / 0.6099 GB, free: 4.719 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003316/0.647, allocations: 1.84 MB / 0.6117 GB, free: 2.867 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.386e-05/0.6471, allocations: 16 kB / 0.6117 GB, free: 2.852 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.866e-06/0.6471, allocations: 0 / 0.6117 GB, free: 2.852 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.215e-05/0.6471, allocations: 7.984 kB / 0.6117 GB, free: 2.844 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009106/0.6562, allocations: 5.234 MB / 0.6168 GB, free: 13.53 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.506e-06/0.6563, allocations: 32 / 0.6168 GB, free: 13.53 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007715/0.657, allocations: 159.8 kB / 0.617 GB, free: 13.38 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00136/0.6584, allocations: 492.2 kB / 0.6174 GB, free: 12.89 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.592e-05/0.6585, allocations: 23.92 kB / 0.6175 GB, free: 12.87 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004111/0.6626, allocations: 3.429 MB / 0.6208 GB, free: 9.297 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.003e-06/0.6626, allocations: 3.938 kB / 0.6208 GB, free: 9.293 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005696/0.6683, allocations: 3.729 MB / 0.6244 GB, free: 5.539 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009235/0.6693, allocations: 365 kB / 0.6248 GB, free: 5.16 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003053/0.6696, allocations: 16 kB / 0.6248 GB, free: 5.145 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009703/0.6706, allocations: 59.92 kB / 0.6249 GB, free: 5.086 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001931/0.6708, allocations: 60.42 kB / 0.6249 GB, free: 5.027 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.863e-05/0.6709, allocations: 32 kB / 0.625 GB, free: 4.996 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003575/0.6744, allocations: 2.338 MB / 0.6272 GB, free: 2.672 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6745, allocations: 0 / 0.6272 GB, free: 2.672 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004828/0.6793, allocations: 0.7943 MB / 0.628 GB, free: 1.883 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.0004102/0.6797, allocations: 141.7 kB / 0.6282 GB, free: 1.738 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007013/0.6867, allocations: 4.322 MB / 0.6324 GB, free: 13.44 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.681e-06/0.6868, allocations: 0 / 0.6324 GB, free: 13.44 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00139/0.6882, allocations: 1.007 MB / 0.6334 GB, free: 12.42 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002104/0.6903, allocations: 357.3 kB / 0.6337 GB, free: 12.07 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01196/0.7022, allocations: 7.215 MB / 0.6407 GB, free: 4.828 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002647/0.7049, allocations: 2.712 MB / 0.6434 GB, free: 2.09 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004104/0.7091, allocations: 1.695 MB / 0.645 GB, free: 400 kB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005395/0.7096, allocations: 207.4 kB / 0.6452 GB, free: 192 kB / 478.1 MB Notification: Performance of SimCode: time 1.262e-06/0.7096, allocations: 0 / 0.6452 GB, free: 192 kB / 478.1 MB Notification: Performance of Templates: time 0.05893/0.7686, allocations: 28.78 MB / 0.6734 GB, free: 3.469 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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) Reference file matches