Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.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.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_3.2.3_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_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 3.2.3+maint.om/package.mo): time 0.0009514/0.0009514, allocations: 192.9 kB / 7.805 MB, free: 2.438 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9995/0.9995, allocations: 205.2 MB / 213.4 MB, free: 13.84 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.0007738/0.0007738, allocations: 87.19 kB / 261.4 MB, free: 13.54 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.1503/0.1503, allocations: 43.5 MB / 352.9 MB, free: 1.934 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.651e-06/5.671e-06, allocations: 4 kB / 417.7 MB, free: 40.54 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2023/0.2023, allocations: 58.83 MB / 476.6 MB, free: 5.309 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1109/0.3133, allocations: 103.7 MB / 0.5667 GB, free: 11.2 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001633/0.3135, allocations: 79.94 kB / 0.5668 GB, free: 11.12 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.3275/0.641, allocations: 76.63 MB / 0.6416 GB, free: 108.1 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001177/0.6411, allocations: 65.84 kB / 0.6417 GB, free: 108.1 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.005678/0.6468, allocations: 3.516 MB / 0.6451 GB, free: 107 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.022e-05/0.6468, allocations: 7.188 kB / 0.6451 GB, free: 107 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01388/0.6607, allocations: 3.976 MB / 0.649 GB, free: 106.8 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008771/0.6695, allocations: 4.421 MB / 0.6533 GB, free: 106.3 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.625e-05/0.6696, allocations: 120.7 kB / 0.6534 GB, free: 106.3 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004965/0.6701, allocations: 221.4 kB / 0.6536 GB, free: 106.2 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006107/0.6762, allocations: 5.367 MB / 0.6589 GB, free: 106.2 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008103/0.6843, allocations: 8.493 MB / 0.6672 GB, free: 103.6 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.895e-05/0.6845, allocations: 56.09 kB / 0.6672 GB, free: 103.6 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003698/0.6848, allocations: 30.41 kB / 0.6673 GB, free: 103.6 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007692/0.6856, allocations: 0.9658 MB / 0.6682 GB, free: 103.6 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02905/0.7147, allocations: 41.56 MB / 0.7088 GB, free: 72.78 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0021/0.7168, allocations: 2.557 MB / 0.7113 GB, free: 71.18 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001176/0.718, allocations: 1.185 MB / 0.7124 GB, free: 70.68 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005457/0.7235, allocations: 4.443 MB / 0.7168 GB, free: 67.98 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.983e-05/0.7235, allocations: 51.23 kB / 0.7168 GB, free: 67.92 MB / 474.7 MB Notification: Performance of pre-optimization done (n=106): time 2.555e-06/0.7235, allocations: 1.469 kB / 0.7168 GB, free: 67.92 MB / 474.7 MB Notification: Performance of matching and sorting (n=121): time 0.01437/0.7379, allocations: 8.834 MB / 0.7255 GB, free: 63.66 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.184e-05/0.738, allocations: 198.7 kB / 0.7257 GB, free: 63.44 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003595/0.7416, allocations: 3.086 MB / 0.7287 GB, free: 62.24 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 7.09e-05/0.7416, allocations: 31.02 kB / 0.7287 GB, free: 62.21 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001029/0.7427, allocations: 2.901 MB / 0.7315 GB, free: 59.95 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003059/0.743, allocations: 0.4957 MB / 0.732 GB, free: 59.6 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001533/0.7432, allocations: 0 / 0.732 GB, free: 59.6 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002306/0.7434, allocations: 0.5571 MB / 0.7326 GB, free: 59.18 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001858/0.7453, allocations: 1.565 MB / 0.7341 GB, free: 58.66 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002911/0.7482, allocations: 5.544 MB / 0.7395 GB, free: 52.53 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003054/0.7512, allocations: 2.968 MB / 0.7424 GB, free: 51.09 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.316e-05/0.7513, allocations: 40 kB / 0.7424 GB, free: 51.05 MB / 474.7 MB Notification: Performance of matching and sorting (n=780) (initialization): time 0.007369/0.7587, allocations: 6.229 MB / 0.7485 GB, free: 45.56 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.347e-05/0.7587, allocations: 8.188 kB / 0.7485 GB, free: 45.55 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.435e-05/0.7588, allocations: 147.5 kB / 0.7487 GB, free: 45.41 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005918/0.7594, allocations: 373 kB / 0.749 GB, free: 45.08 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003312/0.7627, allocations: 1.374 MB / 0.7504 GB, free: 43.87 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002083/0.7648, allocations: 2.599 MB / 0.7529 GB, free: 41.37 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003621/0.7684, allocations: 186.7 kB / 0.7531 GB, free: 41.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004156/0.7689, allocations: 383.6 kB / 0.7534 GB, free: 40.82 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.0004829/0.7694, allocations: 457.6 kB / 0.7539 GB, free: 40.38 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003446/0.7697, allocations: 296.1 kB / 0.7542 GB, free: 40.08 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002015/0.7717, allocations: 1.424 MB / 0.7556 GB, free: 38.89 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.672e-05/0.7718, allocations: 12 kB / 0.7556 GB, free: 38.88 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.598e-06/0.7718, allocations: 7.625 kB / 0.7556 GB, free: 38.87 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.558e-06/0.7718, allocations: 7.703 kB / 0.7556 GB, free: 38.87 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006099/0.7779, allocations: 4.098 MB / 0.7596 GB, free: 35.52 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.969e-06/0.7779, allocations: 4 kB / 0.7596 GB, free: 35.52 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008846/0.7788, allocations: 166.2 kB / 0.7597 GB, free: 35.38 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000451/0.7793, allocations: 154.2 kB / 0.7599 GB, free: 35.27 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.914e-05/0.7794, allocations: 10.48 kB / 0.7599 GB, free: 35.26 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001706/0.7811, allocations: 2.027 MB / 0.7619 GB, free: 33.27 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.7811, allocations: 0 / 0.7619 GB, free: 33.27 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003341/0.7844, allocations: 3.248 MB / 0.7651 GB, free: 30.31 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008887/0.7853, allocations: 480.3 kB / 0.7655 GB, free: 29.85 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003387/0.7857, allocations: 0 / 0.7655 GB, free: 29.85 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009415/0.7866, allocations: 29.58 kB / 0.7655 GB, free: 29.83 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001343/0.7868, allocations: 57.14 kB / 0.7656 GB, free: 29.79 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.47e-05/0.7868, allocations: 34.11 kB / 0.7656 GB, free: 29.76 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.002449/0.7893, allocations: 2.057 MB / 0.7676 GB, free: 27.98 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003768/0.7931, allocations: 0.7121 MB / 0.7683 GB, free: 27.27 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.0002772/0.7934, allocations: 132.5 kB / 0.7685 GB, free: 27.13 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.004955/0.7983, allocations: 3.75 MB / 0.7721 GB, free: 23.71 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.369e-06/0.7984, allocations: 5.219 kB / 0.7721 GB, free: 23.71 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000991/0.7994, allocations: 0.8945 MB / 0.773 GB, free: 22.89 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001462/0.8008, allocations: 285.3 kB / 0.7733 GB, free: 22.63 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01143/0.8123, allocations: 6.206 MB / 0.7793 GB, free: 17.04 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003486/0.8158, allocations: 3.279 MB / 0.7825 GB, free: 14.41 MB / 474.7 MB Notification: Performance of SimCode: time 8.62e-07/0.8158, allocations: 0 / 0.7825 GB, free: 14.41 MB / 474.7 MB Notification: Performance of Templates: time 0.04897/0.8648, allocations: 27.29 MB / 0.8092 GB, free: 3.832 MB / 490.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_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_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches