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.001091/0.001092, allocations: 106.1 kB / 17.03 MB, free: 6.102 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.001187/0.001187, allocations: 196.1 kB / 17.96 MB, free: 5.195 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.356/1.356, allocations: 205.1 MB / 223.8 MB, free: 12.25 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.2017/0.2017, allocations: 43.52 MB / 314.7 MB, free: 468 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.001784/0.001784, allocations: 65.27 kB / 384.2 MB, free: 56.41 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09503/0.09684, allocations: 57.79 MB / 442 MB, free: 6.137 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.009423/0.1063, allocations: 9.421 MB / 451.4 MB, free: 12.67 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008269/0.1146, allocations: 3.602 MB / 455 MB, free: 9.059 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001828/0.1165, allocations: 55.81 kB / 455 MB, free: 9.004 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00426/0.1208, allocations: 1.682 MB / 456.7 MB, free: 7.316 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004547/0.1254, allocations: 1.646 MB / 458.4 MB, free: 5.664 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00144/0.1268, allocations: 0.5575 MB / 458.9 MB, free: 5.105 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005/0.1319, allocations: 3.517 MB / 462.4 MB, free: 1.582 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002906/0.1348, allocations: 2.271 MB / 464.7 MB, free: 15.26 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001945/0.1368, allocations: 1.152 MB / 465.9 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002378/0.1392, allocations: 1.635 MB / 467.5 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007836/0.14, allocations: 240 kB / 467.7 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002315/0.1423, allocations: 1.123 MB / 468.8 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001727/0.144, allocations: 1.508 MB / 470.4 MB, free: 9.594 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002552/0.1466, allocations: 1.732 MB / 472.1 MB, free: 7.852 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006187/0.1528, allocations: 5.761 MB / 477.9 MB, free: 2.07 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.1529, allocations: 0 / 477.9 MB, free: 2.07 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.1529, allocations: 0 / 477.9 MB, free: 2.07 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001229/0.153, allocations: 4 kB / 477.9 MB, free: 2.066 MB / 350.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.007243/0.1602, allocations: 3.857 MB / 481.7 MB, free: 14.14 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.089e-05/0.1603, allocations: 11.89 kB / 481.7 MB, free: 14.12 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01449/0.1748, allocations: 2.371 MB / 484.1 MB, free: 11.75 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00575/0.1806, allocations: 2.326 MB / 486.4 MB, free: 9.375 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001259/0.1807, allocations: 172.7 kB / 486.6 MB, free: 9.203 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004793/0.1812, allocations: 235.9 kB / 486.8 MB, free: 8.973 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01013/0.1914, allocations: 7.887 MB / 494.7 MB, free: 464 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.738e-05/0.1915, allocations: 39.59 kB / 494.7 MB, free: 424 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002947/0.1918, allocations: 111.9 kB / 494.9 MB, free: 312 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002464/0.1942, allocations: 1.672 MB / 496.5 MB, free: 14.63 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01067/0.2049, allocations: 6.762 MB / 0.4915 GB, free: 7.855 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04102/0.246, allocations: 31.39 MB / 0.5221 GB, free: 7.508 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008608/0.2546, allocations: 2.342 MB / 0.5244 GB, free: 5.02 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002769/0.2574, allocations: 1.176 MB / 0.5256 GB, free: 3.832 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000621/0.2581, allocations: 327.7 kB / 0.5259 GB, free: 3.457 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.446e-05/0.2582, allocations: 51.12 kB / 0.5259 GB, free: 3.398 MB / 414.1 MB Notification: Performance of pre-optimization done (n=117): time 7.384e-06/0.2582, allocations: 0 / 0.5259 GB, free: 3.398 MB / 414.1 MB Notification: Performance of matching and sorting (n=141): time 0.3273/0.5856, allocations: 12.28 MB / 0.5379 GB, free: 85.16 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.22e-05/0.5856, allocations: 194.5 kB / 0.5381 GB, free: 84.94 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004781/0.5904, allocations: 3.738 MB / 0.5418 GB, free: 84.14 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001874/0.5906, allocations: 43.09 kB / 0.5418 GB, free: 84.1 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001285/0.5919, allocations: 2.673 MB / 0.5444 GB, free: 82.04 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004279/0.5924, allocations: 0.5631 MB / 0.545 GB, free: 81.64 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001185/0.5936, allocations: 1.117 MB / 0.5461 GB, free: 81.1 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 3.901e-05/0.5936, allocations: 305.8 kB / 0.5463 GB, free: 80.8 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002604/0.5962, allocations: 1.804 MB / 0.5481 GB, free: 80.23 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003107/0.5993, allocations: 5.257 MB / 0.5532 GB, free: 74.98 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005651/0.605, allocations: 7.617 MB / 0.5607 GB, free: 68.36 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.229e-05/0.6051, allocations: 39.06 kB / 0.5607 GB, free: 68.36 MB / 414.1 MB Notification: Performance of matching and sorting (n=719) (initialization): time 0.009012/0.6141, allocations: 7.282 MB / 0.5678 GB, free: 62.89 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.747e-05/0.6142, allocations: 58.97 kB / 0.5679 GB, free: 62.83 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.314e-05/0.6143, allocations: 124 kB / 0.568 GB, free: 62.71 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001305/0.6156, allocations: 0.6584 MB / 0.5686 GB, free: 62.05 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003179/0.6188, allocations: 1.271 MB / 0.5699 GB, free: 60.78 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003553/0.6223, allocations: 4.065 MB / 0.5739 GB, free: 56.58 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004051/0.6264, allocations: 304.7 kB / 0.5742 GB, free: 56.29 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006904/0.6271, allocations: 340 kB / 0.5745 GB, free: 55.95 MB / 414.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.002394/0.6295, allocations: 1.788 MB / 0.5762 GB, free: 54.16 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006285/0.6302, allocations: 308 kB / 0.5765 GB, free: 53.85 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003385/0.6335, allocations: 2.222 MB / 0.5787 GB, free: 51.62 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.2e-05/0.6336, allocations: 16 kB / 0.5787 GB, free: 51.6 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.071e-05/0.6336, allocations: 4.109 kB / 0.5787 GB, free: 51.6 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.191e-05/0.6336, allocations: 11.91 kB / 0.5787 GB, free: 51.59 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009075/0.6427, allocations: 5.947 MB / 0.5845 GB, free: 45.59 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.558e-06/0.6427, allocations: 7.625 kB / 0.5845 GB, free: 45.58 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009824/0.6437, allocations: 219.7 kB / 0.5847 GB, free: 45.37 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001138/0.6449, allocations: 484.3 kB / 0.5852 GB, free: 44.89 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.128e-05/0.645, allocations: 27.98 kB / 0.5852 GB, free: 44.86 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002878/0.6479, allocations: 3.43 MB / 0.5886 GB, free: 41.29 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.6479, allocations: 4.031 kB / 0.5886 GB, free: 41.29 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005003/0.6529, allocations: 4.347 MB / 0.5928 GB, free: 36.91 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001409/0.6543, allocations: 0.5477 MB / 0.5934 GB, free: 36.34 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003505/0.6547, allocations: 31.92 kB / 0.5934 GB, free: 36.31 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001144/0.6558, allocations: 75.91 kB / 0.5935 GB, free: 36.24 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000176/0.656, allocations: 81.08 kB / 0.5935 GB, free: 36.16 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.087e-05/0.6561, allocations: 39.98 kB / 0.5936 GB, free: 36.12 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002495/0.6586, allocations: 2.333 MB / 0.5959 GB, free: 33.8 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.6586, allocations: 0 / 0.5959 GB, free: 33.8 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003724/0.6623, allocations: 0.8395 MB / 0.5967 GB, free: 32.97 MB / 414.1 MB 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 (112): * Single equations (assignments): 108 * 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.0003114/0.6627, allocations: 156.2 kB / 0.5968 GB, free: 32.82 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005222/0.6679, allocations: 4.303 MB / 0.601 GB, free: 28.53 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.6679, allocations: 0 / 0.601 GB, free: 28.53 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001297/0.6692, allocations: 1.183 MB / 0.6022 GB, free: 27.33 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002059/0.6713, allocations: 364.4 kB / 0.6025 GB, free: 26.98 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009118/0.6804, allocations: 7.457 MB / 0.6098 GB, free: 19.51 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001982/0.6824, allocations: 2.757 MB / 0.6125 GB, free: 16.74 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.003214/0.6857, allocations: 1.727 MB / 0.6142 GB, free: 15.02 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005442/0.6862, allocations: 215.4 kB / 0.6144 GB, free: 14.81 MB / 414.1 MB Notification: Performance of SimCode: time 7.42e-07/0.6862, allocations: 4 kB / 0.6144 GB, free: 14.8 MB / 414.1 MB Notification: Performance of Templates: time 0.04709/0.7333, allocations: 25.73 MB / 0.6395 GB, free: 5.277 MB / 430.1 MB 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 -s gbode -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