Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.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.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_3.2.3_cpp_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001589/0.001589, allocations: 168.8 kB / 8.144 MB, free: 2.219 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.653/1.653, allocations: 205.2 MB / 213.7 MB, free: 13.94 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.001245/0.001245, allocations: 84.05 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.2562/0.2562, allocations: 43.5 MB / 353.2 MB, free: 2.035 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 9.668e-06/1.001e-05, allocations: 0 / 417.7 MB, free: 40.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3231/0.3231, allocations: 58.84 MB / 476.5 MB, free: 5.074 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1827/0.5059, allocations: 104.3 MB / 0.5673 GB, free: 10.71 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002764/0.5062, allocations: 79.45 kB / 0.5673 GB, free: 10.64 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.3029/0.8091, allocations: 70.88 MB / 0.6365 GB, free: 3.211 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001737/0.8093, allocations: 60 kB / 0.6366 GB, free: 3.152 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: 1219 * Number of variables: 1219 Notification: Performance of Generate backend data structure: time 0.1687/0.9781, allocations: 3.225 MB / 0.6398 GB, free: 164.6 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.761e-05/0.9781, allocations: 6.906 kB / 0.6398 GB, free: 164.6 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02891/1.007, allocations: 3.906 MB / 0.6436 GB, free: 164.3 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01522/1.022, allocations: 4.272 MB / 0.6477 GB, free: 164 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001229/1.023, allocations: 106.4 kB / 0.6478 GB, free: 164 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009286/1.023, allocations: 192.5 kB / 0.648 GB, free: 164 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01055/1.034, allocations: 4.811 MB / 0.6527 GB, free: 164 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01514/1.049, allocations: 7.723 MB / 0.6603 GB, free: 161.5 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000165/1.049, allocations: 58.12 kB / 0.6603 GB, free: 161.5 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006123/1.05, allocations: 27.53 kB / 0.6604 GB, free: 161.5 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001281/1.051, allocations: 0.8739 MB / 0.6612 GB, free: 161.5 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04626/1.098, allocations: 38.89 MB / 0.6992 GB, free: 133.8 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003766/1.101, allocations: 2.164 MB / 0.7013 GB, free: 132.5 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002115/1.104, allocations: 1.198 MB / 0.7025 GB, free: 132 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008655/1.112, allocations: 4.199 MB / 0.7066 GB, free: 129.5 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.367e-05/1.112, allocations: 46.28 kB / 0.7066 GB, free: 129.5 MB / 474.7 MB Notification: Performance of pre-optimization done (n=114): time 4.669e-06/1.112, allocations: 0 / 0.7066 GB, free: 129.5 MB / 474.7 MB Notification: Performance of matching and sorting (n=139): time 0.03692/1.149, allocations: 10.48 MB / 0.7168 GB, free: 124.8 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.951e-05/1.149, allocations: 193.9 kB / 0.717 GB, free: 124.6 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006133/1.156, allocations: 2.857 MB / 0.7198 GB, free: 123.5 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002927/1.156, allocations: 25.7 kB / 0.7198 GB, free: 123.5 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00157/1.157, allocations: 2.566 MB / 0.7224 GB, free: 121.4 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006727/1.158, allocations: 0.5469 MB / 0.7229 GB, free: 121 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000291/1.158, allocations: 0 / 0.7229 GB, free: 121 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003775/1.159, allocations: 0.5446 MB / 0.7234 GB, free: 120.6 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003761/1.163, allocations: 1.576 MB / 0.725 GB, free: 120 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004909/1.168, allocations: 5.136 MB / 0.73 GB, free: 113.3 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005539/1.173, allocations: 2.862 MB / 0.7328 GB, free: 110.9 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.014e-05/1.173, allocations: 44 kB / 0.7328 GB, free: 110.8 MB / 474.7 MB Notification: Performance of matching and sorting (n=727) (initialization): time 0.01341/1.187, allocations: 5.925 MB / 0.7386 GB, free: 105.6 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.085e-05/1.187, allocations: 4 kB / 0.7386 GB, free: 105.6 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000112/1.187, allocations: 128 kB / 0.7387 GB, free: 105.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009829/1.188, allocations: 348.4 kB / 0.7391 GB, free: 105.2 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007279/1.195, allocations: 1.289 MB / 0.7403 GB, free: 104.1 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003838/1.199, allocations: 2.596 MB / 0.7428 GB, free: 101.6 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004672/1.204, allocations: 163 kB / 0.743 GB, free: 101.4 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005636/1.204, allocations: 347.6 kB / 0.7433 GB, free: 101.1 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 584 * Number of states: 0 () * Number of discrete variables: 27 (BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],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 (692): * Single equations (assignments): 688 * 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.0007666/1.205, allocations: 344.9 kB / 0.7437 GB, free: 100.8 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000782/1.206, allocations: 284.2 kB / 0.7439 GB, free: 100.5 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0044/1.21, allocations: 1.671 MB / 0.7456 GB, free: 99.06 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.142e-05/1.21, allocations: 16 kB / 0.7456 GB, free: 99.05 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.197e-05/1.21, allocations: 4 kB / 0.7456 GB, free: 99.04 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.544e-05/1.21, allocations: 7.359 kB / 0.7456 GB, free: 99.04 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01154/1.222, allocations: 4.505 MB / 0.75 GB, free: 95.32 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.374e-05/1.222, allocations: 7.938 kB / 0.75 GB, free: 95.31 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002237/1.224, allocations: 200.3 kB / 0.7502 GB, free: 95.15 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008089/1.225, allocations: 165.9 kB / 0.7503 GB, free: 95.02 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001247/1.225, allocations: 11.7 kB / 0.7504 GB, free: 95.02 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003027/1.228, allocations: 2.022 MB / 0.7523 GB, free: 93.05 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.067e-06/1.228, allocations: 4 kB / 0.7523 GB, free: 93.04 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007066/1.235, allocations: 3.728 MB / 0.756 GB, free: 89.61 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001399/1.237, allocations: 0.491 MB / 0.7565 GB, free: 89.13 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005426/1.237, allocations: 4 kB / 0.7565 GB, free: 89.13 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001948/1.239, allocations: 39.12 kB / 0.7565 GB, free: 89.1 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002036/1.239, allocations: 61.81 kB / 0.7566 GB, free: 89.06 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001475/1.24, allocations: 39.94 kB / 0.7566 GB, free: 89.03 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.003808/1.243, allocations: 1.905 MB / 0.7585 GB, free: 87.37 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.005458/1.249, allocations: 0.6754 MB / 0.7591 GB, free: 86.7 MB / 474.7 MB 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 (110): * Single equations (assignments): 106 * 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.0004651/1.249, allocations: 144.7 kB / 0.7593 GB, free: 86.55 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.008105/1.258, allocations: 3.787 MB / 0.763 GB, free: 83.11 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.15e-06/1.258, allocations: 0 / 0.763 GB, free: 83.11 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002103/1.26, allocations: 1.034 MB / 0.764 GB, free: 82.15 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002238/1.262, allocations: 274.5 kB / 0.7642 GB, free: 81.91 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01591/1.278, allocations: 6.342 MB / 0.7704 GB, free: 76.22 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005755/1.284, allocations: 3.081 MB / 0.7734 GB, free: 73.61 MB / 474.7 MB Notification: Performance of SimCode: time 1.152e-06/1.284, allocations: 0 / 0.7734 GB, free: 73.61 MB / 474.7 MB Notification: Performance of Templates: time 0.09506/1.379, allocations: 59.32 MB / 0.8314 GB, free: 14.95 MB / 474.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches