Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.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.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001849/0.001849, allocations: 122.8 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002403/0.002403, allocations: 202 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.468/1.468, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2399/0.2399, allocations: 46.1 MB / 344.3 MB, free: 11.46 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00128/0.00128, allocations: 71.88 kB / 481.3 MB, free: 4.039 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4238/0.4251, allocations: 62.43 MB / 0.531 GB, free: 13.57 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01144/0.4366, allocations: 8.923 MB / 0.5397 GB, free: 6.586 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008902/0.4455, allocations: 3.545 MB / 0.5432 GB, free: 3.836 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002077/0.4476, allocations: 47.94 kB / 0.5432 GB, free: 3.828 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003741/0.4514, allocations: 1.672 MB / 0.5448 GB, free: 2.695 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005095/0.4566, allocations: 1.532 MB / 0.5463 GB, free: 1.641 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001532/0.4581, allocations: 0.5605 MB / 0.5469 GB, free: 1.273 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005587/0.4637, allocations: 3.573 MB / 0.5504 GB, free: 13.79 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002692/0.4664, allocations: 2.189 MB / 0.5525 GB, free: 11.54 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001795/0.4682, allocations: 1.09 MB / 0.5536 GB, free: 10.45 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001933/0.4702, allocations: 1.534 MB / 0.5551 GB, free: 8.91 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004633/0.4706, allocations: 220 kB / 0.5553 GB, free: 8.695 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002177/0.4728, allocations: 1.096 MB / 0.5563 GB, free: 7.598 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001388/0.4742, allocations: 1.414 MB / 0.5577 GB, free: 6.18 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001706/0.476, allocations: 1.607 MB / 0.5593 GB, free: 4.562 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007125/0.4831, allocations: 5.409 MB / 0.5646 GB, free: 15.13 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.137e-06/0.4831, allocations: 4 kB / 0.5646 GB, free: 15.13 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.4831, allocations: 0 / 0.5646 GB, free: 15.13 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001473/0.4833, allocations: 0 / 0.5646 GB, free: 15.13 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: 1141 * Number of variables: 1141 Notification: Performance of Generate backend data structure: time 0.009008/0.4923, allocations: 3.761 MB / 0.5683 GB, free: 11.29 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/0.4924, allocations: 8.031 kB / 0.5683 GB, free: 11.29 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01531/0.5077, allocations: 2.343 MB / 0.5706 GB, free: 8.938 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006077/0.5138, allocations: 2.195 MB / 0.5727 GB, free: 6.691 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001366/0.514, allocations: 164.5 kB / 0.5729 GB, free: 6.527 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007215/0.5147, allocations: 220 kB / 0.5731 GB, free: 6.312 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01266/0.5274, allocations: 7.41 MB / 0.5803 GB, free: 14.28 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001381/0.5276, allocations: 39.7 kB / 0.5803 GB, free: 14.24 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003914/0.528, allocations: 103.9 kB / 0.5804 GB, free: 14.14 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002826/0.5308, allocations: 1.542 MB / 0.5819 GB, free: 12.59 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01246/0.5433, allocations: 6.315 MB / 0.5881 GB, free: 6.266 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03612/0.5795, allocations: 30.23 MB / 0.6176 GB, free: 7.109 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004545/0.584, allocations: 2.239 MB / 0.6198 GB, free: 4.723 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001508/0.5856, allocations: 1.135 MB / 0.6209 GB, free: 3.578 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004156/0.586, allocations: 315.6 kB / 0.6212 GB, free: 3.215 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.661e-05/0.5861, allocations: 54.92 kB / 0.6213 GB, free: 3.152 MB / 478.1 MB Notification: Performance of pre-optimization done (n=108): time 3.667e-06/0.5861, allocations: 0 / 0.6213 GB, free: 3.152 MB / 478.1 MB Notification: Performance of matching and sorting (n=132): time 0.03797/0.6241, allocations: 11.98 MB / 0.633 GB, free: 7.035 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000208/0.6243, allocations: 200.5 kB / 0.6332 GB, free: 6.797 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006272/0.6306, allocations: 3.612 MB / 0.6367 GB, free: 3.184 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003337/0.6309, allocations: 41.7 kB / 0.6367 GB, free: 3.137 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002714/0.6337, allocations: 2.647 MB / 0.6393 GB, free: 476 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007223/0.6344, allocations: 0.5584 MB / 0.6399 GB, free: 15.9 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001494/0.6359, allocations: 1.088 MB / 0.6409 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000198/0.6361, allocations: 305.1 kB / 0.6412 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00266/0.6388, allocations: 1.736 MB / 0.6429 GB, free: 12.76 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005524/0.6443, allocations: 5.088 MB / 0.6479 GB, free: 5.984 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009657/0.654, allocations: 7.367 MB / 0.6551 GB, free: 12.96 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001009/0.6541, allocations: 32 kB / 0.6551 GB, free: 12.93 MB / 0.5137 GB Notification: Performance of matching and sorting (n=694) (initialization): time 0.01457/0.6687, allocations: 7.071 MB / 0.662 GB, free: 5.852 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001763/0.6689, allocations: 64.2 kB / 0.6621 GB, free: 5.789 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001563/0.6691, allocations: 120 kB / 0.6622 GB, free: 5.672 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001709/0.6708, allocations: 0.6333 MB / 0.6628 GB, free: 5.035 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003928/0.6747, allocations: 1.228 MB / 0.664 GB, free: 3.805 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005323/0.68, allocations: 4.064 MB / 0.668 GB, free: 15.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004126/0.6842, allocations: 299.5 kB / 0.6683 GB, free: 15.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006062/0.6848, allocations: 331.9 kB / 0.6686 GB, free: 14.98 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 539 * Number of states: 0 () * Number of discrete variables: 29 (Distance1.arrow.twoHeadedArrow,Distance1.arrow.headAtOrigin,BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Distance1.arrowColor[3],Distance1.arrowColor[2],Distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (659): * Single equations (assignments): 655 * 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,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002823/0.6876, allocations: 1.697 MB / 0.6702 GB, free: 13.27 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005902/0.6882, allocations: 309.9 kB / 0.6705 GB, free: 12.96 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003948/0.6922, allocations: 2.088 MB / 0.6726 GB, free: 10.86 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.341e-05/0.6923, allocations: 20 kB / 0.6726 GB, free: 10.84 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.054e-05/0.6923, allocations: 4 kB / 0.6726 GB, free: 10.84 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.526e-05/0.6923, allocations: 11.95 kB / 0.6726 GB, free: 10.83 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009315/0.7016, allocations: 5.601 MB / 0.6781 GB, free: 5.137 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.688e-06/0.7016, allocations: 0 / 0.6781 GB, free: 5.137 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009305/0.7026, allocations: 199.7 kB / 0.6783 GB, free: 4.941 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001335/0.7039, allocations: 484.3 kB / 0.6787 GB, free: 4.465 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.079e-05/0.704, allocations: 27.98 kB / 0.6788 GB, free: 4.438 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003911/0.7079, allocations: 3.429 MB / 0.6821 GB, free: 0.8672 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.638e-06/0.708, allocations: 7.969 kB / 0.6821 GB, free: 0.8594 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006033/0.714, allocations: 4.185 MB / 0.6862 GB, free: 12.64 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008573/0.7149, allocations: 382.7 kB / 0.6866 GB, free: 12.24 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003131/0.7152, allocations: 19.91 kB / 0.6866 GB, free: 12.23 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001114/0.7163, allocations: 83.95 kB / 0.6867 GB, free: 12.14 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001805/0.7165, allocations: 64.56 kB / 0.6867 GB, free: 12.08 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.394e-05/0.7166, allocations: 36 kB / 0.6868 GB, free: 12.05 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003195/0.7198, allocations: 2.248 MB / 0.689 GB, free: 9.809 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7198, allocations: 0 / 0.689 GB, free: 9.809 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.003609/0.7234, allocations: 0.789 MB / 0.6897 GB, free: 9.02 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 98 * 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.0003645/0.7238, allocations: 158.3 kB / 0.6899 GB, free: 8.859 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.006472/0.7303, allocations: 4.147 MB / 0.6939 GB, free: 4.723 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.7303, allocations: 0 / 0.6939 GB, free: 4.723 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001599/0.7319, allocations: 1.136 MB / 0.695 GB, free: 3.578 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002055/0.734, allocations: 346.7 kB / 0.6954 GB, free: 3.238 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01552/0.7495, allocations: 7.189 MB / 0.7024 GB, free: 11.99 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002834/0.7524, allocations: 2.631 MB / 0.705 GB, free: 9.336 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003997/0.7564, allocations: 1.698 MB / 0.7066 GB, free: 7.633 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005675/0.757, allocations: 203.4 kB / 0.7068 GB, free: 7.434 MB / 0.5606 GB Notification: Performance of SimCode: time 1.913e-06/0.757, allocations: 0 / 0.7068 GB, free: 7.434 MB / 0.5606 GB Notification: Performance of Templates: time 0.3678/1.125, allocations: 25.77 MB / 0.732 GB, free: 178.3 MB / 0.5762 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches