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.001618/0.001617, allocations: 104.5 kB / 16.94 MB, free: 6.199 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.001678/0.001678, allocations: 191.3 kB / 17.86 MB, free: 5.312 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.47/1.47, allocations: 205.1 MB / 223.7 MB, free: 12.3 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.2219/0.2219, allocations: 43.52 MB / 314.6 MB, free: 0.5391 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.001755/0.001755, allocations: 72.39 kB / 383.4 MB, free: 56.73 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1073, allocations: 57.8 MB / 441.2 MB, free: 6.93 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.008933/0.1163, allocations: 9.414 MB / 450.6 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008189/0.1245, allocations: 3.598 MB / 454.2 MB, free: 9.855 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001693/0.1263, allocations: 51.88 kB / 454.3 MB, free: 9.805 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003418/0.1297, allocations: 1.686 MB / 455.9 MB, free: 8.113 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004341/0.1341, allocations: 1.642 MB / 457.6 MB, free: 6.465 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001454/0.1356, allocations: 0.5536 MB / 458.1 MB, free: 5.91 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004985/0.1406, allocations: 3.513 MB / 461.6 MB, free: 2.391 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003528/0.1441, allocations: 2.275 MB / 463.9 MB, free: 68 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002488/0.1467, allocations: 1.16 MB / 465.1 MB, free: 14.9 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002827/0.1495, allocations: 1.631 MB / 466.7 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009163/0.1505, allocations: 236 kB / 466.9 MB, free: 13.03 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002556/0.1531, allocations: 1.123 MB / 468.1 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001995/0.1551, allocations: 1.512 MB / 469.6 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003178/0.1583, allocations: 1.732 MB / 471.3 MB, free: 8.652 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007704/0.166, allocations: 5.557 MB / 476.9 MB, free: 3.078 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.205e-06/0.1661, allocations: 0 / 476.9 MB, free: 3.078 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1661, allocations: 0 / 476.9 MB, free: 3.078 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002134/0.1663, allocations: 0 / 476.9 MB, free: 3.078 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.01009/0.1764, allocations: 3.857 MB / 480.7 MB, free: 15.15 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.697e-05/0.1765, allocations: 11.89 kB / 480.7 MB, free: 15.14 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0167/0.1932, allocations: 2.371 MB / 483.1 MB, free: 12.76 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006058/0.1993, allocations: 2.295 MB / 485.4 MB, free: 10.42 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002013/0.1995, allocations: 172.7 kB / 485.6 MB, free: 10.25 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001103/0.2006, allocations: 231.9 kB / 485.8 MB, free: 10.02 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01453/0.2152, allocations: 7.89 MB / 493.7 MB, free: 1.496 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001599/0.2154, allocations: 35.66 kB / 493.7 MB, free: 1.461 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000828/0.2162, allocations: 111.9 kB / 493.8 MB, free: 1.352 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002979/0.2192, allocations: 1.664 MB / 495.5 MB, free: 15.68 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01323/0.2325, allocations: 6.754 MB / 0.4905 GB, free: 8.918 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04098/0.2735, allocations: 31.54 MB / 0.5213 GB, free: 8.418 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00522/0.2788, allocations: 2.35 MB / 0.5236 GB, free: 5.922 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001818/0.2807, allocations: 1.176 MB / 0.5247 GB, free: 4.734 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004565/0.2811, allocations: 327.7 kB / 0.525 GB, free: 4.359 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.563e-05/0.2812, allocations: 47.06 kB / 0.5251 GB, free: 4.305 MB / 414.1 MB Notification: Performance of pre-optimization done (n=117): time 5e-06/0.2812, allocations: 0 / 0.5251 GB, free: 4.305 MB / 414.1 MB Notification: Performance of matching and sorting (n=141): time 0.2505/0.5317, allocations: 12.28 MB / 0.5371 GB, free: 85.54 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.407e-05/0.5319, allocations: 202.4 kB / 0.5373 GB, free: 85.32 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005921/0.5378, allocations: 3.731 MB / 0.5409 GB, free: 84.55 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002919/0.5381, allocations: 46.52 kB / 0.541 GB, free: 84.5 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00147/0.5396, allocations: 2.67 MB / 0.5436 GB, free: 82.45 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006071/0.5402, allocations: 0.5643 MB / 0.5441 GB, free: 82.05 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001413/0.5416, allocations: 1.118 MB / 0.5452 GB, free: 81.5 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 5.138e-05/0.5417, allocations: 301.1 kB / 0.5455 GB, free: 81.21 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003014/0.5447, allocations: 1.809 MB / 0.5473 GB, free: 80.63 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004026/0.5488, allocations: 5.253 MB / 0.5524 GB, free: 75.41 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007003/0.5558, allocations: 7.616 MB / 0.5598 GB, free: 68.78 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001214/0.556, allocations: 38.48 kB / 0.5599 GB, free: 68.78 MB / 414.1 MB Notification: Performance of matching and sorting (n=719) (initialization): time 0.01104/0.567, allocations: 7.283 MB / 0.567 GB, free: 63.83 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.04e-05/0.5671, allocations: 58.97 kB / 0.567 GB, free: 63.77 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001032/0.5672, allocations: 124 kB / 0.5672 GB, free: 63.65 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001372/0.5686, allocations: 0.6618 MB / 0.5678 GB, free: 62.99 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003424/0.572, allocations: 1.264 MB / 0.569 GB, free: 61.73 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003885/0.5759, allocations: 4.066 MB / 0.573 GB, free: 57.53 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004225/0.5802, allocations: 299.5 kB / 0.5733 GB, free: 57.23 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008068/0.581, allocations: 340 kB / 0.5736 GB, free: 56.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.003131/0.5842, allocations: 1.79 MB / 0.5754 GB, free: 55.11 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008847/0.5851, allocations: 312 kB / 0.5757 GB, free: 54.8 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004255/0.5893, allocations: 2.22 MB / 0.5778 GB, free: 52.56 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.092e-05/0.5894, allocations: 19.94 kB / 0.5778 GB, free: 52.54 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.998e-05/0.5894, allocations: 7.625 kB / 0.5779 GB, free: 52.54 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.69e-05/0.5895, allocations: 7.969 kB / 0.5779 GB, free: 52.53 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01209/0.6016, allocations: 5.979 MB / 0.5837 GB, free: 46.5 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.886e-05/0.6016, allocations: 4 kB / 0.5837 GB, free: 46.5 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001096/0.6027, allocations: 211.7 kB / 0.5839 GB, free: 46.29 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001241/0.604, allocations: 488.3 kB / 0.5844 GB, free: 45.81 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001459/0.6042, allocations: 35.12 kB / 0.5844 GB, free: 45.78 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003147/0.6073, allocations: 3.427 MB / 0.5878 GB, free: 42.21 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.6073, allocations: 0 / 0.5878 GB, free: 42.21 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005547/0.6129, allocations: 4.354 MB / 0.592 GB, free: 37.83 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00138/0.6143, allocations: 0.5478 MB / 0.5925 GB, free: 37.26 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008012/0.6151, allocations: 24 kB / 0.5926 GB, free: 37.23 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001595/0.6167, allocations: 75.41 kB / 0.5926 GB, free: 37.16 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002008/0.6169, allocations: 76.5 kB / 0.5927 GB, free: 37.09 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001107/0.6171, allocations: 44.86 kB / 0.5927 GB, free: 37.05 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003707/0.6208, allocations: 2.337 MB / 0.595 GB, free: 34.72 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.6208, allocations: 0 / 0.595 GB, free: 34.72 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.005058/0.6259, allocations: 0.8374 MB / 0.5958 GB, free: 33.89 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.0005237/0.6264, allocations: 146.2 kB / 0.596 GB, free: 33.74 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.007599/0.634, allocations: 4.753 MB / 0.6006 GB, free: 29.02 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.494e-06/0.6341, allocations: 0 / 0.6006 GB, free: 29.02 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001645/0.6357, allocations: 1.178 MB / 0.6018 GB, free: 27.83 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003571/0.6393, allocations: 374 kB / 0.6021 GB, free: 27.47 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01408/0.6534, allocations: 7.881 MB / 0.6098 GB, free: 19.57 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003395/0.6569, allocations: 2.742 MB / 0.6125 GB, free: 16.82 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001015/0.6579, allocations: 267.3 kB / 0.6128 GB, free: 16.55 MB / 414.1 MB Notification: Performance of SimCode: time 6.82e-07/0.6579, allocations: 0 / 0.6128 GB, free: 16.55 MB / 414.1 MB Notification: Performance of Templates: time 0.09795/0.7559, allocations: 63.66 MB / 0.6749 GB, free: 0.8984 MB / 462.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 -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