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.001218/0.001218, allocations: 106.4 kB / 17.03 MB, free: 5.703 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.001341/0.001341, allocations: 194.9 kB / 17.96 MB, free: 5.082 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.578/1.578, 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.2306/0.2306, allocations: 43.52 MB / 314.7 MB, free: 472 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.001733/0.001733, allocations: 68.19 kB / 384.2 MB, free: 56.37 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1184/0.1202, allocations: 57.79 MB / 442 MB, free: 6.148 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.009482/0.1297, allocations: 9.417 MB / 451.4 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009376/0.1391, allocations: 3.606 MB / 455 MB, free: 9.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002563/0.1417, allocations: 47.88 kB / 455 MB, free: 9.023 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004072/0.1458, allocations: 1.693 MB / 456.7 MB, free: 7.324 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00547/0.1514, allocations: 1.638 MB / 458.4 MB, free: 5.68 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001574/0.153, allocations: 0.5575 MB / 458.9 MB, free: 5.121 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006507/0.1595, allocations: 3.521 MB / 462.4 MB, free: 1.594 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003088/0.1626, allocations: 2.267 MB / 464.7 MB, free: 15.28 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002029/0.1647, allocations: 1.156 MB / 465.9 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00237/0.167, allocations: 1.628 MB / 467.5 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004557/0.1675, allocations: 236 kB / 467.7 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001863/0.1694, allocations: 1.119 MB / 468.8 MB, free: 11.13 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001385/0.1708, allocations: 1.516 MB / 470.3 MB, free: 9.613 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001881/0.1727, allocations: 1.732 MB / 472.1 MB, free: 7.871 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006548/0.1792, allocations: 5.769 MB / 477.9 MB, free: 2.082 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.1793, allocations: 0 / 477.9 MB, free: 2.082 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.268e-06/0.1793, allocations: 3.984 kB / 477.9 MB, free: 2.078 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.472e-05/0.1794, allocations: 4 kB / 477.9 MB, free: 2.074 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.00785/0.1872, allocations: 3.846 MB / 481.7 MB, free: 14.16 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.04e-05/0.1873, allocations: 19.83 kB / 481.7 MB, free: 14.14 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01368/0.201, allocations: 2.367 MB / 484.1 MB, free: 11.76 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005884/0.2069, allocations: 2.322 MB / 486.4 MB, free: 9.395 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001265/0.2071, allocations: 172.7 kB / 486.6 MB, free: 9.223 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004437/0.2075, allocations: 243.9 kB / 486.8 MB, free: 8.984 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01044/0.218, allocations: 7.883 MB / 494.7 MB, free: 480 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.675e-05/0.2181, allocations: 43.59 kB / 494.7 MB, free: 436 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002832/0.2184, allocations: 111.9 kB / 494.9 MB, free: 324 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002429/0.2208, allocations: 1.664 MB / 496.5 MB, free: 14.65 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01226/0.2331, allocations: 6.759 MB / 0.4915 GB, free: 7.879 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04172/0.2749, allocations: 31.4 MB / 0.5221 GB, free: 7.523 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004583/0.2795, allocations: 2.338 MB / 0.5244 GB, free: 5.039 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001578/0.2811, allocations: 1.184 MB / 0.5256 GB, free: 3.844 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004144/0.2816, allocations: 323.7 kB / 0.5259 GB, free: 3.473 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.26e-05/0.2816, allocations: 51.11 kB / 0.5259 GB, free: 3.414 MB / 414.1 MB Notification: Performance of pre-optimization done (n=117): time 3.547e-06/0.2816, allocations: 0 / 0.5259 GB, free: 3.414 MB / 414.1 MB Notification: Performance of matching and sorting (n=141): time 0.289/0.5707, allocations: 12.28 MB / 0.5379 GB, free: 85.64 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.052e-05/0.5708, allocations: 197.4 kB / 0.5381 GB, free: 85.42 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006361/0.5771, allocations: 3.734 MB / 0.5418 GB, free: 84.26 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003015/0.5775, allocations: 50.95 kB / 0.5418 GB, free: 84.21 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001653/0.5791, allocations: 2.673 MB / 0.5444 GB, free: 82.15 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000599/0.5798, allocations: 0.561 MB / 0.545 GB, free: 81.75 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001555/0.5813, allocations: 1.116 MB / 0.5461 GB, free: 81.21 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 7.689e-05/0.5814, allocations: 301.1 kB / 0.5464 GB, free: 80.91 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003368/0.5848, allocations: 1.804 MB / 0.5481 GB, free: 80.34 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003968/0.5888, allocations: 5.255 MB / 0.5532 GB, free: 75.11 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007501/0.5963, allocations: 7.617 MB / 0.5607 GB, free: 68.5 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000127/0.5965, allocations: 40.91 kB / 0.5607 GB, free: 68.5 MB / 414.1 MB Notification: Performance of matching and sorting (n=719) (initialization): time 0.01222/0.6087, allocations: 7.285 MB / 0.5678 GB, free: 63.07 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.613e-05/0.6088, allocations: 56 kB / 0.5679 GB, free: 63.02 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001647/0.609, allocations: 128 kB / 0.568 GB, free: 62.89 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001457/0.6105, allocations: 0.6485 MB / 0.5686 GB, free: 62.24 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003637/0.6141, allocations: 1.277 MB / 0.5699 GB, free: 60.96 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00411/0.6182, allocations: 4.06 MB / 0.5739 GB, free: 56.77 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005161/0.6234, allocations: 302.2 kB / 0.5741 GB, free: 56.47 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009973/0.6245, allocations: 340 kB / 0.5745 GB, free: 56.14 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.004082/0.6286, allocations: 1.783 MB / 0.5762 GB, free: 54.35 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009904/0.6296, allocations: 308 kB / 0.5765 GB, free: 54.04 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004203/0.6338, allocations: 2.223 MB / 0.5787 GB, free: 51.81 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.974e-05/0.6338, allocations: 16 kB / 0.5787 GB, free: 51.79 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.066e-05/0.6339, allocations: 7.984 kB / 0.5787 GB, free: 51.79 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.784e-05/0.6339, allocations: 8.984 kB / 0.5787 GB, free: 51.78 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0129/0.6468, allocations: 5.955 MB / 0.5845 GB, free: 45.77 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.945e-05/0.6469, allocations: 3.938 kB / 0.5845 GB, free: 45.77 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001068/0.6479, allocations: 215.7 kB / 0.5847 GB, free: 45.55 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00122/0.6492, allocations: 489.8 kB / 0.5852 GB, free: 45.07 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001679/0.6494, allocations: 29.3 kB / 0.5852 GB, free: 45.05 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003447/0.6528, allocations: 3.428 MB / 0.5886 GB, free: 41.48 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.099e-06/0.6528, allocations: 6.031 kB / 0.5886 GB, free: 41.47 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006658/0.6595, allocations: 4.345 MB / 0.5928 GB, free: 37.1 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002452/0.662, allocations: 0.5476 MB / 0.5934 GB, free: 36.53 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001095/0.6631, allocations: 32 kB / 0.5934 GB, free: 36.5 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002037/0.6652, allocations: 77.69 kB / 0.5935 GB, free: 36.43 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002323/0.6654, allocations: 76.5 kB / 0.5935 GB, free: 36.35 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000114/0.6656, allocations: 39.98 kB / 0.5936 GB, free: 36.31 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.004809/0.6704, allocations: 2.337 MB / 0.5959 GB, free: 33.99 MB / 414.1 MB Notification: Performance of sort global known variables: time 6.01e-07/0.6704, allocations: 0 / 0.5959 GB, free: 33.99 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.006943/0.6774, allocations: 0.8408 MB / 0.5967 GB, free: 33.15 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.0007959/0.6782, allocations: 153 kB / 0.5968 GB, free: 33 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.007054/0.6853, allocations: 4.297 MB / 0.601 GB, free: 28.72 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 9.738e-06/0.6853, allocations: 8.062 kB / 0.601 GB, free: 28.71 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001619/0.687, allocations: 1.182 MB / 0.6022 GB, free: 27.52 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003476/0.6905, allocations: 371.9 kB / 0.6025 GB, free: 27.17 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01315/0.7036, allocations: 7.453 MB / 0.6098 GB, free: 19.7 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003572/0.7073, allocations: 2.762 MB / 0.6125 GB, free: 16.93 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.003805/0.7111, allocations: 1.724 MB / 0.6142 GB, free: 15.2 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008385/0.712, allocations: 219.4 kB / 0.6144 GB, free: 14.99 MB / 414.1 MB Notification: Performance of SimCode: time 8.02e-07/0.712, allocations: 0 / 0.6144 GB, free: 14.99 MB / 414.1 MB Notification: Performance of Templates: time 0.05499/0.767, allocations: 25.73 MB / 0.6395 GB, free: 5.469 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 cvode -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