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.001497/0.001497, allocations: 186.3 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.943/1.943, allocations: 205.4 MB / 222.5 MB, free: 9.125 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001123/0.001122, allocations: 95.55 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5004/0.5004, allocations: 43.55 MB / 362.7 MB, free: 52.11 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004576/0.0004577, allocations: 12 kB / 431.4 MB, free: 6.184 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/0.1231, allocations: 58.84 MB / 490.2 MB, free: 11.25 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4841/0.6072, allocations: 105.2 MB / 0.5814 GB, free: 13.55 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002616/0.6076, allocations: 79.95 kB / 0.5815 GB, free: 13.47 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3151/0.9227, allocations: 73.25 MB / 0.653 GB, free: 3.77 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.9227, allocations: 0 / 0.653 GB, free: 3.77 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002072/0.923, allocations: 60 kB / 0.6531 GB, free: 3.711 MB / 474.7 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.01365/0.9366, allocations: 3.504 MB / 0.6565 GB, free: 144 kB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.986e-05/0.9367, allocations: 16.03 kB / 0.6565 GB, free: 128 kB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03245/0.9692, allocations: 4.247 MB / 0.6607 GB, free: 11.86 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01672/0.9859, allocations: 4.251 MB / 0.6648 GB, free: 7.547 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003206/0.9863, allocations: 246.4 kB / 0.665 GB, free: 7.305 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001767/0.9881, allocations: 331.8 kB / 0.6654 GB, free: 6.98 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3562/1.344, allocations: 8.294 MB / 0.6735 GB, free: 94.66 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002384/1.345, allocations: 55.12 kB / 0.6735 GB, free: 94.66 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001037/1.346, allocations: 162.7 kB / 0.6737 GB, free: 94.66 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002082/1.348, allocations: 0.8231 MB / 0.6745 GB, free: 94.65 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01993/1.368, allocations: 6.699 MB / 0.681 GB, free: 94.63 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05201/1.42, allocations: 39.88 MB / 0.72 GB, free: 68.28 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007631/1.427, allocations: 2.287 MB / 0.7222 GB, free: 67.61 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004899/1.428, allocations: 324.5 kB / 0.7225 GB, free: 67.33 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.506e-05/1.428, allocations: 51.45 kB / 0.7225 GB, free: 67.29 MB / 490.7 MB Notification: Performance of pre-optimization done (n=117): time 5.59e-06/1.428, allocations: 0 / 0.7225 GB, free: 67.29 MB / 490.7 MB Notification: Performance of matching and sorting (n=141): time 0.05621/1.484, allocations: 11.39 MB / 0.7337 GB, free: 63.16 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.914e-05/1.484, allocations: 201.2 kB / 0.7339 GB, free: 62.94 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008702/1.493, allocations: 3.309 MB / 0.7371 GB, free: 61.82 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003458/1.494, allocations: 50.3 kB / 0.7371 GB, free: 61.77 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002638/1.496, allocations: 2.643 MB / 0.7397 GB, free: 59.83 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009286/1.497, allocations: 0.5544 MB / 0.7403 GB, free: 59.44 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005795/1.498, allocations: 110.3 kB / 0.7404 GB, free: 59.35 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004035/1.498, allocations: 0.5354 MB / 0.7409 GB, free: 58.95 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004754/1.503, allocations: 1.64 MB / 0.7425 GB, free: 58.42 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007133/1.51, allocations: 5.069 MB / 0.7474 GB, free: 53.2 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006966/1.517, allocations: 2.866 MB / 0.7502 GB, free: 52.02 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001384/1.517, allocations: 38.91 kB / 0.7503 GB, free: 52.01 MB / 490.7 MB Notification: Performance of matching and sorting (n=702) (initialization): time 0.01725/1.535, allocations: 6.542 MB / 0.7567 GB, free: 49.48 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.748e-05/1.535, allocations: 63.58 kB / 0.7567 GB, free: 49.48 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001603/1.535, allocations: 119.5 kB / 0.7568 GB, free: 49.48 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00109/1.536, allocations: 355.2 kB / 0.7572 GB, free: 49.43 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007133/1.543, allocations: 1.245 MB / 0.7584 GB, free: 49.28 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004169/1.547, allocations: 2.757 MB / 0.7611 GB, free: 47.37 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006058/1.553, allocations: 284.3 kB / 0.7614 GB, free: 47.27 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001106/1.555, allocations: 340.7 kB / 0.7617 GB, free: 47.22 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 557 * 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 (667): * Single equations (assignments): 663 * 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.004311/1.559, allocations: 1.781 MB / 0.7634 GB, free: 46.36 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009001/1.56, allocations: 313.6 kB / 0.7637 GB, free: 46.18 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004739/1.565, allocations: 1.736 MB / 0.7654 GB, free: 45.47 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.085e-05/1.565, allocations: 18.31 kB / 0.7654 GB, free: 45.47 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.205e-05/1.565, allocations: 7.344 kB / 0.7654 GB, free: 45.47 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.78e-05/1.565, allocations: 3.891 kB / 0.7654 GB, free: 45.47 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01405/1.579, allocations: 5.419 MB / 0.7707 GB, free: 43.31 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.51e-05/1.579, allocations: 0 / 0.7707 GB, free: 43.31 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002044/1.581, allocations: 222 kB / 0.7709 GB, free: 43.29 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007763/1.582, allocations: 158.6 kB / 0.7711 GB, free: 43.25 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001304/1.582, allocations: 27.45 kB / 0.7711 GB, free: 43.23 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00315/1.585, allocations: 2.196 MB / 0.7733 GB, free: 41.57 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/1.585, allocations: 3.562 kB / 0.7733 GB, free: 41.57 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008676/1.594, allocations: 3.821 MB / 0.777 GB, free: 39.75 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00214/1.596, allocations: 0.5376 MB / 0.7775 GB, free: 39.4 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009482/1.597, allocations: 22.31 kB / 0.7776 GB, free: 39.38 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002599/1.6, allocations: 66.12 kB / 0.7776 GB, free: 39.37 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003433/1.6, allocations: 72.59 kB / 0.7777 GB, free: 39.35 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001431/1.6, allocations: 44.58 kB / 0.7777 GB, free: 39.34 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.005617/1.606, allocations: 2.318 MB / 0.78 GB, free: 38.56 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.92e-07/1.606, allocations: 0 / 0.78 GB, free: 38.56 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.006236/1.612, allocations: 0.8054 MB / 0.7808 GB, free: 38.46 MB / 490.7 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.0005209/1.613, allocations: 156.3 kB / 0.7809 GB, free: 38.34 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.009369/1.622, allocations: 3.993 MB / 0.7848 GB, free: 36.92 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.025e-06/1.622, allocations: 10.88 kB / 0.7848 GB, free: 36.91 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002406/1.625, allocations: 1.085 MB / 0.7859 GB, free: 36.46 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00274/1.627, allocations: 349.4 kB / 0.7862 GB, free: 36.29 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01937/1.647, allocations: 8.942 MB / 0.795 GB, free: 31.65 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005222/1.652, allocations: 2.83 MB / 0.7977 GB, free: 30.48 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001493/1.654, allocations: 259.1 kB / 0.798 GB, free: 30.47 MB / 490.7 MB Notification: Performance of SimCode: time 1.883e-06/1.654, allocations: 0 / 0.798 GB, free: 30.47 MB / 490.7 MB Notification: Performance of Templates: time 0.1181/1.772, allocations: 61.01 MB / 0.8575 GB, free: 12.35 MB / 0.5105 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