Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.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.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_3.2.3_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_ModelicaTest.MultiBody.Sensors.Distance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002126/0.002126, allocations: 183.7 kB / 15.76 MB, free: 6.367 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.819/1.819, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.0008848/0.0008848, allocations: 90.86 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2281/0.2281, allocations: 43.56 MB / 362.1 MB, free: 11.31 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003434/0.0003435, allocations: 12 kB / 431.4 MB, free: 19.62 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1388/0.1391, allocations: 58.86 MB / 490.2 MB, free: 8.688 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4327/0.5718, allocations: 105.2 MB / 0.5814 GB, free: 10.89 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002612/0.5722, allocations: 83.91 kB / 0.5815 GB, free: 10.84 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1854/0.7576, allocations: 73.22 MB / 0.653 GB, free: 9.574 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.445e-06/0.7577, allocations: 0 / 0.653 GB, free: 9.574 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001415/0.7578, allocations: 63.98 kB / 0.6531 GB, free: 9.512 MB / 458.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.0103/0.7681, allocations: 3.511 MB / 0.6565 GB, free: 5.934 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.846e-05/0.7682, allocations: 8.031 kB / 0.6565 GB, free: 5.926 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01624/0.7844, allocations: 4.25 MB / 0.6607 GB, free: 1.664 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0124/0.7969, allocations: 4.247 MB / 0.6648 GB, free: 13.35 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00025/0.7972, allocations: 250.5 kB / 0.6651 GB, free: 13.11 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001369/0.7986, allocations: 331.8 kB / 0.6654 GB, free: 12.78 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01373/0.8123, allocations: 8.29 MB / 0.6735 GB, free: 3.527 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001288/0.8125, allocations: 51.55 kB / 0.6735 GB, free: 3.477 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004683/0.813, allocations: 167.9 kB / 0.6737 GB, free: 3.312 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001086/0.8141, allocations: 0.8211 MB / 0.6745 GB, free: 2.488 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01322/0.8273, allocations: 6.706 MB / 0.681 GB, free: 11.77 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3488/1.176, allocations: 39.86 MB / 0.72 GB, free: 100.8 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005375/1.182, allocations: 2.28 MB / 0.7222 GB, free: 100.2 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000477/1.182, allocations: 327 kB / 0.7225 GB, free: 99.89 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.878e-05/1.182, allocations: 46.39 kB / 0.7225 GB, free: 99.85 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=117): time 4.188e-06/1.182, allocations: 0 / 0.7225 GB, free: 99.85 MB / 0.4948 GB Notification: Performance of matching and sorting (n=141): time 0.03779/1.22, allocations: 11.4 MB / 0.7337 GB, free: 97.09 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001123/1.22, allocations: 192.9 kB / 0.7339 GB, free: 96.88 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006069/1.226, allocations: 3.316 MB / 0.7371 GB, free: 96.57 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0003148/1.227, allocations: 43.98 kB / 0.7371 GB, free: 96.54 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001982/1.229, allocations: 2.7 MB / 0.7398 GB, free: 95.29 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006151/1.229, allocations: 0.5571 MB / 0.7403 GB, free: 94.98 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002047/1.229, allocations: 109.5 kB / 0.7404 GB, free: 94.98 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000299/1.23, allocations: 0.5324 MB / 0.741 GB, free: 94.67 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002231/1.232, allocations: 1.644 MB / 0.7426 GB, free: 94.66 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004136/1.236, allocations: 5.072 MB / 0.7475 GB, free: 90.19 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003754/1.24, allocations: 2.848 MB / 0.7503 GB, free: 90.16 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.708e-05/1.24, allocations: 37.88 kB / 0.7503 GB, free: 90.16 MB / 0.4948 GB Notification: Performance of matching and sorting (n=702) (initialization): time 0.01018/1.25, allocations: 6.659 MB / 0.7568 GB, free: 89.7 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 7.078e-05/1.25, allocations: 56.34 kB / 0.7569 GB, free: 89.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001176/1.25, allocations: 124.6 kB / 0.757 GB, free: 89.7 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006641/1.251, allocations: 356.9 kB / 0.7573 GB, free: 89.69 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003518/1.255, allocations: 1.247 MB / 0.7586 GB, free: 89.58 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002729/1.257, allocations: 2.755 MB / 0.7613 GB, free: 88.17 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004029/1.261, allocations: 292.4 kB / 0.7615 GB, free: 88.14 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005108/1.262, allocations: 339.6 kB / 0.7619 GB, free: 88.14 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 557 * 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 () * Number of clocked 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.003013/1.265, allocations: 1.778 MB / 0.7636 GB, free: 87.55 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006657/1.266, allocations: 315.8 kB / 0.7639 GB, free: 87.38 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002815/1.268, allocations: 1.737 MB / 0.7656 GB, free: 86.68 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.299e-05/1.268, allocations: 18.64 kB / 0.7656 GB, free: 86.68 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.056e-05/1.268, allocations: 3.531 kB / 0.7656 GB, free: 86.68 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.227e-05/1.268, allocations: 7.031 kB / 0.7656 GB, free: 86.68 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009113/1.278, allocations: 5.401 MB / 0.7709 GB, free: 84.53 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-05/1.278, allocations: 4.562 kB / 0.7709 GB, free: 84.53 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001032/1.279, allocations: 219 kB / 0.7711 GB, free: 84.51 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004279/1.279, allocations: 156.9 kB / 0.7713 GB, free: 84.47 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.265e-05/1.279, allocations: 26.75 kB / 0.7713 GB, free: 84.46 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001819/1.281, allocations: 2.2 MB / 0.7734 GB, free: 82.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/1.281, allocations: 3.938 kB / 0.7734 GB, free: 82.8 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00445/1.286, allocations: 3.838 MB / 0.7772 GB, free: 80.98 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001655/1.287, allocations: 0.5357 MB / 0.7777 GB, free: 80.63 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004851/1.288, allocations: 23.69 kB / 0.7777 GB, free: 80.61 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001125/1.289, allocations: 63.62 kB / 0.7778 GB, free: 80.6 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001868/1.289, allocations: 76.45 kB / 0.7779 GB, free: 80.59 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.81e-05/1.289, allocations: 47.06 kB / 0.7779 GB, free: 80.58 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003929/1.293, allocations: 2.313 MB / 0.7802 GB, free: 79.8 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.913e-06/1.293, allocations: 0 / 0.7802 GB, free: 79.8 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.008495/1.302, allocations: 0.808 MB / 0.781 GB, free: 79.7 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 108 * 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.0009052/1.303, allocations: 155.9 kB / 0.7811 GB, free: 79.59 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.00815/1.311, allocations: 3.995 MB / 0.785 GB, free: 78.19 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.083e-06/1.311, allocations: 0 / 0.785 GB, free: 78.19 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.00156/1.312, allocations: 1.091 MB / 0.7861 GB, free: 77.73 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003103/1.315, allocations: 345.5 kB / 0.7864 GB, free: 77.56 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01436/1.33, allocations: 8.556 MB / 0.7948 GB, free: 73.16 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002474/1.332, allocations: 2.832 MB / 0.7975 GB, free: 71.46 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.004126/1.337, allocations: 1.732 MB / 0.7992 GB, free: 70.37 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005799/1.337, allocations: 217.9 kB / 0.7994 GB, free: 70.16 MB / 0.4948 GB Notification: Performance of SimCode: time 8.02e-07/1.337, allocations: 0 / 0.7994 GB, free: 70.16 MB / 0.4948 GB Notification: Performance of Templates: time 0.05214/1.389, allocations: 26.98 MB / 0.8258 GB, free: 50.5 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_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_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches