Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_ModelicaTest.MultiBody.Sensors.Distance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002155/0.002161, allocations: 179.2 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.088/2.088, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001121/0.001121, allocations: 95.98 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2853/0.2853, allocations: 43.49 MB / 353.6 MB, free: 2.266 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.768e-05/1.777e-05, allocations: 224 / 418.2 MB, free: 41.05 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4196/0.4196, allocations: 58.86 MB / 477.1 MB, free: 5.27 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1944/0.614, allocations: 104.4 MB / 0.5679 GB, free: 10.85 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002873/0.6144, allocations: 75.97 kB / 0.5679 GB, free: 10.78 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.3175/0.9319, allocations: 71.94 MB / 0.6382 GB, free: 2.297 MB / 475.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.9319, allocations: 0 / 0.6382 GB, free: 2.297 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0002145/0.9321, allocations: 60 kB / 0.6382 GB, free: 2.238 MB / 475.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.3397/1.272, allocations: 3.253 MB / 0.6414 GB, free: 109.4 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.857e-05/1.272, allocations: 13.47 kB / 0.6414 GB, free: 109.4 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03361/1.306, allocations: 4.246 MB / 0.6456 GB, free: 109.1 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01761/1.323, allocations: 4.229 MB / 0.6497 GB, free: 108.8 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000233/1.324, allocations: 105.3 kB / 0.6498 GB, free: 108.8 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001663/1.325, allocations: 188.1 kB / 0.65 GB, free: 108.8 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01202/1.337, allocations: 4.677 MB / 0.6546 GB, free: 108.8 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01832/1.356, allocations: 7.592 MB / 0.662 GB, free: 106.3 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002169/1.356, allocations: 53.97 kB / 0.662 GB, free: 106.3 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008817/1.357, allocations: 28.16 kB / 0.6621 GB, free: 106.3 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001753/1.359, allocations: 0.821 MB / 0.6629 GB, free: 106.3 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0465/1.405, allocations: 38.22 MB / 0.7002 GB, free: 77.96 MB / 475.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003614/1.409, allocations: 2.337 MB / 0.7025 GB, free: 76.43 MB / 475.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001836/1.411, allocations: 1.047 MB / 0.7035 GB, free: 75.98 MB / 475.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004752/1.411, allocations: 328.2 kB / 0.7038 GB, free: 75.69 MB / 475.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.104e-05/1.411, allocations: 42.94 kB / 0.7038 GB, free: 75.64 MB / 475.1 MB Notification: Performance of pre-optimization done (n=120): time 6.813e-06/1.411, allocations: 3.562 kB / 0.7038 GB, free: 75.64 MB / 475.1 MB Notification: Performance of matching and sorting (n=150): time 0.03433/1.446, allocations: 10.5 MB / 0.7141 GB, free: 71.1 MB / 475.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.617e-05/1.446, allocations: 200.8 kB / 0.7143 GB, free: 70.88 MB / 475.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005612/1.451, allocations: 2.808 MB / 0.717 GB, free: 69.77 MB / 475.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003124/1.452, allocations: 25.7 kB / 0.7171 GB, free: 69.74 MB / 475.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002137/1.454, allocations: 2.737 MB / 0.7197 GB, free: 67.54 MB / 475.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007905/1.455, allocations: 0.5797 MB / 0.7203 GB, free: 67.11 MB / 475.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004673/1.455, allocations: 0 / 0.7203 GB, free: 67.11 MB / 475.1 MB Notification: Performance of setup shared object (initialization): time 0.0003293/1.455, allocations: 0.5453 MB / 0.7208 GB, free: 66.7 MB / 475.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003374/1.459, allocations: 1.563 MB / 0.7224 GB, free: 66.15 MB / 475.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005739/1.465, allocations: 5.128 MB / 0.7274 GB, free: 60.62 MB / 475.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005826/1.47, allocations: 2.825 MB / 0.7301 GB, free: 59.54 MB / 475.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000114/1.471, allocations: 41.09 kB / 0.7302 GB, free: 59.54 MB / 475.1 MB Notification: Performance of matching and sorting (n=738) (initialization): time 0.01537/1.486, allocations: 5.951 MB / 0.736 GB, free: 57.45 MB / 475.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.336e-05/1.486, allocations: 60 kB / 0.736 GB, free: 57.39 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001549/1.486, allocations: 128 kB / 0.7362 GB, free: 57.27 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001073/1.487, allocations: 352 kB / 0.7365 GB, free: 56.96 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007593/1.495, allocations: 1.313 MB / 0.7378 GB, free: 55.81 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003802/1.499, allocations: 2.608 MB / 0.7403 GB, free: 53.33 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005503/1.504, allocations: 187.5 kB / 0.7405 GB, free: 53.17 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001092/1.506, allocations: 347.4 kB / 0.7408 GB, free: 52.83 MB / 475.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 584 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (703): * Single equations (assignments): 699 * 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.0009518/1.507, allocations: 422.8 kB / 0.7412 GB, free: 52.42 MB / 475.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006829/1.507, allocations: 296.1 kB / 0.7415 GB, free: 52.12 MB / 475.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004125/1.511, allocations: 1.664 MB / 0.7431 GB, free: 50.72 MB / 475.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.085e-05/1.511, allocations: 17.25 kB / 0.7432 GB, free: 50.71 MB / 475.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.227e-05/1.511, allocations: 4 kB / 0.7432 GB, free: 50.7 MB / 475.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.142e-05/1.512, allocations: 6.891 kB / 0.7432 GB, free: 50.7 MB / 475.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01331/1.525, allocations: 5.138 MB / 0.7482 GB, free: 46.4 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.474e-05/1.525, allocations: 0 / 0.7482 GB, free: 46.4 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002161/1.527, allocations: 238.6 kB / 0.7484 GB, free: 46.21 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007594/1.528, allocations: 155.5 kB / 0.7486 GB, free: 46.09 MB / 475.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001595/1.528, allocations: 11.66 kB / 0.7486 GB, free: 46.09 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00289/1.531, allocations: 2.057 MB / 0.7506 GB, free: 44.09 MB / 475.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.292e-06/1.531, allocations: 0 / 0.7506 GB, free: 44.09 MB / 475.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007074/1.538, allocations: 3.752 MB / 0.7542 GB, free: 40.66 MB / 475.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001669/1.54, allocations: 0.5101 MB / 0.7547 GB, free: 40.17 MB / 475.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005245/1.54, allocations: 0 / 0.7547 GB, free: 40.17 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00196/1.542, allocations: 48.67 kB / 0.7548 GB, free: 40.14 MB / 475.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002455/1.543, allocations: 75.36 kB / 0.7549 GB, free: 40.09 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001415/1.543, allocations: 44.41 kB / 0.7549 GB, free: 40.05 MB / 475.1 MB Notification: Performance of sorting global known variables: time 0.003838/1.547, allocations: 1.872 MB / 0.7567 GB, free: 38.43 MB / 475.1 MB Notification: Performance of sort global known variables: time 1.784e-06/1.547, allocations: 0 / 0.7567 GB, free: 38.43 MB / 475.1 MB Notification: Performance of remove unused functions: time 0.006051/1.553, allocations: 0.6922 MB / 0.7574 GB, free: 37.74 MB / 475.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (121): * Single equations (assignments): 117 * 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.0005019/1.553, allocations: 137.1 kB / 0.7575 GB, free: 37.61 MB / 475.1 MB Notification: Performance of simCode: created initialization part: time 0.00777/1.561, allocations: 3.781 MB / 0.7612 GB, free: 34.18 MB / 475.1 MB Notification: Performance of simCode: created event and clocks part: time 7.985e-06/1.561, allocations: 0 / 0.7612 GB, free: 34.18 MB / 475.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001989/1.563, allocations: 1.067 MB / 0.7623 GB, free: 33.2 MB / 475.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002421/1.566, allocations: 278.8 kB / 0.7625 GB, free: 32.95 MB / 475.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01542/1.581, allocations: 6.296 MB / 0.7687 GB, free: 27.34 MB / 475.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004628/1.586, allocations: 2.86 MB / 0.7715 GB, free: 25.14 MB / 475.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001319/1.587, allocations: 249.6 kB / 0.7717 GB, free: 24.9 MB / 475.1 MB Notification: Performance of SimCode: time 9.32e-07/1.587, allocations: 0 / 0.7717 GB, free: 24.9 MB / 475.1 MB Notification: Performance of Templates: time 0.4464/2.033, allocations: 59.35 MB / 0.8297 GB, free: 127.4 MB / 0.4952 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches