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.001217/0.001217, allocations: 110.4 kB / 16.64 MB, free: 6.371 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.001053/0.001053, allocations: 186.9 kB / 17.56 MB, free: 5.801 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.398/1.398, allocations: 205.1 MB / 223.4 MB, free: 12.44 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.2191/0.2191, allocations: 43.52 MB / 314.3 MB, free: 0.7031 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.001632/0.001633, allocations: 67.48 kB / 382.9 MB, free: 57 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1129, allocations: 57.79 MB / 440.7 MB, free: 7.363 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.03071/0.1436, allocations: 33.88 MB / 474.5 MB, free: 5.332 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01774/0.1614, allocations: 7.635 MB / 482.2 MB, free: 13.67 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007929/0.1694, allocations: 139.7 kB / 482.3 MB, free: 13.54 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004495/0.174, allocations: 1.609 MB / 483.9 MB, free: 11.92 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004937/0.179, allocations: 1.534 MB / 485.5 MB, free: 10.38 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00159/0.1806, allocations: 0.5226 MB / 486 MB, free: 9.859 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00544/0.1861, allocations: 3.646 MB / 489.6 MB, free: 6.207 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003652/0.1898, allocations: 2.392 MB / 492 MB, free: 3.766 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002321/0.1921, allocations: 1.183 MB / 493.2 MB, free: 2.578 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002841/0.195, allocations: 1.83 MB / 495 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009641/0.196, allocations: 240 kB / 495.3 MB, free: 0.5078 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002714/0.1987, allocations: 1.131 MB / 496.4 MB, free: 15.38 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002222/0.201, allocations: 1.543 MB / 497.9 MB, free: 13.83 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003288/0.2043, allocations: 1.763 MB / 499.7 MB, free: 12.05 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005864/0.2102, allocations: 4.518 MB / 0.4924 GB, free: 7.527 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.815e-06/0.2102, allocations: 0 / 0.4924 GB, free: 7.527 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.285e-06/0.2103, allocations: 0 / 0.4924 GB, free: 7.527 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002119/0.2105, allocations: 4 kB / 0.4924 GB, free: 7.523 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: 1219 * Number of variables: 1219 Notification: Performance of Generate backend data structure: time 0.01006/0.2205, allocations: 3.853 MB / 0.4962 GB, free: 3.602 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.31e-05/0.2206, allocations: 15.88 kB / 0.4962 GB, free: 3.586 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01621/0.2369, allocations: 2.375 MB / 0.4985 GB, free: 1.203 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005951/0.2429, allocations: 2.287 MB / 0.5007 GB, free: 14.87 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002231/0.2431, allocations: 176.7 kB / 0.5009 GB, free: 14.69 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001046/0.2442, allocations: 235.9 kB / 0.5011 GB, free: 14.46 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0135/0.2577, allocations: 7.894 MB / 0.5088 GB, free: 5.934 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001092/0.2579, allocations: 39.66 kB / 0.5089 GB, free: 5.895 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003604/0.2583, allocations: 111.9 kB / 0.509 GB, free: 5.785 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002676/0.2609, allocations: 1.664 MB / 0.5106 GB, free: 4.117 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01303/0.274, allocations: 6.746 MB / 0.5172 GB, free: 13.36 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2918/0.5659, allocations: 31.53 MB / 0.548 GB, free: 68.06 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004998/0.5709, allocations: 2.343 MB / 0.5503 GB, free: 67.4 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001675/0.5727, allocations: 1.179 MB / 0.5514 GB, free: 67.31 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003784/0.5731, allocations: 325.6 kB / 0.5517 GB, free: 67.02 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.579e-05/0.5731, allocations: 48.45 kB / 0.5518 GB, free: 66.97 MB / 414.1 MB Notification: Performance of pre-optimization done (n=117): time 4.519e-06/0.5731, allocations: 1.469 kB / 0.5518 GB, free: 66.97 MB / 414.1 MB Notification: Performance of matching and sorting (n=141): time 0.03608/0.6092, allocations: 12.29 MB / 0.5638 GB, free: 61.99 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.629e-05/0.6094, allocations: 191.3 kB / 0.564 GB, free: 61.77 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00455/0.6139, allocations: 3.746 MB / 0.5676 GB, free: 59.83 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002982/0.6143, allocations: 47.64 kB / 0.5677 GB, free: 59.79 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001269/0.6155, allocations: 2.66 MB / 0.5703 GB, free: 57.47 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005159/0.6161, allocations: 0.5635 MB / 0.5708 GB, free: 57 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001096/0.6172, allocations: 1.123 MB / 0.5719 GB, free: 56.37 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 4.505e-05/0.6172, allocations: 301.1 kB / 0.5722 GB, free: 56.07 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002017/0.6192, allocations: 1.804 MB / 0.574 GB, free: 54.4 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003246/0.6225, allocations: 5.253 MB / 0.5791 GB, free: 47.47 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006167/0.6287, allocations: 7.619 MB / 0.5865 GB, free: 38.17 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.464e-05/0.6288, allocations: 36 kB / 0.5866 GB, free: 38.14 MB / 414.1 MB Notification: Performance of matching and sorting (n=719) (initialization): time 0.01105/0.6399, allocations: 7.289 MB / 0.5937 GB, free: 30.84 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.909e-05/0.64, allocations: 56.22 kB / 0.5937 GB, free: 30.78 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001089/0.6401, allocations: 124 kB / 0.5939 GB, free: 30.66 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001439/0.6415, allocations: 0.6564 MB / 0.5945 GB, free: 30 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003603/0.6452, allocations: 1.271 MB / 0.5957 GB, free: 28.73 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003765/0.6489, allocations: 4.063 MB / 0.5997 GB, free: 24.54 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004036/0.653, allocations: 313.5 kB / 0.6 GB, free: 24.23 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001108/0.6541, allocations: 336 kB / 0.6003 GB, free: 23.9 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.003363/0.6575, allocations: 1.782 MB / 0.6021 GB, free: 22.11 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006747/0.6582, allocations: 308 kB / 0.6024 GB, free: 21.81 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003472/0.6617, allocations: 2.231 MB / 0.6045 GB, free: 19.56 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.539e-05/0.6617, allocations: 16 kB / 0.6046 GB, free: 19.54 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.088e-05/0.6618, allocations: 0 / 0.6046 GB, free: 19.54 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.365e-05/0.6618, allocations: 11.97 kB / 0.6046 GB, free: 19.53 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008951/0.6707, allocations: 5.978 MB / 0.6104 GB, free: 13.5 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-05/0.6708, allocations: 0 / 0.6104 GB, free: 13.5 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00103/0.6718, allocations: 215.7 kB / 0.6106 GB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001205/0.673, allocations: 488.2 kB / 0.6111 GB, free: 12.81 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001473/0.6732, allocations: 28.86 kB / 0.6111 GB, free: 12.78 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003102/0.6763, allocations: 3.439 MB / 0.6145 GB, free: 9.207 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.6764, allocations: 3.938 kB / 0.6145 GB, free: 9.203 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005598/0.682, allocations: 4.343 MB / 0.6187 GB, free: 4.828 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001243/0.6832, allocations: 0.5438 MB / 0.6192 GB, free: 4.262 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004122/0.6837, allocations: 23.94 kB / 0.6193 GB, free: 4.238 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001186/0.6849, allocations: 79.89 kB / 0.6193 GB, free: 4.16 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002028/0.6851, allocations: 72.5 kB / 0.6194 GB, free: 4.09 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001046/0.6852, allocations: 43.42 kB / 0.6195 GB, free: 4.051 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003136/0.6883, allocations: 2.333 MB / 0.6217 GB, free: 1.73 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.6883, allocations: 64 / 0.6217 GB, free: 1.73 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004484/0.6928, allocations: 0.8462 MB / 0.6226 GB, free: 0.8867 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.0004026/0.6933, allocations: 145.8 kB / 0.6227 GB, free: 0.7383 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.008347/0.7016, allocations: 4.755 MB / 0.6273 GB, free: 12.02 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.236e-06/0.7017, allocations: 0 / 0.6273 GB, free: 12.02 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001857/0.7035, allocations: 1.189 MB / 0.6285 GB, free: 10.82 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002506/0.7061, allocations: 373.6 kB / 0.6289 GB, free: 10.47 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01549/0.7216, allocations: 9.397 MB / 0.638 GB, free: 1.043 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003218/0.7248, allocations: 2.746 MB / 0.6407 GB, free: 14.27 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001036/0.7259, allocations: 263.4 kB / 0.641 GB, free: 14.02 MB / 446.1 MB Notification: Performance of SimCode: time 1.774e-06/0.7259, allocations: 0 / 0.641 GB, free: 14.02 MB / 446.1 MB Notification: Performance of Templates: time 0.09432/0.8202, allocations: 63.66 MB / 0.7031 GB, free: 14.34 MB / 0.4981 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","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches