Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_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_cpp_ModelicaTest.MultiBody.Sensors.Distance2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001494/0.001494, allocations: 178.4 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.039/2.039, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001111/0.001111, allocations: 89.69 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3104/0.3104, allocations: 43.49 MB / 353.6 MB, free: 2.277 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.507e-05/1.517e-05, allocations: 0 / 418.2 MB, free: 41.04 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.409/0.4091, allocations: 58.85 MB / 477.1 MB, free: 5.266 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1947/0.6038, allocations: 103.8 MB / 0.5673 GB, free: 11.45 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002921/0.6042, allocations: 75.25 kB / 0.5674 GB, free: 11.38 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.6785/1.283, allocations: 77.7 MB / 0.6432 GB, free: 108.2 MB / 475.1 MB Notification: Performance of FrontEnd: time 3.707e-06/1.283, allocations: 1.344 kB / 0.6432 GB, free: 108.2 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0002538/1.283, allocations: 65.78 kB / 0.6433 GB, free: 108.2 MB / 475.1 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.01583/1.299, allocations: 3.537 MB / 0.6468 GB, free: 106.9 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.759e-05/1.299, allocations: 13.12 kB / 0.6468 GB, free: 106.9 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03514/1.334, allocations: 4.326 MB / 0.651 GB, free: 106.6 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01788/1.352, allocations: 4.382 MB / 0.6553 GB, free: 106.1 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000274/1.352, allocations: 120.9 kB / 0.6554 GB, free: 106.1 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001897/1.354, allocations: 211.6 kB / 0.6556 GB, free: 106.1 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01382/1.368, allocations: 5.224 MB / 0.6607 GB, free: 106 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01936/1.388, allocations: 8.343 MB / 0.6688 GB, free: 103.4 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002332/1.388, allocations: 57.16 kB / 0.6689 GB, free: 103.4 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001085/1.389, allocations: 34.84 kB / 0.6689 GB, free: 103.4 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001679/1.391, allocations: 0.902 MB / 0.6698 GB, free: 103.4 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05118/1.442, allocations: 40.89 MB / 0.7097 GB, free: 72.96 MB / 475.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003793/1.446, allocations: 2.413 MB / 0.7121 GB, free: 71.42 MB / 475.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001828/1.447, allocations: 1.066 MB / 0.7131 GB, free: 70.96 MB / 475.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004452/1.448, allocations: 327.8 kB / 0.7135 GB, free: 70.66 MB / 475.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.117e-05/1.448, allocations: 50.25 kB / 0.7135 GB, free: 70.61 MB / 475.1 MB Notification: Performance of pre-optimization done (n=122): time 5.129e-06/1.448, allocations: 0 / 0.7135 GB, free: 70.61 MB / 475.1 MB Notification: Performance of matching and sorting (n=140): time 0.02764/1.476, allocations: 9.606 MB / 0.7229 GB, free: 66.09 MB / 475.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.733e-05/1.476, allocations: 207.2 kB / 0.7231 GB, free: 65.86 MB / 475.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005916/1.482, allocations: 3.021 MB / 0.726 GB, free: 64.67 MB / 475.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000282/1.482, allocations: 25.7 kB / 0.7261 GB, free: 64.64 MB / 475.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00238/1.484, allocations: 3.044 MB / 0.729 GB, free: 62.19 MB / 475.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007876/1.485, allocations: 0.55 MB / 0.7296 GB, free: 61.8 MB / 475.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005038/1.486, allocations: 0 / 0.7296 GB, free: 61.8 MB / 475.1 MB Notification: Performance of setup shared object (initialization): time 0.0003656/1.486, allocations: 0.5715 MB / 0.7301 GB, free: 61.38 MB / 475.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00358/1.49, allocations: 1.558 MB / 0.7316 GB, free: 60.84 MB / 475.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006059/1.496, allocations: 5.539 MB / 0.7371 GB, free: 54.7 MB / 475.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006209/1.502, allocations: 2.939 MB / 0.7399 GB, free: 53.58 MB / 475.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001368/1.502, allocations: 41.16 kB / 0.74 GB, free: 53.58 MB / 475.1 MB Notification: Performance of matching and sorting (n=793) (initialization): time 0.0165/1.519, allocations: 6.218 MB / 0.746 GB, free: 49.16 MB / 475.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001037/1.519, allocations: 64.97 kB / 0.7461 GB, free: 49.1 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001926/1.519, allocations: 144 kB / 0.7462 GB, free: 48.96 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001122/1.52, allocations: 374.3 kB / 0.7466 GB, free: 48.63 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008/1.528, allocations: 1.406 MB / 0.748 GB, free: 47.39 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00383/1.532, allocations: 2.643 MB / 0.7505 GB, free: 44.88 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005847/1.538, allocations: 192.3 kB / 0.7507 GB, free: 44.71 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001241/1.539, allocations: 385.3 kB / 0.7511 GB, free: 44.34 MB / 475.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 654 * 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 (758): * Single equations (assignments): 754 * 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.001156/1.541, allocations: 460.1 kB / 0.7515 GB, free: 43.88 MB / 475.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007214/1.541, allocations: 304.1 kB / 0.7518 GB, free: 43.58 MB / 475.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004035/1.545, allocations: 1.548 MB / 0.7533 GB, free: 42.29 MB / 475.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.691e-05/1.545, allocations: 20 kB / 0.7534 GB, free: 42.27 MB / 475.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.139e-05/1.545, allocations: 4 kB / 0.7534 GB, free: 42.26 MB / 475.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.223e-05/1.545, allocations: 3.703 kB / 0.7534 GB, free: 42.26 MB / 475.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01324/1.559, allocations: 4.72 MB / 0.758 GB, free: 38.36 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.644e-05/1.559, allocations: 4 kB / 0.758 GB, free: 38.36 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001871/1.561, allocations: 198.9 kB / 0.7582 GB, free: 38.2 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007485/1.561, allocations: 160.8 kB / 0.7583 GB, free: 38.07 MB / 475.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001497/1.562, allocations: 8 kB / 0.7583 GB, free: 38.07 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002866/1.565, allocations: 2.056 MB / 0.7603 GB, free: 36.07 MB / 475.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.893e-06/1.565, allocations: 3.938 kB / 0.7603 GB, free: 36.07 MB / 475.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006325/1.571, allocations: 3.504 MB / 0.7638 GB, free: 32.84 MB / 475.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001776/1.573, allocations: 0.4965 MB / 0.7642 GB, free: 32.36 MB / 475.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007669/1.574, allocations: 4 kB / 0.7643 GB, free: 32.36 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002034/1.576, allocations: 38.16 kB / 0.7643 GB, free: 32.33 MB / 475.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003255/1.576, allocations: 78.33 kB / 0.7644 GB, free: 32.28 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001284/1.576, allocations: 35.52 kB / 0.7644 GB, free: 32.25 MB / 475.1 MB Notification: Performance of sorting global known variables: time 0.004402/1.58, allocations: 2.01 MB / 0.7664 GB, free: 30.51 MB / 475.1 MB Notification: Performance of sort global known variables: time 6.71e-07/1.581, allocations: 4 kB / 0.7664 GB, free: 30.5 MB / 475.1 MB Notification: Performance of remove unused functions: time 0.006711/1.587, allocations: 0.7227 MB / 0.7671 GB, free: 29.78 MB / 475.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (109): * Single equations (assignments): 105 * 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.0005952/1.588, allocations: 144.3 kB / 0.7672 GB, free: 29.64 MB / 475.1 MB Notification: Performance of simCode: created initialization part: time 0.008062/1.596, allocations: 3.781 MB / 0.7709 GB, free: 26.21 MB / 475.1 MB Notification: Performance of simCode: created event and clocks part: time 8.115e-06/1.596, allocations: 0 / 0.7709 GB, free: 26.21 MB / 475.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001923/1.598, allocations: 0.9496 MB / 0.7718 GB, free: 25.33 MB / 475.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00243/1.6, allocations: 293.2 kB / 0.7721 GB, free: 25.07 MB / 475.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01703/1.617, allocations: 6.644 MB / 0.7786 GB, free: 19.14 MB / 475.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005715/1.623, allocations: 3.042 MB / 0.7816 GB, free: 16.8 MB / 475.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001227/1.625, allocations: 261.5 kB / 0.7818 GB, free: 16.56 MB / 475.1 MB Notification: Performance of SimCode: time 1.092e-06/1.625, allocations: 0 / 0.7818 GB, free: 16.56 MB / 475.1 MB Notification: Performance of Templates: time 0.4687/2.093, allocations: 62.89 MB / 0.8432 GB, free: 123.4 MB / 0.4952 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins1/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_cpp_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches