Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_trunk_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001119/0.001119, allocations: 195.2 kB / 8.535 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.242/1.242, allocations: 225.5 MB / 234.4 MB, free: 3.473 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008952/0.0008951, allocations: 90.81 kB / 286.3 MB, free: 5.223 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1958/0.1958, allocations: 45.16 MB / 383.3 MB, free: 0.6445 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 8.987e-06/9.157e-06, allocations: 4 kB / 452.6 MB, free: 76.23 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1104, allocations: 63.24 MB / 0.5038 GB, free: 13.06 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3381/0.4485, allocations: 105.9 MB / 0.6072 GB, free: 13.36 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002601/0.4488, allocations: 80.08 kB / 0.6073 GB, free: 13.32 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.1893/0.6382, allocations: 74.09 MB / 0.6796 GB, free: 11.57 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.000163/0.6384, allocations: 68 kB / 0.6797 GB, free: 11.51 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: 1269 * Number of variables: 1269 Notification: Performance of Generate backend data structure: time 0.009313/0.6477, allocations: 3.349 MB / 0.6829 GB, free: 8.098 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.648e-05/0.6477, allocations: 8.031 kB / 0.6829 GB, free: 8.09 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01614/0.6639, allocations: 3.926 MB / 0.6868 GB, free: 4.152 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0117/0.6756, allocations: 3.623 MB / 0.6903 GB, free: 476 kB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001763/0.6758, allocations: 112 kB / 0.6904 GB, free: 364 kB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001797/0.6776, allocations: 199.9 kB / 0.6906 GB, free: 164 kB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01005/0.6877, allocations: 4.952 MB / 0.6955 GB, free: 11.2 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01367/0.7014, allocations: 7.958 MB / 0.7032 GB, free: 2.273 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001443/0.7016, allocations: 63.41 kB / 0.7033 GB, free: 2.211 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000457/0.7021, allocations: 31.98 kB / 0.7033 GB, free: 2.18 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009677/0.703, allocations: 0.8836 MB / 0.7042 GB, free: 1.293 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04184/0.7449, allocations: 40.04 MB / 0.7433 GB, free: 7.945 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003121/0.748, allocations: 2.463 MB / 0.7457 GB, free: 5.277 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001403/0.7495, allocations: 1.125 MB / 0.7468 GB, free: 4.141 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2104/0.9599, allocations: 4.074 MB / 0.7508 GB, free: 139.6 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.345e-05/0.96, allocations: 53.83 kB / 0.7508 GB, free: 139.5 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=97): time 3.636e-06/0.96, allocations: 0 / 0.7508 GB, free: 139.5 MB / 0.5261 GB Notification: Performance of matching and sorting (n=112): time 0.01472/0.9747, allocations: 8.384 MB / 0.759 GB, free: 137.8 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.344e-05/0.9748, allocations: 192.7 kB / 0.7592 GB, free: 137.6 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00353/0.9784, allocations: 2.954 MB / 0.7621 GB, free: 137.2 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 8.291e-05/0.9785, allocations: 27.78 kB / 0.7621 GB, free: 137.2 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001043/0.9795, allocations: 2.71 MB / 0.7647 GB, free: 135.7 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.000313/0.9798, allocations: 473.2 kB / 0.7652 GB, free: 135.5 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001537/0.98, allocations: 7.125 kB / 0.7652 GB, free: 135.5 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002498/0.9802, allocations: 0.5417 MB / 0.7657 GB, free: 135.1 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001727/0.982, allocations: 1.469 MB / 0.7672 GB, free: 135.1 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002974/0.985, allocations: 5.202 MB / 0.7722 GB, free: 130.2 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003049/0.988, allocations: 2.788 MB / 0.775 GB, free: 130.2 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.872e-05/0.9881, allocations: 38 kB / 0.775 GB, free: 130.2 MB / 0.5261 GB Notification: Performance of matching and sorting (n=731) (initialization): time 0.008704/0.9968, allocations: 5.86 MB / 0.7807 GB, free: 129.7 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 4.572e-05/0.9969, allocations: 7 kB / 0.7807 GB, free: 129.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001197/0.997, allocations: 135.7 kB / 0.7809 GB, free: 129.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006607/0.9977, allocations: 362.6 kB / 0.7812 GB, free: 129.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003662/1.001, allocations: 1.282 MB / 0.7825 GB, free: 129.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002709/1.004, allocations: 2.581 MB / 0.785 GB, free: 128.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004235/1.008, allocations: 174.4 kB / 0.7851 GB, free: 128.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007732/1.009, allocations: 356.3 kB / 0.7855 GB, free: 128.2 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 615 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.arrowLine.twoHeadedArrow,distance2.arrow.headAtOrigin,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[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],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 (696): * Single equations (assignments): 692 * 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.0007326/1.01, allocations: 439.1 kB / 0.7859 GB, free: 127.9 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005136/1.01, allocations: 285.9 kB / 0.7862 GB, free: 127.7 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002066/1.012, allocations: 1.301 MB / 0.7874 GB, free: 127.6 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-05/1.013, allocations: 10.78 kB / 0.7875 GB, free: 127.6 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.133e-05/1.013, allocations: 7.172 kB / 0.7875 GB, free: 127.6 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.094e-05/1.013, allocations: 4.672 kB / 0.7875 GB, free: 127.6 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007797/1.02, allocations: 3.818 MB / 0.7912 GB, free: 127.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.815e-06/1.02, allocations: 0 / 0.7912 GB, free: 127.2 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009239/1.021, allocations: 157.9 kB / 0.7914 GB, free: 127.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004895/1.022, allocations: 155.9 kB / 0.7915 GB, free: 127.2 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.949e-05/1.022, allocations: 6.219 kB / 0.7915 GB, free: 127.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001813/1.024, allocations: 2.034 MB / 0.7935 GB, free: 126 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/1.024, allocations: 0 / 0.7935 GB, free: 126 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003403/1.027, allocations: 3.055 MB / 0.7965 GB, free: 125.4 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007952/1.028, allocations: 331.2 kB / 0.7968 GB, free: 125.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003389/1.028, allocations: 3.969 kB / 0.7968 GB, free: 125.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001/1.029, allocations: 24.5 kB / 0.7968 GB, free: 125.1 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001308/1.029, allocations: 45.42 kB / 0.7969 GB, free: 125.1 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.739e-05/1.03, allocations: 29.27 kB / 0.7969 GB, free: 125.1 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.002778/1.032, allocations: 1.958 MB / 0.7988 GB, free: 125 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.00429/1.037, allocations: 0.6758 MB / 0.7995 GB, free: 125 MB / 0.5261 GB 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 (82): * Single equations (assignments): 78 * 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.0003363/1.037, allocations: 149 kB / 0.7996 GB, free: 124.9 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.005593/1.043, allocations: 3.526 MB / 0.803 GB, free: 124.4 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.105e-06/1.043, allocations: 0 / 0.803 GB, free: 124.4 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001024/1.044, allocations: 0.8335 MB / 0.8039 GB, free: 124.3 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001619/1.045, allocations: 301.3 kB / 0.8041 GB, free: 124.3 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01169/1.057, allocations: 5.808 MB / 0.8098 GB, free: 122.9 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00422/1.061, allocations: 3.106 MB / 0.8129 GB, free: 121.7 MB / 0.5261 GB Notification: Performance of SimCode: time 1.152e-06/1.061, allocations: 0 / 0.8129 GB, free: 121.7 MB / 0.5261 GB Notification: Performance of Templates: time 0.05471/1.116, allocations: 25.95 MB / 0.8382 GB, free: 111.9 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches