Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_3.2.3_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.001597/0.001597, allocations: 96.14 kB / 15.87 MB, free: 16 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001837/0.001837, allocations: 203.1 kB / 16.79 MB, free: 6.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.545/1.545, allocations: 205.1 MB / 222.6 MB, free: 4.754 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3693/0.3693, allocations: 43.5 MB / 313.5 MB, free: 8.52 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001728/0.001728, allocations: 74.56 kB / 382 MB, free: 8.734 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1473/0.149, allocations: 57.79 MB / 439.8 MB, free: 14.84 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.2964/0.4454, allocations: 41.48 MB / 481.3 MB, free: 25.87 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02058/0.4661, allocations: 8.974 MB / 490.3 MB, free: 20.12 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01161/0.4777, allocations: 170.1 kB / 490.4 MB, free: 20.1 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004314/0.4821, allocations: 1.924 MB / 492.4 MB, free: 19.22 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005092/0.4873, allocations: 1.616 MB / 494 MB, free: 18.52 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0013/0.4886, allocations: 0.5389 MB / 494.5 MB, free: 18.3 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006135/0.4947, allocations: 5.382 MB / 499.9 MB, free: 16.72 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004188/0.4989, allocations: 2.534 MB / 0.4907 GB, free: 15.82 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002382/0.5013, allocations: 1.122 MB / 0.4918 GB, free: 15.38 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003468/0.5048, allocations: 1.955 MB / 0.4937 GB, free: 14.73 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007945/0.5056, allocations: 188.6 kB / 0.4939 GB, free: 14.73 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002839/0.5085, allocations: 1.128 MB / 0.495 GB, free: 14.47 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002054/0.5106, allocations: 1.647 MB / 0.4966 GB, free: 13.94 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002504/0.5131, allocations: 1.866 MB / 0.4984 GB, free: 12.65 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009348/0.5224, allocations: 6.108 MB / 0.5043 GB, free: 10.17 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.5225, allocations: 0 / 0.5043 GB, free: 10.17 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.5225, allocations: 0 / 0.5043 GB, free: 10.17 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002796/0.5228, allocations: 1.219 kB / 0.5043 GB, free: 10.17 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: 1367 * Number of variables: 1367 Notification: Performance of Generate backend data structure: time 0.01498/0.5378, allocations: 4.211 MB / 0.5085 GB, free: 7.195 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.745e-05/0.5379, allocations: 8.688 kB / 0.5085 GB, free: 7.195 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01678/0.5547, allocations: 2.438 MB / 0.5108 GB, free: 6.023 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007479/0.5622, allocations: 2.416 MB / 0.5132 GB, free: 4.477 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001565/0.5624, allocations: 195 kB / 0.5134 GB, free: 4.383 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008931/0.5633, allocations: 261.3 kB / 0.5136 GB, free: 4.289 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01434/0.5776, allocations: 8.757 MB / 0.5222 GB, free: 12.31 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001049/0.5778, allocations: 47.59 kB / 0.5222 GB, free: 12.27 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003746/0.5781, allocations: 119.9 kB / 0.5224 GB, free: 12.15 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00305/0.5812, allocations: 1.837 MB / 0.5241 GB, free: 10.31 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01431/0.5955, allocations: 7.464 MB / 0.5314 GB, free: 2.84 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04376/0.6393, allocations: 34.31 MB / 0.5649 GB, free: 15.53 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005221/0.6446, allocations: 2.597 MB / 0.5675 GB, free: 12.79 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001614/0.6462, allocations: 1.18 MB / 0.5686 GB, free: 11.59 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003534/0.6466, allocations: 327.8 kB / 0.5689 GB, free: 11.22 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.8e-05/0.6467, allocations: 47.11 kB / 0.569 GB, free: 11.16 MB / 446.1 MB Notification: Performance of pre-optimization done (n=119): time 4.359e-06/0.6467, allocations: 4 kB / 0.569 GB, free: 11.16 MB / 446.1 MB Notification: Performance of matching and sorting (n=133): time 0.02528/0.672, allocations: 9.814 MB / 0.5786 GB, free: 1.23 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001155/0.6721, allocations: 196.5 kB / 0.5788 GB, free: 0.9961 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006794/0.6789, allocations: 3.964 MB / 0.5826 GB, free: 13.04 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004876/0.6794, allocations: 45.7 kB / 0.5827 GB, free: 12.99 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002991/0.6824, allocations: 2.944 MB / 0.5856 GB, free: 10.01 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001205/0.6837, allocations: 0.5481 MB / 0.5861 GB, free: 9.457 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001932/0.6856, allocations: 1.198 MB / 0.5873 GB, free: 8.246 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001022/0.6857, allocations: 305.1 kB / 0.5875 GB, free: 7.945 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002953/0.6887, allocations: 1.807 MB / 0.5893 GB, free: 6.133 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005819/0.6945, allocations: 5.632 MB / 0.5948 GB, free: 14.58 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00981/0.7044, allocations: 8.039 MB / 0.6027 GB, free: 4.629 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001135/0.7045, allocations: 40 kB / 0.6027 GB, free: 4.59 MB / 478.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01694/0.7215, allocations: 7.598 MB / 0.6101 GB, free: 12.98 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001559/0.7217, allocations: 64 kB / 0.6102 GB, free: 12.92 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002569/0.722, allocations: 136 kB / 0.6103 GB, free: 12.79 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001898/0.7239, allocations: 0.6734 MB / 0.611 GB, free: 12.11 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004783/0.7287, allocations: 1.357 MB / 0.6123 GB, free: 10.75 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005186/0.7339, allocations: 3.81 MB / 0.616 GB, free: 6.816 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005917/0.7398, allocations: 311.4 kB / 0.6163 GB, free: 6.512 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002124/0.742, allocations: 372 kB / 0.6167 GB, free: 6.148 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 619 * Number of states: 0 () * Number of discrete variables: 31 (LessEqualThreshold1.y,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 (735): * Single equations (assignments): 731 * 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.005468/0.7475, allocations: 1.947 MB / 0.6186 GB, free: 4.188 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001051/0.7486, allocations: 327.8 kB / 0.6189 GB, free: 3.863 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005157/0.7537, allocations: 2.069 MB / 0.6209 GB, free: 1.766 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.182e-05/0.7538, allocations: 20 kB / 0.6209 GB, free: 1.746 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.738e-05/0.7538, allocations: 4 kB / 0.6209 GB, free: 1.742 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.023e-05/0.7538, allocations: 3.984 kB / 0.6209 GB, free: 1.738 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.017/0.7709, allocations: 5.81 MB / 0.6266 GB, free: 11.85 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.462e-05/0.7709, allocations: 8 kB / 0.6266 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00106/0.772, allocations: 187.9 kB / 0.6268 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001523/0.7735, allocations: 496.1 kB / 0.6273 GB, free: 11.17 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002039/0.7738, allocations: 27.98 kB / 0.6273 GB, free: 11.14 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004142/0.7779, allocations: 3.221 MB / 0.6304 GB, free: 7.793 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.367e-06/0.778, allocations: 4.031 kB / 0.6304 GB, free: 7.789 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00714/0.7851, allocations: 3.989 MB / 0.6343 GB, free: 3.754 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002002/0.7872, allocations: 0.5435 MB / 0.6349 GB, free: 3.188 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001198/0.7884, allocations: 20 kB / 0.6349 GB, free: 3.168 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002397/0.7908, allocations: 63.91 kB / 0.6349 GB, free: 3.105 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003716/0.7912, allocations: 80.34 kB / 0.635 GB, free: 3.027 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001458/0.7914, allocations: 35.98 kB / 0.6351 GB, free: 2.992 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0091/0.8005, allocations: 2.476 MB / 0.6375 GB, free: 0.5352 MB / 0.4981 GB Notification: Performance of sort global known variables: time 9.42e-07/0.8005, allocations: 0 / 0.6375 GB, free: 0.5352 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.3393/1.14, allocations: 0.8754 MB / 0.6383 GB, free: 156.2 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (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.0007555/1.141, allocations: 153.2 kB / 0.6385 GB, free: 156.2 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.007951/1.149, allocations: 4.289 MB / 0.6427 GB, free: 155.9 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.623e-06/1.149, allocations: 0 / 0.6427 GB, free: 155.9 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001557/1.15, allocations: 1.085 MB / 0.6437 GB, free: 155.8 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003202/1.153, allocations: 354.2 kB / 0.6441 GB, free: 155.8 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0177/1.171, allocations: 9.652 MB / 0.6535 GB, free: 151 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003375/1.175, allocations: 2.958 MB / 0.6564 GB, free: 149.8 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.005046/1.18, allocations: 1.814 MB / 0.6581 GB, free: 149.6 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007781/1.18, allocations: 227.9 kB / 0.6584 GB, free: 149.6 MB / 0.4981 GB Notification: Performance of SimCode: time 8.11e-07/1.18, allocations: 0 / 0.6584 GB, free: 149.6 MB / 0.4981 GB Notification: Performance of Templates: time 0.08219/1.263, allocations: 29.74 MB / 0.6874 GB, free: 143.6 MB / 0.4981 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches