Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2") [: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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001638/0.001637, allocations: 175.8 kB / 8.15 MB, free: 2.195 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.635/1.635, allocations: 205.2 MB / 213.8 MB, free: 13.93 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001283/0.001282, allocations: 83.42 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2534/0.2534, allocations: 43.49 MB / 353.2 MB, free: 2.027 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.474e-06/7.625e-06, allocations: 0 / 417.7 MB, free: 40.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2661/0.2662, allocations: 58.84 MB / 476.5 MB, free: 5.09 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1796/0.4458, allocations: 103.8 MB / 0.5667 GB, free: 11.3 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002786/0.4461, allocations: 79.45 kB / 0.5668 GB, free: 11.22 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.5303/0.9765, allocations: 76.62 MB / 0.6416 GB, free: 107.8 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002048/0.9768, allocations: 69.62 kB / 0.6417 GB, free: 107.8 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: 1367 * Number of variables: 1367 Notification: Performance of Generate backend data structure: time 0.01284/0.9896, allocations: 3.511 MB / 0.6451 GB, free: 106.7 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.433e-05/0.9897, allocations: 6.75 kB / 0.6451 GB, free: 106.7 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03009/1.02, allocations: 3.974 MB / 0.649 GB, free: 106.5 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01677/1.037, allocations: 4.422 MB / 0.6533 GB, free: 106 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002348/1.037, allocations: 125.4 kB / 0.6534 GB, free: 106 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00186/1.039, allocations: 219.2 kB / 0.6536 GB, free: 105.9 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01367/1.052, allocations: 5.371 MB / 0.6589 GB, free: 105.9 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02078/1.073, allocations: 8.493 MB / 0.6672 GB, free: 103.3 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002116/1.074, allocations: 64.92 kB / 0.6672 GB, free: 103.3 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00134/1.075, allocations: 26.53 kB / 0.6672 GB, free: 103.3 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001667/1.077, allocations: 0.9579 MB / 0.6682 GB, free: 103.3 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05584/1.132, allocations: 41.57 MB / 0.7088 GB, free: 72.46 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004446/1.137, allocations: 2.552 MB / 0.7113 GB, free: 70.88 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002571/1.14, allocations: 1.188 MB / 0.7124 GB, free: 70.37 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01156/1.151, allocations: 4.452 MB / 0.7168 GB, free: 67.66 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.038e-05/1.151, allocations: 43.72 kB / 0.7168 GB, free: 67.61 MB / 474.7 MB Notification: Performance of pre-optimization done (n=106): time 5.219e-06/1.151, allocations: 0 / 0.7168 GB, free: 67.61 MB / 474.7 MB Notification: Performance of matching and sorting (n=121): time 0.03028/1.182, allocations: 8.841 MB / 0.7255 GB, free: 63.35 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.76e-05/1.182, allocations: 191.5 kB / 0.7256 GB, free: 63.13 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008689/1.19, allocations: 3.084 MB / 0.7286 GB, free: 61.93 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002649/1.191, allocations: 30.64 kB / 0.7287 GB, free: 61.9 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002328/1.193, allocations: 2.888 MB / 0.7315 GB, free: 59.6 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008198/1.194, allocations: 0.4966 MB / 0.732 GB, free: 59.25 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005782/1.195, allocations: 4 kB / 0.732 GB, free: 59.25 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0004264/1.195, allocations: 0.5609 MB / 0.7325 GB, free: 58.83 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004364/1.199, allocations: 1.562 MB / 0.7341 GB, free: 58.3 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0069/1.206, allocations: 5.545 MB / 0.7395 GB, free: 52.17 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007018/1.213, allocations: 2.968 MB / 0.7424 GB, free: 51.07 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001879/1.214, allocations: 41.16 kB / 0.7424 GB, free: 51.07 MB / 474.7 MB Notification: Performance of matching and sorting (n=780) (initialization): time 0.01675/1.23, allocations: 6.148 MB / 0.7484 GB, free: 45.67 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.313e-05/1.23, allocations: 4 kB / 0.7484 GB, free: 45.66 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002102/1.231, allocations: 147.5 kB / 0.7486 GB, free: 45.52 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00117/1.232, allocations: 374.9 kB / 0.7489 GB, free: 45.2 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008177/1.24, allocations: 1.387 MB / 0.7503 GB, free: 43.97 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004146/1.244, allocations: 2.617 MB / 0.7528 GB, free: 41.47 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005289/1.25, allocations: 174.2 kB / 0.753 GB, free: 41.31 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001263/1.251, allocations: 383.4 kB / 0.7534 GB, free: 40.94 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 655 * Number of states: 0 () * Number of discrete variables: 31 (LessEqualThreshold1.y,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[1],distance1.arrowColor[3],distance1.arrowColor[2],distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.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 (745): * Single equations (assignments): 741 * 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.001272/1.252, allocations: 378.5 kB / 0.7537 GB, free: 40.56 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008618/1.253, allocations: 296.2 kB / 0.754 GB, free: 40.27 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004153/1.257, allocations: 1.427 MB / 0.7554 GB, free: 39.07 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.648e-05/1.257, allocations: 16 kB / 0.7554 GB, free: 39.06 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.18e-05/1.257, allocations: 3.938 kB / 0.7554 GB, free: 39.05 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.608e-05/1.257, allocations: 7.703 kB / 0.7554 GB, free: 39.05 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01212/1.27, allocations: 4.084 MB / 0.7594 GB, free: 35.72 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.615e-05/1.27, allocations: 4 kB / 0.7594 GB, free: 35.71 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001909/1.271, allocations: 173.7 kB / 0.7596 GB, free: 35.57 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008796/1.272, allocations: 154.8 kB / 0.7597 GB, free: 35.45 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001463/1.273, allocations: 9.672 kB / 0.7597 GB, free: 35.45 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003357/1.276, allocations: 2.03 MB / 0.7617 GB, free: 33.46 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.703e-06/1.276, allocations: 4 kB / 0.7617 GB, free: 33.46 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007088/1.283, allocations: 3.242 MB / 0.7649 GB, free: 30.5 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001756/1.285, allocations: 488.3 kB / 0.7654 GB, free: 30.03 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009839/1.286, allocations: 0.7969 kB / 0.7654 GB, free: 30.03 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002361/1.288, allocations: 37.86 kB / 0.7654 GB, free: 30 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003372/1.289, allocations: 48.62 kB / 0.7654 GB, free: 29.97 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001324/1.289, allocations: 33.97 kB / 0.7655 GB, free: 29.94 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.005258/1.294, allocations: 2.05 MB / 0.7675 GB, free: 28.16 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006564/1.301, allocations: 0.7154 MB / 0.7682 GB, free: 27.45 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (Revolute1.phi,Revolute1.w) * Number of discrete variables: 1 (LessEqualThreshold1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (92): * Single equations (assignments): 88 * 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.0005477/1.301, allocations: 140.7 kB / 0.7683 GB, free: 27.31 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.00851/1.31, allocations: 3.755 MB / 0.772 GB, free: 23.89 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.372e-06/1.31, allocations: 4.188 kB / 0.772 GB, free: 23.88 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001983/1.312, allocations: 0.895 MB / 0.7728 GB, free: 23.06 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002513/1.314, allocations: 277.4 kB / 0.7731 GB, free: 22.81 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01971/1.334, allocations: 6.627 MB / 0.7796 GB, free: 16.86 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008138/1.342, allocations: 3.29 MB / 0.7828 GB, free: 14.22 MB / 474.7 MB Notification: Performance of SimCode: time 1.573e-06/1.342, allocations: 0 / 0.7828 GB, free: 14.22 MB / 474.7 MB Notification: Performance of Templates: time 0.2796/1.622, allocations: 62.79 MB / 0.8441 GB, free: 176.7 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches