Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.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.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001273/0.001273, allocations: 103.7 kB / 17.08 MB, free: 5.988 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.0009923/0.0009923, allocations: 192.2 kB / 18.01 MB, free: 5.07 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.357/1.357, allocations: 205.1 MB / 223.9 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1984/0.1984, allocations: 43.53 MB / 314.8 MB, free: 460 kB / 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.001319/0.001319, allocations: 71.88 kB / 442.5 MB, free: 5.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1019, allocations: 57.79 MB / 0.4885 GB, free: 11.81 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.009909/0.1118, allocations: 9.42 MB / 0.4977 GB, free: 2.352 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007448/0.1193, allocations: 3.61 MB / 0.5013 GB, free: 14.73 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001417/0.1208, allocations: 47.88 kB / 0.5013 GB, free: 14.68 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003507/0.1243, allocations: 1.693 MB / 0.503 GB, free: 12.98 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003954/0.1283, allocations: 1.638 MB / 0.5046 GB, free: 11.34 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00128/0.1296, allocations: 0.5535 MB / 0.5051 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004331/0.1339, allocations: 3.513 MB / 0.5085 GB, free: 7.262 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002887/0.1368, allocations: 2.259 MB / 0.5107 GB, free: 4.953 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001751/0.1386, allocations: 1.168 MB / 0.5119 GB, free: 3.781 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002319/0.1409, allocations: 1.635 MB / 0.5135 GB, free: 2.141 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007003/0.1417, allocations: 236 kB / 0.5137 GB, free: 1.91 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002201/0.1439, allocations: 1.116 MB / 0.5148 GB, free: 0.793 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001673/0.1456, allocations: 1.527 MB / 0.5163 GB, free: 15.26 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002487/0.1481, allocations: 1.732 MB / 0.518 GB, free: 13.52 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007115/0.1552, allocations: 5.769 MB / 0.5236 GB, free: 7.73 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.1552, allocations: 0 / 0.5236 GB, free: 7.73 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.1552, allocations: 4 kB / 0.5236 GB, free: 7.727 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001669/0.1554, allocations: 0 / 0.5236 GB, free: 7.727 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1219 * Number of variables: 1219 Notification: Performance of Generate backend data structure: time 0.008347/0.1638, allocations: 3.853 MB / 0.5274 GB, free: 3.805 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.545e-05/0.1638, allocations: 15.89 kB / 0.5274 GB, free: 3.789 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01514/0.179, allocations: 2.375 MB / 0.5297 GB, free: 1.406 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2123/0.3913, allocations: 2.32 MB / 0.532 GB, free: 36.65 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001672/0.3915, allocations: 165.8 kB / 0.5321 GB, free: 36.64 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001091/0.3926, allocations: 235.7 kB / 0.5324 GB, free: 36.64 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01302/0.4057, allocations: 7.886 MB / 0.5401 GB, free: 33.93 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001425/0.4058, allocations: 39.34 kB / 0.5401 GB, free: 33.91 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006066/0.4065, allocations: 114.6 kB / 0.5402 GB, free: 33.87 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00313/0.4096, allocations: 1.671 MB / 0.5418 GB, free: 33.57 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01252/0.4221, allocations: 6.75 MB / 0.5484 GB, free: 31.48 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02982/0.452, allocations: 31.4 MB / 0.5791 GB, free: 5.648 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004022/0.456, allocations: 2.346 MB / 0.5814 GB, free: 3.156 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00125/0.4573, allocations: 1.18 MB / 0.5825 GB, free: 1.965 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002826/0.4576, allocations: 319.9 kB / 0.5828 GB, free: 1.598 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.62e-05/0.4577, allocations: 51.88 kB / 0.5829 GB, free: 1.539 MB / 414.1 MB Notification: Performance of pre-optimization done (n=117): time 3.928e-06/0.4577, allocations: 0 / 0.5829 GB, free: 1.539 MB / 414.1 MB Notification: Performance of matching and sorting (n=141): time 0.03642/0.4941, allocations: 12.3 MB / 0.5949 GB, free: 5.098 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.471e-05/0.4942, allocations: 196.6 kB / 0.5951 GB, free: 4.863 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005239/0.4995, allocations: 3.742 MB / 0.5987 GB, free: 1.125 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002487/0.4997, allocations: 45.69 kB / 0.5988 GB, free: 1.074 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001856/0.5016, allocations: 2.666 MB / 0.6014 GB, free: 14.37 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006284/0.5023, allocations: 0.5672 MB / 0.6019 GB, free: 13.8 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001632/0.5039, allocations: 1.111 MB / 0.603 GB, free: 12.68 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.847e-05/0.504, allocations: 309.1 kB / 0.6033 GB, free: 12.37 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002737/0.5067, allocations: 1.803 MB / 0.6051 GB, free: 10.56 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004846/0.5116, allocations: 5.249 MB / 0.6102 GB, free: 3.582 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008245/0.5199, allocations: 7.612 MB / 0.6176 GB, free: 10.26 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001092/0.52, allocations: 40 kB / 0.6177 GB, free: 10.22 MB / 462.1 MB Notification: Performance of matching and sorting (n=719) (initialization): time 0.01267/0.5327, allocations: 7.292 MB / 0.6248 GB, free: 2.922 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001608/0.5329, allocations: 56 kB / 0.6249 GB, free: 2.867 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002869/0.5332, allocations: 122.9 kB / 0.625 GB, free: 2.75 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001767/0.535, allocations: 0.653 MB / 0.6256 GB, free: 2.094 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003819/0.5388, allocations: 1.271 MB / 0.6269 GB, free: 0.8203 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00476/0.5436, allocations: 4.068 MB / 0.6308 GB, free: 12.62 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00342/0.547, allocations: 311.4 kB / 0.6311 GB, free: 12.31 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006416/0.5477, allocations: 336 kB / 0.6314 GB, free: 11.98 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * Number of states: 0 () * Number of discrete variables: 27 (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 (684): * Single equations (assignments): 680 * 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.002663/0.5503, allocations: 1.79 MB / 0.6332 GB, free: 10.18 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005851/0.5509, allocations: 304.1 kB / 0.6335 GB, free: 9.883 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004191/0.5551, allocations: 2.219 MB / 0.6356 GB, free: 7.648 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.576e-05/0.5552, allocations: 11.97 kB / 0.6357 GB, free: 7.637 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/0.5552, allocations: 0 / 0.6357 GB, free: 7.637 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001018/0.5562, allocations: 0.5477 MB / 0.6362 GB, free: 7.066 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000468/0.5567, allocations: 16 kB / 0.6362 GB, free: 7.051 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00131/0.558, allocations: 83.89 kB / 0.6363 GB, free: 6.969 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002327/0.5582, allocations: 88.75 kB / 0.6364 GB, free: 6.879 MB / 478.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.005177/0.5634, allocations: 2.794 MB / 0.6391 GB, free: 4.078 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.005079/0.5685, allocations: 3.892 MB / 0.6429 GB, free: 160 kB / 478.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001415/0.57, allocations: 0.9642 MB / 0.6438 GB, free: 15.19 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004122/0.5741, allocations: 2.338 MB / 0.6461 GB, free: 12.87 MB / 494.1 MB Notification: Performance of Backend: time 4.51e-07/0.5741, allocations: 3.938 kB / 0.6461 GB, free: 12.86 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007946/0.5821, allocations: 3.676 MB / 0.6497 GB, free: 9.215 MB / 494.1 MB Notification: Performance of SimCode: time 0.01343/0.5955, allocations: 7.563 MB / 0.6571 GB, free: 1.605 MB / 494.1 MB Notification: Performance of Templates: time 0.06993/0.6655, allocations: 38.71 MB / 0.6949 GB, free: 10.89 MB / 0.5294 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches