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.001139/0.001139, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001346/0.001346, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.409/1.409, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2274/0.2274, allocations: 46.11 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001394/0.001394, allocations: 79.88 kB / 481.3 MB, free: 4.07 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4191/0.4205, allocations: 62.43 MB / 0.531 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01102/0.4315, allocations: 9.052 MB / 0.5398 GB, free: 6.523 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008986/0.4406, allocations: 3.57 MB / 0.5433 GB, free: 3.758 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001889/0.4425, allocations: 49.09 kB / 0.5434 GB, free: 3.75 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004034/0.4466, allocations: 1.91 MB / 0.5452 GB, free: 2.465 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004546/0.4512, allocations: 1.606 MB / 0.5468 GB, free: 1.352 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001509/0.4527, allocations: 0.572 MB / 0.5474 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005442/0.4581, allocations: 3.657 MB / 0.5509 GB, free: 13.28 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003422/0.4616, allocations: 2.427 MB / 0.5533 GB, free: 10.8 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002427/0.464, allocations: 1.156 MB / 0.5544 GB, free: 9.637 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002822/0.4668, allocations: 1.639 MB / 0.556 GB, free: 7.992 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009961/0.4679, allocations: 240 kB / 0.5563 GB, free: 7.758 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002753/0.4706, allocations: 1.123 MB / 0.5573 GB, free: 6.633 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002039/0.4727, allocations: 1.516 MB / 0.5588 GB, free: 5.113 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00347/0.4762, allocations: 1.716 MB / 0.5605 GB, free: 3.387 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007238/0.4834, allocations: 5.684 MB / 0.5661 GB, free: 13.68 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.193e-06/0.4834, allocations: 0 / 0.5661 GB, free: 13.68 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.504e-06/0.4835, allocations: 3.938 kB / 0.5661 GB, free: 13.68 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001261/0.4836, allocations: 4 kB / 0.5661 GB, free: 13.68 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: 1211 * Number of variables: 1211 Notification: Performance of Generate backend data structure: time 0.007845/0.4914, allocations: 3.826 MB / 0.5698 GB, free: 9.781 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.52e-05/0.4915, allocations: 8.031 kB / 0.5698 GB, free: 9.773 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01458/0.5061, allocations: 2.348 MB / 0.5721 GB, free: 7.418 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005099/0.5112, allocations: 2.245 MB / 0.5743 GB, free: 5.121 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001188/0.5114, allocations: 176.8 kB / 0.5745 GB, free: 4.945 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004991/0.5119, allocations: 247.9 kB / 0.5747 GB, free: 4.703 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01115/0.523, allocations: 7.783 MB / 0.5823 GB, free: 12.27 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.073e-05/0.5232, allocations: 43.59 kB / 0.5823 GB, free: 12.23 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002926/0.5235, allocations: 119.9 kB / 0.5825 GB, free: 12.11 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002453/0.5259, allocations: 1.578 MB / 0.584 GB, free: 10.53 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01311/0.539, allocations: 6.586 MB / 0.5904 GB, free: 3.934 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04237/0.5815, allocations: 31.62 MB / 0.6213 GB, free: 3.336 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004942/0.5865, allocations: 2.478 MB / 0.6237 GB, free: 0.7109 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001505/0.588, allocations: 1.124 MB / 0.6248 GB, free: 15.57 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003971/0.5884, allocations: 331.3 kB / 0.6251 GB, free: 15.2 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.598e-05/0.5885, allocations: 46.5 kB / 0.6252 GB, free: 15.14 MB / 494.1 MB Notification: Performance of pre-optimization done (n=104): time 3.807e-06/0.5885, allocations: 0 / 0.6252 GB, free: 15.14 MB / 494.1 MB Notification: Performance of matching and sorting (n=118): time 0.02281/0.6113, allocations: 9.14 MB / 0.6341 GB, free: 5.891 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001759/0.6115, allocations: 196.5 kB / 0.6343 GB, free: 5.652 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005891/0.6174, allocations: 3.747 MB / 0.6379 GB, free: 1.91 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002223/0.6177, allocations: 41.7 kB / 0.638 GB, free: 1.863 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00209/0.6198, allocations: 2.688 MB / 0.6406 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005456/0.6203, allocations: 0.498 MB / 0.6411 GB, free: 14.63 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00135/0.6217, allocations: 1.118 MB / 0.6422 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001211/0.6218, allocations: 309.1 kB / 0.6425 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002405/0.6242, allocations: 1.689 MB / 0.6441 GB, free: 11.5 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005031/0.6293, allocations: 5.259 MB / 0.6493 GB, free: 4.441 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008536/0.6378, allocations: 7.508 MB / 0.6566 GB, free: 11.16 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.288e-05/0.638, allocations: 36 kB / 0.6566 GB, free: 11.12 MB / 0.5137 GB Notification: Performance of matching and sorting (n=717) (initialization): time 0.0138/0.6518, allocations: 7.118 MB / 0.6636 GB, free: 3.996 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 8.234e-05/0.6519, allocations: 60.03 kB / 0.6636 GB, free: 3.938 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001477/0.6521, allocations: 132 kB / 0.6638 GB, free: 3.809 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001598/0.6537, allocations: 0.6603 MB / 0.6644 GB, free: 3.145 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00356/0.6572, allocations: 1.255 MB / 0.6656 GB, free: 1.887 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004743/0.662, allocations: 4.075 MB / 0.6696 GB, free: 13.67 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003686/0.6657, allocations: 299.5 kB / 0.6699 GB, free: 13.38 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005937/0.6663, allocations: 344 kB / 0.6702 GB, free: 13.04 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.00269/0.669, allocations: 1.779 MB / 0.672 GB, free: 11.25 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005961/0.6696, allocations: 304 kB / 0.6723 GB, free: 10.95 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003434/0.6731, allocations: 1.848 MB / 0.6741 GB, free: 9.09 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.361e-05/0.6731, allocations: 12 kB / 0.6741 GB, free: 9.078 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.096e-05/0.6731, allocations: 4 kB / 0.6741 GB, free: 9.074 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.15e-05/0.6731, allocations: 3.984 kB / 0.6741 GB, free: 9.07 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00911/0.6822, allocations: 5.208 MB / 0.6792 GB, free: 3.793 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-05/0.6823, allocations: 3.938 kB / 0.6792 GB, free: 3.789 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007806/0.6831, allocations: 159.8 kB / 0.6793 GB, free: 3.633 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001391/0.6845, allocations: 484.2 kB / 0.6798 GB, free: 3.156 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001152/0.6846, allocations: 16.03 kB / 0.6798 GB, free: 3.141 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004663/0.6893, allocations: 3.429 MB / 0.6832 GB, free: 15.57 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.6893, allocations: 0 / 0.6832 GB, free: 15.57 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006005/0.6953, allocations: 3.741 MB / 0.6868 GB, free: 11.8 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001009/0.6964, allocations: 365.1 kB / 0.6872 GB, free: 11.42 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003139/0.6967, allocations: 23.94 kB / 0.6872 GB, free: 11.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009564/0.6977, allocations: 63.91 kB / 0.6872 GB, free: 11.34 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002251/0.6979, allocations: 64.41 kB / 0.6873 GB, free: 11.27 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.46e-05/0.698, allocations: 28 kB / 0.6873 GB, free: 11.25 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003598/0.7016, allocations: 2.338 MB / 0.6896 GB, free: 8.922 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.7e-07/0.7016, allocations: 0 / 0.6896 GB, free: 8.922 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00457/0.7062, allocations: 0.793 MB / 0.6904 GB, free: 8.129 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.0004195/0.7066, allocations: 147 kB / 0.6905 GB, free: 7.977 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.006973/0.7136, allocations: 4.033 MB / 0.6945 GB, free: 3.957 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.003e-06/0.7136, allocations: 0 / 0.6945 GB, free: 3.957 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0015/0.7151, allocations: 0.9953 MB / 0.6954 GB, free: 2.953 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002286/0.7174, allocations: 356.6 kB / 0.6958 GB, free: 2.605 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01337/0.7308, allocations: 7.125 MB / 0.7027 GB, free: 11.43 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00276/0.7336, allocations: 2.712 MB / 0.7054 GB, free: 8.695 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003772/0.7374, allocations: 1.699 MB / 0.707 GB, free: 6.992 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005795/0.738, allocations: 211.4 kB / 0.7072 GB, free: 6.789 MB / 0.5606 GB Notification: Performance of SimCode: time 1.724e-06/0.738, allocations: 0 / 0.7072 GB, free: 6.789 MB / 0.5606 GB Notification: Performance of Templates: time 0.3849/1.123, allocations: 25.72 MB / 0.7324 GB, free: 176.8 MB / 0.5762 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