Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.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.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.001248/0.001248, allocations: 203.5 kB / 8.541 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.231/1.231, allocations: 225.5 MB / 234.4 MB, free: 15 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008634/0.0008634, allocations: 91.56 kB / 286.3 MB, free: 12.62 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3459/0.3459, allocations: 45.14 MB / 383.3 MB, free: 41.05 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.046e-05/1.048e-05, allocations: 4 kB / 452.6 MB, free: 5.566 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3587/0.3587, allocations: 63.23 MB / 0.5038 GB, free: 35.52 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1431/0.5019, allocations: 106.4 MB / 0.6077 GB, free: 3.906 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002353/0.5022, allocations: 79.95 kB / 0.6078 GB, free: 3.828 MB / 426.7 MB Notification: Performance of FrontEnd: time 0.1979/0.7001, allocations: 70.52 MB / 0.6766 GB, free: 12.82 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002477/0.7004, allocations: 60 kB / 0.6767 GB, free: 12.77 MB / 0.4948 GB 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.01061/0.711, allocations: 3.16 MB / 0.6798 GB, free: 9.543 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.06e-05/0.711, allocations: 8.031 kB / 0.6798 GB, free: 9.535 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01777/0.7288, allocations: 3.872 MB / 0.6836 GB, free: 5.652 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0103/0.7392, allocations: 3.525 MB / 0.687 GB, free: 2.062 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002031/0.7394, allocations: 100 kB / 0.6871 GB, free: 1.965 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00154/0.741, allocations: 183.9 kB / 0.6873 GB, free: 1.785 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.1983/0.9392, allocations: 4.594 MB / 0.6918 GB, free: 160.8 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009152/0.9484, allocations: 7.459 MB / 0.6991 GB, free: 158.3 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001116/0.9486, allocations: 55.91 kB / 0.6991 GB, free: 158.3 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000367/0.949, allocations: 28.44 kB / 0.6991 GB, free: 158.3 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007892/0.9498, allocations: 0.836 MB / 0.7 GB, free: 158.3 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03277/0.9825, allocations: 38.13 MB / 0.7372 GB, free: 133 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002568/0.9852, allocations: 2.132 MB / 0.7393 GB, free: 132.4 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001312/0.9865, allocations: 1.149 MB / 0.7404 GB, free: 132.3 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006261/0.9928, allocations: 4.06 MB / 0.7444 GB, free: 130.5 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.223e-05/0.9929, allocations: 48.66 kB / 0.7444 GB, free: 130.4 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=105): time 4.919e-06/0.9929, allocations: 0 / 0.7444 GB, free: 130.4 MB / 0.4948 GB Notification: Performance of matching and sorting (n=130): time 0.02283/1.016, allocations: 10.12 MB / 0.7543 GB, free: 126.1 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.324e-05/1.016, allocations: 194.1 kB / 0.7545 GB, free: 125.9 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005713/1.022, allocations: 2.785 MB / 0.7572 GB, free: 124.9 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001746/1.022, allocations: 33.48 kB / 0.7572 GB, free: 124.8 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001738/1.023, allocations: 2.498 MB / 0.7597 GB, free: 122.9 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005492/1.024, allocations: 0.5115 MB / 0.7602 GB, free: 122.5 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003612/1.024, allocations: 0 / 0.7602 GB, free: 122.5 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002602/1.025, allocations: 0.533 MB / 0.7607 GB, free: 122.1 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0018/1.026, allocations: 1.52 MB / 0.7622 GB, free: 121.6 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003233/1.03, allocations: 4.974 MB / 0.767 GB, free: 116.4 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003878/1.034, allocations: 2.771 MB / 0.7697 GB, free: 115.4 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.736e-05/1.034, allocations: 35.03 kB / 0.7698 GB, free: 115.4 MB / 0.4948 GB Notification: Performance of matching and sorting (n=702) (initialization): time 0.009369/1.043, allocations: 5.79 MB / 0.7754 GB, free: 113.4 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.032e-05/1.043, allocations: 9.531 kB / 0.7754 GB, free: 113.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001381/1.043, allocations: 121.8 kB / 0.7756 GB, free: 113.4 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000725/1.044, allocations: 352.8 kB / 0.7759 GB, free: 113.4 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003565/1.048, allocations: 1.23 MB / 0.7771 GB, free: 113.2 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002442/1.05, allocations: 2.561 MB / 0.7796 GB, free: 111.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003862/1.054, allocations: 169.6 kB / 0.7798 GB, free: 111.4 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006655/1.055, allocations: 344.1 kB / 0.7801 GB, free: 111.4 MB / 0.4948 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.0009501/1.056, allocations: 402.9 kB / 0.7805 GB, free: 111 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005973/1.056, allocations: 277.7 kB / 0.7807 GB, free: 110.9 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002638/1.059, allocations: 1.559 MB / 0.7823 GB, free: 110.3 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.873e-05/1.059, allocations: 14.25 kB / 0.7823 GB, free: 110.3 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.158e-05/1.059, allocations: 2.75 kB / 0.7823 GB, free: 110.3 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.255e-05/1.059, allocations: 10.98 kB / 0.7823 GB, free: 110.3 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009189/1.068, allocations: 4.284 MB / 0.7865 GB, free: 108.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.188e-06/1.068, allocations: 6.719 kB / 0.7865 GB, free: 108.6 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001101/1.069, allocations: 189.5 kB / 0.7866 GB, free: 108.6 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004893/1.07, allocations: 154.1 kB / 0.7868 GB, free: 108.6 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000121/1.07, allocations: 12.8 kB / 0.7868 GB, free: 108.6 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001897/1.072, allocations: 2.019 MB / 0.7888 GB, free: 107.1 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.129e-06/1.072, allocations: 5.844 kB / 0.7888 GB, free: 107.1 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004723/1.077, allocations: 3.558 MB / 0.7923 GB, free: 105.4 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001174/1.078, allocations: 326.2 kB / 0.7926 GB, free: 105.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008595/1.079, allocations: 1.469 kB / 0.7926 GB, free: 105.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001544/1.08, allocations: 35.5 kB / 0.7926 GB, free: 105.1 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001416/1.08, allocations: 59.06 kB / 0.7927 GB, free: 105.1 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001088/1.08, allocations: 39.98 kB / 0.7927 GB, free: 105.1 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.003564/1.084, allocations: 1.865 MB / 0.7945 GB, free: 104.4 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004969/1.089, allocations: 0.6552 MB / 0.7952 GB, free: 104.4 MB / 0.4948 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.0004502/1.089, allocations: 145.9 kB / 0.7953 GB, free: 104.3 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.006057/1.096, allocations: 3.635 MB / 0.7989 GB, free: 102.5 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 5.651e-06/1.096, allocations: 0 / 0.7989 GB, free: 102.5 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001199/1.097, allocations: 0.9891 MB / 0.7998 GB, free: 101.6 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002012/1.099, allocations: 280.8 kB / 0.8001 GB, free: 101.4 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01112/1.11, allocations: 5.724 MB / 0.8057 GB, free: 96.2 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003653/1.114, allocations: 2.981 MB / 0.8086 GB, free: 93.85 MB / 0.4948 GB Notification: Performance of SimCode: time 1.042e-06/1.114, allocations: 0 / 0.8086 GB, free: 93.85 MB / 0.4948 GB Notification: Performance of Templates: time 0.0559/1.17, allocations: 26.95 MB / 0.8349 GB, free: 78.36 MB / 0.4948 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches