Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001541/0.001541, allocations: 107 kB / 17.33 MB, free: 6.023 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001997/0.001997, allocations: 193.3 kB / 18.25 MB, free: 5.117 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.455/1.455, allocations: 222.9 MB / 241.9 MB, free: 15.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2179/0.2179, allocations: 44.19 MB / 336.3 MB, free: 2.926 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 69.05 kB / 407.9 MB, free: 27.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1165, allocations: 60.82 MB / 468.7 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.0387/0.1552, allocations: 40.72 MB / 0.4975 GB, free: 5.836 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2482/0.4035, allocations: 8.763 MB / 0.5061 GB, free: 10.32 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008072/0.4116, allocations: 168.2 kB / 0.5062 GB, free: 10.32 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004103/0.4157, allocations: 1.849 MB / 0.508 GB, free: 10.32 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004259/0.4201, allocations: 1.536 MB / 0.5095 GB, free: 10.24 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001303/0.4214, allocations: 0.5364 MB / 0.51 GB, free: 10.22 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006421/0.4278, allocations: 3.923 MB / 0.5139 GB, free: 10.2 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003848/0.4317, allocations: 2.611 MB / 0.5164 GB, free: 9.898 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00263/0.4344, allocations: 1.216 MB / 0.5176 GB, free: 9.898 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002814/0.4372, allocations: 1.887 MB / 0.5195 GB, free: 9.668 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005406/0.4377, allocations: 247.3 kB / 0.5197 GB, free: 9.668 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002081/0.4398, allocations: 1.152 MB / 0.5208 GB, free: 9.5 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001711/0.4416, allocations: 1.615 MB / 0.5224 GB, free: 8.953 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001614/0.4432, allocations: 1.814 MB / 0.5242 GB, free: 7.691 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005102/0.4483, allocations: 5.787 MB / 0.5298 GB, free: 4.051 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.034e-06/0.4483, allocations: 0 / 0.5298 GB, free: 4.051 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.4483, allocations: 6.719 kB / 0.5298 GB, free: 4.047 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001405/0.4485, allocations: 2.406 kB / 0.5298 GB, free: 4.047 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: 1269 * Number of variables: 1269 Notification: Performance of Generate backend data structure: time 0.008376/0.4569, allocations: 3.956 MB / 0.5337 GB, free: 1.332 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.937e-05/0.4569, allocations: 9.781 kB / 0.5337 GB, free: 1.332 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01594/0.4729, allocations: 2.404 MB / 0.536 GB, free: 184 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006536/0.4795, allocations: 2.29 MB / 0.5383 GB, free: 14.85 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001663/0.4797, allocations: 181.5 kB / 0.5385 GB, free: 14.8 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009009/0.4806, allocations: 241.9 kB / 0.5387 GB, free: 14.74 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01533/0.4959, allocations: 8.163 MB / 0.5467 GB, free: 6.734 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001001/0.4961, allocations: 38.38 kB / 0.5467 GB, free: 6.715 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003486/0.4964, allocations: 115.5 kB / 0.5468 GB, free: 6.633 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002924/0.4994, allocations: 1.711 MB / 0.5485 GB, free: 4.949 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01343/0.5128, allocations: 6.9 MB / 0.5552 GB, free: 14.2 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04709/0.5599, allocations: 32.49 MB / 0.5869 GB, free: 13.07 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005632/0.5656, allocations: 2.474 MB / 0.5894 GB, free: 10.45 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001625/0.5673, allocations: 1.116 MB / 0.5904 GB, free: 9.32 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003963/0.5677, allocations: 325.8 kB / 0.5908 GB, free: 8.949 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.992e-05/0.5678, allocations: 50.52 kB / 0.5908 GB, free: 8.891 MB / 446.1 MB Notification: Performance of pre-optimization done (n=104): time 4.338e-06/0.5678, allocations: 0 / 0.5908 GB, free: 8.891 MB / 446.1 MB Notification: Performance of matching and sorting (n=118): time 0.02744/0.5952, allocations: 9.258 MB / 0.5998 GB, free: 15.52 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001442/0.5954, allocations: 192.5 kB / 0.6 GB, free: 15.29 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007871/0.6033, allocations: 3.808 MB / 0.6038 GB, free: 11.49 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003237/0.6037, allocations: 41.7 kB / 0.6038 GB, free: 11.45 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002982/0.6067, allocations: 2.793 MB / 0.6065 GB, free: 8.66 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009531/0.6077, allocations: 499.5 kB / 0.607 GB, free: 8.176 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002333/0.61, allocations: 1.141 MB / 0.6081 GB, free: 7.027 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.6102, allocations: 305.1 kB / 0.6084 GB, free: 6.727 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002772/0.6129, allocations: 1.705 MB / 0.6101 GB, free: 5.016 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005866/0.6188, allocations: 5.33 MB / 0.6153 GB, free: 13.86 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01053/0.6294, allocations: 7.588 MB / 0.6227 GB, free: 4.469 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001126/0.6295, allocations: 36 kB / 0.6227 GB, free: 4.434 MB / 478.1 MB Notification: Performance of matching and sorting (n=726) (initialization): time 0.01421/0.6437, allocations: 7.21 MB / 0.6298 GB, free: 13.22 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.461e-05/0.6439, allocations: 60 kB / 0.6298 GB, free: 13.16 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001318/0.644, allocations: 132.1 kB / 0.6299 GB, free: 13.03 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001637/0.6457, allocations: 0.6564 MB / 0.6306 GB, free: 12.37 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003761/0.6494, allocations: 1.267 MB / 0.6318 GB, free: 11.1 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005003/0.6545, allocations: 4.07 MB / 0.6358 GB, free: 6.895 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003719/0.6582, allocations: 307.3 kB / 0.6361 GB, free: 6.594 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004801/0.6587, allocations: 348 kB / 0.6364 GB, free: 6.254 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 586 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.arrowLine.twoHeadedArrow,distance2.arrow.headAtOrigin,distance1.arrow.arrowLine.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 (691): * Single equations (assignments): 687 * 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.002594/0.6613, allocations: 1.838 MB / 0.6382 GB, free: 4.402 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004769/0.6618, allocations: 315.9 kB / 0.6385 GB, free: 4.09 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003333/0.6651, allocations: 1.849 MB / 0.6403 GB, free: 2.227 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.17e-05/0.6652, allocations: 14.27 kB / 0.6403 GB, free: 2.215 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.748e-06/0.6652, allocations: 4 kB / 0.6403 GB, free: 2.211 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.369e-05/0.6652, allocations: 7.969 kB / 0.6403 GB, free: 2.203 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009708/0.6749, allocations: 5.359 MB / 0.6456 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.205e-06/0.6749, allocations: 0 / 0.6456 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007983/0.6757, allocations: 155.8 kB / 0.6457 GB, free: 12.65 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001335/0.6771, allocations: 492.2 kB / 0.6462 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001016/0.6772, allocations: 27.03 kB / 0.6462 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004059/0.6813, allocations: 3.426 MB / 0.6496 GB, free: 8.578 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.6813, allocations: 0 / 0.6496 GB, free: 8.578 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005593/0.6869, allocations: 3.741 MB / 0.6532 GB, free: 4.809 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009562/0.6879, allocations: 365 kB / 0.6536 GB, free: 4.43 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006919/0.6886, allocations: 16 kB / 0.6536 GB, free: 4.414 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001414/0.69, allocations: 63.28 kB / 0.6536 GB, free: 4.355 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000203/0.6902, allocations: 60.42 kB / 0.6537 GB, free: 4.297 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.783e-05/0.6903, allocations: 39.98 kB / 0.6537 GB, free: 4.258 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003558/0.6939, allocations: 2.362 MB / 0.656 GB, free: 1.91 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.6e-07/0.6939, allocations: 0 / 0.656 GB, free: 1.91 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004229/0.6981, allocations: 0.832 MB / 0.6569 GB, free: 1.078 MB / 0.4981 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.0003689/0.6985, allocations: 147.5 kB / 0.657 GB, free: 0.9258 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.007265/0.7058, allocations: 4.365 MB / 0.6613 GB, free: 12.57 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.7058, allocations: 0 / 0.6613 GB, free: 12.57 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001453/0.7073, allocations: 0.9869 MB / 0.6622 GB, free: 11.58 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002435/0.7097, allocations: 388.5 kB / 0.6626 GB, free: 11.21 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0156/0.7253, allocations: 9.036 MB / 0.6714 GB, free: 2.137 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004509/0.7299, allocations: 2.805 MB / 0.6742 GB, free: 15.31 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004614/0.7345, allocations: 1.703 MB / 0.6758 GB, free: 13.6 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007846/0.7353, allocations: 211.4 kB / 0.676 GB, free: 13.39 MB / 0.5294 GB Notification: Performance of SimCode: time 1.232e-06/0.7353, allocations: 7.938 kB / 0.676 GB, free: 13.39 MB / 0.5294 GB Notification: Performance of Templates: time 0.05867/0.794, allocations: 29.38 MB / 0.7047 GB, free: 164 kB / 0.545 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches