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.001362/0.001362, allocations: 97.3 kB / 15.69 MB, free: 480 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001753/0.001753, allocations: 172.6 kB / 16.57 MB, free: 6.391 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.462/1.462, allocations: 205.4 MB / 222.7 MB, free: 5.672 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3556/0.3556, allocations: 43.55 MB / 314.5 MB, free: 8.988 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.0005099/0.00051, allocations: 12 kB / 383.9 MB, free: 8.277 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1039, allocations: 58.86 MB / 442.7 MB, free: 13.31 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.2161/0.3201, allocations: 29 MB / 471.7 MB, free: 34.39 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01531/0.3355, allocations: 7.541 MB / 479.3 MB, free: 29.37 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005498/0.341, allocations: 142.3 kB / 479.4 MB, free: 29.34 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004305/0.3453, allocations: 1.399 MB / 480.8 MB, free: 28.89 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01344/0.3588, allocations: 4.3 MB / 485.1 MB, free: 26.87 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002272/0.3611, allocations: 475 kB / 485.6 MB, free: 26.7 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02041/0.3815, allocations: 13.77 MB / 499.4 MB, free: 22.76 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005432/0.387, allocations: 2.639 MB / 0.4902 GB, free: 21.73 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002161/0.3892, allocations: 0.8255 MB / 0.491 GB, free: 21.44 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002379/0.3916, allocations: 1.14 MB / 0.4921 GB, free: 21.09 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007704/0.3924, allocations: 112.2 kB / 0.4923 GB, free: 21.09 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002716/0.3952, allocations: 0.88 MB / 0.4931 GB, free: 20.92 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001851/0.3971, allocations: 1.264 MB / 0.4943 GB, free: 20.54 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001114/0.3982, allocations: 0.6727 MB / 0.495 GB, free: 20.05 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007112/0.4053, allocations: 4.534 MB / 0.4994 GB, free: 18.3 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.4054, allocations: 3.938 kB / 0.4994 GB, free: 18.3 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.806e-06/0.4054, allocations: 0 / 0.4994 GB, free: 18.3 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002262/0.4056, allocations: 1.469 kB / 0.4994 GB, free: 18.3 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.01081/0.4164, allocations: 3.394 MB / 0.5028 GB, free: 15.9 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.372e-05/0.4165, allocations: 9.031 kB / 0.5028 GB, free: 15.9 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08316/0.4996, allocations: 8.231 MB / 0.5108 GB, free: 10.47 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006944/0.5066, allocations: 2.453 MB / 0.5132 GB, free: 7.953 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001247/0.5068, allocations: 173.2 kB / 0.5134 GB, free: 7.781 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008378/0.5076, allocations: 231.7 kB / 0.5136 GB, free: 7.555 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01154/0.5192, allocations: 7.856 MB / 0.5213 GB, free: 15.07 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001043/0.5193, allocations: 39.59 kB / 0.5213 GB, free: 15.03 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003855/0.5197, allocations: 115.9 kB / 0.5214 GB, free: 14.92 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002712/0.5225, allocations: 1.66 MB / 0.523 GB, free: 13.25 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0122/0.5347, allocations: 6.657 MB / 0.5295 GB, free: 6.59 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04098/0.5757, allocations: 31.31 MB / 0.5601 GB, free: 6.359 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004852/0.5806, allocations: 2.288 MB / 0.5623 GB, free: 3.922 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003935/0.581, allocations: 323.8 kB / 0.5626 GB, free: 3.551 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.951e-05/0.5811, allocations: 51.05 kB / 0.5627 GB, free: 3.492 MB / 430.1 MB Notification: Performance of pre-optimization done (n=117): time 4.108e-06/0.5811, allocations: 0 / 0.5627 GB, free: 3.492 MB / 430.1 MB Notification: Performance of matching and sorting (n=141): time 0.03531/0.6164, allocations: 11.69 MB / 0.5741 GB, free: 7.617 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001356/0.6166, allocations: 196.5 kB / 0.5743 GB, free: 7.383 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006438/0.623, allocations: 3.862 MB / 0.5781 GB, free: 3.527 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002847/0.6233, allocations: 41.7 kB / 0.5781 GB, free: 3.48 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002067/0.6254, allocations: 2.682 MB / 0.5807 GB, free: 0.7578 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007755/0.6262, allocations: 0.5633 MB / 0.5813 GB, free: 192 kB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002402/0.6264, allocations: 107.9 kB / 0.5814 GB, free: 84 kB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0003617/0.6268, allocations: 0.5333 MB / 0.5819 GB, free: 15.54 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00286/0.6297, allocations: 1.674 MB / 0.5835 GB, free: 13.86 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005112/0.6348, allocations: 5.091 MB / 0.5885 GB, free: 7.035 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004411/0.6393, allocations: 2.874 MB / 0.5913 GB, free: 4.16 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.895e-05/0.6394, allocations: 36 kB / 0.5913 GB, free: 4.125 MB / 462.1 MB Notification: Performance of matching and sorting (n=700) (initialization): time 0.01323/0.6526, allocations: 6.759 MB / 0.5979 GB, free: 13.37 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001196/0.6527, allocations: 56 kB / 0.598 GB, free: 13.31 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002094/0.653, allocations: 122.9 kB / 0.5981 GB, free: 13.2 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001066/0.654, allocations: 424.6 kB / 0.5985 GB, free: 12.78 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003938/0.658, allocations: 1.236 MB / 0.5997 GB, free: 11.54 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003626/0.6617, allocations: 3.143 MB / 0.6028 GB, free: 8.25 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003998/0.6657, allocations: 295.3 kB / 0.6031 GB, free: 7.961 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008067/0.6665, allocations: 340 kB / 0.6034 GB, free: 7.629 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 (665): * Single equations (assignments): 661 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003607/0.6701, allocations: 1.782 MB / 0.6051 GB, free: 5.832 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000704/0.6708, allocations: 312 kB / 0.6054 GB, free: 5.523 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003672/0.6745, allocations: 1.845 MB / 0.6072 GB, free: 3.66 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.461e-05/0.6746, allocations: 19.95 kB / 0.6073 GB, free: 3.641 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.123e-05/0.6746, allocations: 8 kB / 0.6073 GB, free: 3.633 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.577e-05/0.6746, allocations: 7.969 kB / 0.6073 GB, free: 3.625 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01332/0.6879, allocations: 5.63 MB / 0.6128 GB, free: 13.91 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.548e-05/0.688, allocations: 4.062 kB / 0.6128 GB, free: 13.91 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00111/0.6891, allocations: 215.7 kB / 0.613 GB, free: 13.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006955/0.6898, allocations: 224.6 kB / 0.6132 GB, free: 13.47 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001767/0.69, allocations: 27.98 kB / 0.6132 GB, free: 13.45 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002941/0.693, allocations: 2.566 MB / 0.6157 GB, free: 10.75 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/0.693, allocations: 4 kB / 0.6157 GB, free: 10.75 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006066/0.6991, allocations: 3.993 MB / 0.6196 GB, free: 6.699 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001787/0.7009, allocations: 0.5553 MB / 0.6202 GB, free: 6.121 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009617/0.7019, allocations: 20 kB / 0.6202 GB, free: 6.102 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001779/0.7037, allocations: 71.91 kB / 0.6203 GB, free: 6.031 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000204/0.7039, allocations: 76.61 kB / 0.6203 GB, free: 5.957 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.82e-05/0.704, allocations: 39.98 kB / 0.6204 GB, free: 5.918 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0057/0.7097, allocations: 2.432 MB / 0.6227 GB, free: 3.5 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.5e-07/0.7098, allocations: 0 / 0.6227 GB, free: 3.5 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.007874/0.7176, allocations: 0.832 MB / 0.6236 GB, free: 2.668 MB / 494.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008511/0.7185, allocations: 174.9 kB / 0.6237 GB, free: 2.484 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007707/0.7262, allocations: 4.071 MB / 0.6277 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.823e-06/0.7263, allocations: 0 / 0.6277 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001951/0.7282, allocations: 1.139 MB / 0.6288 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002335/0.7306, allocations: 351.9 kB / 0.6291 GB, free: 12.94 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01627/0.7469, allocations: 8.611 MB / 0.6376 GB, free: 4.285 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004166/0.7511, allocations: 2.831 MB / 0.6403 GB, free: 1.43 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.2196/0.9708, allocations: 1.732 MB / 0.642 GB, free: 151.2 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009669/0.9718, allocations: 219.9 kB / 0.6422 GB, free: 151.2 MB / 0.4981 GB Notification: Performance of SimCode: time 1.503e-06/0.9718, allocations: 0 / 0.6422 GB, free: 151.2 MB / 0.4981 GB Notification: Performance of Templates: time 0.05784/1.03, allocations: 28.12 MB / 0.6697 GB, free: 149 MB / 0.4981 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins/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