Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.conf.json 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 4.0.0+maint.om/package.mo", uses=false) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo): time 0.001082/0.001082, allocations: 179.9 kB / 8.519 MB, free: 1.848 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.28/1.28, allocations: 221.4 MB / 230.3 MB, free: 7.625 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009344/0.0009344, allocations: 94.05 kB / 281.2 MB, free: 5.457 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1764/0.1764, allocations: 44.14 MB / 376.1 MB, free: 3.234 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 6.973e-06/7.003e-06, allocations: 4.219 kB / 444 MB, free: 15.61 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1143, allocations: 61.9 MB / 0.4941 GB, free: 1.633 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3235/0.4379, allocations: 105.5 MB / 0.5971 GB, free: 7.254 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002013/0.4381, allocations: 71.97 kB / 0.5972 GB, free: 7.184 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.1798/0.6179, allocations: 69.75 MB / 0.6653 GB, free: 0.9336 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001186/0.6181, allocations: 63.92 kB / 0.6654 GB, free: 0.8711 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: 1170 * Number of variables: 1170 Notification: Performance of Generate backend data structure: time 0.006696/0.6248, allocations: 3.137 MB / 0.6685 GB, free: 13.67 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.493e-05/0.6249, allocations: 17.22 kB / 0.6685 GB, free: 13.66 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01596/0.6408, allocations: 3.875 MB / 0.6723 GB, free: 9.766 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01113/0.652, allocations: 4.06 MB / 0.6762 GB, free: 5.641 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001476/0.6522, allocations: 104 kB / 0.6763 GB, free: 5.539 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001168/0.6534, allocations: 180 kB / 0.6765 GB, free: 5.363 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008463/0.6618, allocations: 4.599 MB / 0.681 GB, free: 0.7578 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01263/0.6745, allocations: 7.451 MB / 0.6883 GB, free: 8.355 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001526/0.6747, allocations: 67.39 kB / 0.6883 GB, free: 8.289 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004066/0.6751, allocations: 28 kB / 0.6884 GB, free: 8.262 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001014/0.6761, allocations: 0.8324 MB / 0.6892 GB, free: 7.422 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1871/0.8632, allocations: 38.13 MB / 0.7264 GB, free: 172.9 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002017/0.8653, allocations: 2.114 MB / 0.7285 GB, free: 172.3 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001051/0.8663, allocations: 1.157 MB / 0.7296 GB, free: 172.2 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005128/0.8715, allocations: 4.05 MB / 0.7335 GB, free: 170.7 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.944e-05/0.8716, allocations: 47.69 kB / 0.7336 GB, free: 170.7 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=105): time 4.699e-06/0.8716, allocations: 0 / 0.7336 GB, free: 170.7 MB / 0.5105 GB Notification: Performance of matching and sorting (n=130): time 0.01972/0.8913, allocations: 10.12 MB / 0.7435 GB, free: 168.4 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.529e-05/0.8914, allocations: 192.3 kB / 0.7437 GB, free: 168.1 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003302/0.8947, allocations: 2.792 MB / 0.7464 GB, free: 167.8 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0001727/0.8949, allocations: 30.89 kB / 0.7464 GB, free: 167.8 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001093/0.896, allocations: 2.501 MB / 0.7489 GB, free: 166.4 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003415/0.8963, allocations: 0.5025 MB / 0.7493 GB, free: 166.1 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001516/0.8965, allocations: 0 / 0.7493 GB, free: 166.1 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000235/0.8967, allocations: 0.532 MB / 0.7499 GB, free: 165.8 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001857/0.8986, allocations: 1.519 MB / 0.7513 GB, free: 165.8 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003118/0.9017, allocations: 4.978 MB / 0.7562 GB, free: 161.2 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002983/0.9047, allocations: 2.779 MB / 0.7589 GB, free: 160.8 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.104e-05/0.9048, allocations: 36.88 kB / 0.759 GB, free: 160.8 MB / 0.5105 GB Notification: Performance of matching and sorting (n=702) (initialization): time 0.00819/0.913, allocations: 5.787 MB / 0.7646 GB, free: 159.2 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/0.913, allocations: 3.469 kB / 0.7646 GB, free: 159.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001121/0.9131, allocations: 124.6 kB / 0.7647 GB, free: 159.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006657/0.9138, allocations: 351.9 kB / 0.7651 GB, free: 159.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00367/0.9175, allocations: 1.234 MB / 0.7663 GB, free: 159 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002315/0.9198, allocations: 2.563 MB / 0.7688 GB, free: 157.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003709/0.9236, allocations: 166 kB / 0.7689 GB, free: 157.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007269/0.9243, allocations: 338 kB / 0.7693 GB, free: 157.2 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 568 * Number of states: 0 () * Number of discrete variables: 29 (BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Distance1.arrow.arrowLine.twoHeadedArrow,Distance1.arrow.headAtOrigin,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 (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.000697/0.925, allocations: 414.1 kB / 0.7697 GB, free: 156.9 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000474/0.9255, allocations: 276.1 kB / 0.7699 GB, free: 156.7 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002277/0.9278, allocations: 1.556 MB / 0.7714 GB, free: 156.1 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.177e-05/0.9278, allocations: 11.62 kB / 0.7714 GB, free: 156.1 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.117e-06/0.9278, allocations: 6.125 kB / 0.7715 GB, free: 156.1 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.149e-05/0.9279, allocations: 7.078 kB / 0.7715 GB, free: 156.1 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006808/0.9347, allocations: 4.302 MB / 0.7757 GB, free: 154.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.004e-06/0.9347, allocations: 0 / 0.7757 GB, free: 154.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001038/0.9357, allocations: 190.4 kB / 0.7758 GB, free: 154.4 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004499/0.9362, allocations: 156.8 kB / 0.776 GB, free: 154.4 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.539e-05/0.9363, allocations: 8.594 kB / 0.776 GB, free: 154.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001865/0.9382, allocations: 2.02 MB / 0.778 GB, free: 152.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/0.9382, allocations: 1.281 kB / 0.778 GB, free: 152.9 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004292/0.9425, allocations: 3.56 MB / 0.7814 GB, free: 151.2 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007828/0.9433, allocations: 326.1 kB / 0.7818 GB, free: 151 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003706/0.9437, allocations: 6.562 kB / 0.7818 GB, free: 151 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00108/0.9448, allocations: 30.83 kB / 0.7818 GB, free: 151 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001381/0.9449, allocations: 60.33 kB / 0.7819 GB, free: 151 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.695e-05/0.945, allocations: 41.11 kB / 0.7819 GB, free: 151 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.003117/0.9482, allocations: 1.862 MB / 0.7837 GB, free: 150.3 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005725/0.9539, allocations: 0.6527 MB / 0.7843 GB, free: 150.3 MB / 0.5105 GB 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 (100): * Single equations (assignments): 96 * 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.0004839/0.9544, allocations: 136.3 kB / 0.7845 GB, free: 150.2 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.005323/0.9597, allocations: 3.644 MB / 0.788 GB, free: 147.2 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 5.661e-06/0.9598, allocations: 4 kB / 0.788 GB, free: 147.2 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001097/0.9609, allocations: 0.9771 MB / 0.789 GB, free: 146.3 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001588/0.9625, allocations: 282.4 kB / 0.7893 GB, free: 146 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0101/0.9726, allocations: 5.722 MB / 0.7949 GB, free: 140.9 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002949/0.9756, allocations: 2.982 MB / 0.7978 GB, free: 138.5 MB / 0.5105 GB Notification: Performance of SimCode: time 8.22e-07/0.9756, allocations: 0 / 0.7978 GB, free: 138.5 MB / 0.5105 GB Notification: Performance of Templates: time 0.04602/1.022, allocations: 26.97 MB / 0.8241 GB, free: 119.9 MB / 0.5105 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches