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/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_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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008895/0.0008894, allocations: 189.2 kB / 7.803 MB, free: 2.492 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.013/1.013, allocations: 205.2 MB / 213.4 MB, free: 13.87 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.0007966/0.0007965, allocations: 92.2 kB / 261.4 MB, free: 13.55 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.1476/0.1476, allocations: 43.49 MB / 352.8 MB, free: 1.969 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.762e-06/6.772e-06, allocations: 0 / 417.7 MB, free: 40.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2005/0.2005, allocations: 58.84 MB / 476.6 MB, free: 5.219 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1137/0.3143, allocations: 104.3 MB / 0.5673 GB, free: 10.59 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001828/0.3145, allocations: 71.97 kB / 0.5674 GB, free: 10.52 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.1718/0.4863, allocations: 70.87 MB / 0.6366 GB, free: 3.098 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001269/0.4865, allocations: 64 kB / 0.6366 GB, free: 3.035 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.1273/0.6138, allocations: 3.225 MB / 0.6398 GB, free: 164.2 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.6138, allocations: 7.656 kB / 0.6398 GB, free: 164.2 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01419/0.628, allocations: 3.91 MB / 0.6436 GB, free: 163.9 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00874/0.6368, allocations: 4.272 MB / 0.6478 GB, free: 163.6 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.345e-05/0.6369, allocations: 104.5 kB / 0.6479 GB, free: 163.6 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005393/0.6375, allocations: 191.5 kB / 0.6481 GB, free: 163.6 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005319/0.6428, allocations: 4.81 MB / 0.6528 GB, free: 163.6 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007041/0.6498, allocations: 7.725 MB / 0.6603 GB, free: 161.1 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.251e-05/0.65, allocations: 52.19 kB / 0.6603 GB, free: 161.1 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003346/0.6503, allocations: 34.47 kB / 0.6604 GB, free: 161.1 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007089/0.651, allocations: 0.8736 MB / 0.6612 GB, free: 161.1 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02663/0.6777, allocations: 38.88 MB / 0.6992 GB, free: 133.3 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002012/0.6797, allocations: 2.163 MB / 0.7013 GB, free: 132.1 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009948/0.6807, allocations: 1.193 MB / 0.7025 GB, free: 131.6 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004548/0.6853, allocations: 4.205 MB / 0.7066 GB, free: 129.1 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.73e-05/0.6853, allocations: 43 kB / 0.7066 GB, free: 129 MB / 474.7 MB Notification: Performance of pre-optimization done (n=114): time 2.264e-06/0.6853, allocations: 0 / 0.7066 GB, free: 129 MB / 474.7 MB Notification: Performance of matching and sorting (n=139): time 0.01907/0.7044, allocations: 10.47 MB / 0.7169 GB, free: 124.4 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.025e-05/0.7045, allocations: 204.8 kB / 0.7171 GB, free: 124.2 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003494/0.708, allocations: 2.854 MB / 0.7198 GB, free: 123.1 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 8.349e-05/0.7081, allocations: 25.7 kB / 0.7199 GB, free: 123 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000912/0.709, allocations: 2.583 MB / 0.7224 GB, free: 121 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000326/0.7093, allocations: 0.543 MB / 0.7229 GB, free: 120.6 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001556/0.7095, allocations: 0 / 0.7229 GB, free: 120.6 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002538/0.7097, allocations: 0.5388 MB / 0.7234 GB, free: 120.2 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002063/0.7118, allocations: 1.576 MB / 0.725 GB, free: 119.4 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002623/0.7144, allocations: 5.144 MB / 0.73 GB, free: 112.7 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0026/0.7171, allocations: 2.862 MB / 0.7328 GB, free: 110.3 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.195e-05/0.7171, allocations: 40 kB / 0.7328 GB, free: 110.2 MB / 474.7 MB Notification: Performance of matching and sorting (n=727) (initialization): time 0.00715/0.7242, allocations: 6 MB / 0.7387 GB, free: 105 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/0.7243, allocations: 11.7 kB / 0.7387 GB, free: 104.9 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.473e-05/0.7244, allocations: 128 kB / 0.7388 GB, free: 104.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005893/0.725, allocations: 342.6 kB / 0.7392 GB, free: 104.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003233/0.7282, allocations: 1.289 MB / 0.7404 GB, free: 103.4 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00209/0.7303, allocations: 2.572 MB / 0.7429 GB, free: 100.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003254/0.7336, allocations: 173 kB / 0.7431 GB, free: 100.8 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003237/0.7339, allocations: 347.7 kB / 0.7434 GB, free: 100.4 MB / 474.7 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 (692): * Single equations (assignments): 688 * 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.0004473/0.7344, allocations: 412.2 kB / 0.7438 GB, free: 100 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003363/0.7347, allocations: 284.2 kB / 0.7441 GB, free: 99.74 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002305/0.737, allocations: 1.677 MB / 0.7457 GB, free: 98.32 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.692e-05/0.737, allocations: 12 kB / 0.7457 GB, free: 98.3 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.296e-06/0.7371, allocations: 4 kB / 0.7457 GB, free: 98.3 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.054e-05/0.7371, allocations: 7.641 kB / 0.7457 GB, free: 98.3 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006346/0.7434, allocations: 4.505 MB / 0.7501 GB, free: 94.58 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.242e-06/0.7435, allocations: 4 kB / 0.7502 GB, free: 94.57 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001076/0.7445, allocations: 208.7 kB / 0.7504 GB, free: 94.4 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004165/0.745, allocations: 154 kB / 0.7505 GB, free: 94.29 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.687e-05/0.7451, allocations: 15.83 kB / 0.7505 GB, free: 94.27 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001602/0.7467, allocations: 2.028 MB / 0.7525 GB, free: 92.3 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.7467, allocations: 0 / 0.7525 GB, free: 92.3 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003488/0.7502, allocations: 3.732 MB / 0.7561 GB, free: 88.87 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007964/0.751, allocations: 0.4913 MB / 0.7566 GB, free: 88.39 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003311/0.7513, allocations: 4.062 kB / 0.7566 GB, free: 88.39 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001015/0.7523, allocations: 34.41 kB / 0.7567 GB, free: 88.36 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001309/0.7525, allocations: 61.25 kB / 0.7567 GB, free: 88.32 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.917e-05/0.7526, allocations: 39.28 kB / 0.7568 GB, free: 88.29 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.002292/0.7549, allocations: 1.902 MB / 0.7586 GB, free: 86.63 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003537/0.7584, allocations: 0.6778 MB / 0.7593 GB, free: 85.96 MB / 474.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (110): * Single equations (assignments): 106 * 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.0003058/0.7587, allocations: 149 kB / 0.7594 GB, free: 85.81 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.004415/0.7632, allocations: 3.783 MB / 0.7631 GB, free: 82.37 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/0.7632, allocations: 4 kB / 0.7631 GB, free: 82.36 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001081/0.7643, allocations: 1.034 MB / 0.7641 GB, free: 81.41 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001087/0.7654, allocations: 274.1 kB / 0.7644 GB, free: 81.17 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008314/0.7737, allocations: 5.953 MB / 0.7702 GB, free: 75.8 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00295/0.7766, allocations: 3.073 MB / 0.7732 GB, free: 73.21 MB / 474.7 MB Notification: Performance of SimCode: time 7.51e-07/0.7767, allocations: 0 / 0.7732 GB, free: 73.21 MB / 474.7 MB Notification: Performance of Templates: time 0.04255/0.8192, allocations: 27.86 MB / 0.8004 GB, free: 46.2 MB / 474.7 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/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