Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001001/0.001001, allocations: 180.7 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.218/1.218, allocations: 221.3 MB / 236 MB, free: 2.953 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008838/0.0008836, allocations: 95.66 kB / 287 MB, free: 248 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1702/0.1702, allocations: 44.17 MB / 382.1 MB, free: 14.66 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.498e-05/2.501e-05, allocations: 4.219 kB / 451.8 MB, free: 9.438 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1103, allocations: 61.92 MB / 0.5017 GB, free: 11.46 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4305/0.5409, allocations: 105.7 MB / 0.605 GB, free: 15.56 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003235/0.5413, allocations: 71.97 kB / 0.605 GB, free: 15.49 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1913/0.7326, allocations: 75.85 MB / 0.6791 GB, free: 3.156 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.784e-06/0.7327, allocations: 0 / 0.6791 GB, free: 3.156 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001968/0.7329, allocations: 60 kB / 0.6792 GB, free: 3.098 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1269 * Number of variables: 1269 Notification: Performance of Generate backend data structure: time 0.01/0.7429, allocations: 3.357 MB / 0.6824 GB, free: 15.68 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.804e-05/0.743, allocations: 11.97 kB / 0.6824 GB, free: 15.67 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01658/0.7596, allocations: 4.281 MB / 0.6866 GB, free: 11.38 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01045/0.77, allocations: 4.111 MB / 0.6906 GB, free: 7.199 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002621/0.7703, allocations: 262.8 kB / 0.6909 GB, free: 6.941 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001455/0.7718, allocations: 351.8 kB / 0.6912 GB, free: 6.598 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01278/0.7846, allocations: 8.494 MB / 0.6995 GB, free: 13.13 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000102/0.7847, allocations: 55.47 kB / 0.6996 GB, free: 13.07 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004122/0.7852, allocations: 175.9 kB / 0.6997 GB, free: 12.9 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009297/0.7861, allocations: 0.8254 MB / 0.7005 GB, free: 12.07 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01056/0.7967, allocations: 6.74 MB / 0.7071 GB, free: 5.324 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2805/1.077, allocations: 40.94 MB / 0.7471 GB, free: 99.32 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004603/1.082, allocations: 2.391 MB / 0.7494 GB, free: 98.66 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001256/1.083, allocations: 1.004 MB / 0.7504 GB, free: 98.63 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003378/1.083, allocations: 331.6 kB / 0.7507 GB, free: 98.34 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.931e-05/1.084, allocations: 43.73 kB / 0.7508 GB, free: 98.3 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=104): time 3.667e-06/1.084, allocations: 0 / 0.7508 GB, free: 98.3 MB / 0.5105 GB Notification: Performance of matching and sorting (n=118): time 0.01795/1.101, allocations: 6.975 MB / 0.7576 GB, free: 96.04 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.547e-05/1.102, allocations: 194.4 kB / 0.7578 GB, free: 95.82 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005116/1.107, allocations: 3.347 MB / 0.761 GB, free: 95.5 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0002656/1.107, allocations: 42.39 kB / 0.7611 GB, free: 95.46 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001624/1.109, allocations: 2.831 MB / 0.7639 GB, free: 94.12 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004513/1.109, allocations: 493.8 kB / 0.7643 GB, free: 93.86 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001659/1.109, allocations: 108.7 kB / 0.7644 GB, free: 93.86 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002146/1.11, allocations: 0.5339 MB / 0.7649 GB, free: 93.55 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001737/1.111, allocations: 1.501 MB / 0.7664 GB, free: 93.54 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00284/1.114, allocations: 5.114 MB / 0.7714 GB, free: 88.82 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003145/1.117, allocations: 2.785 MB / 0.7741 GB, free: 88.69 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.317e-05/1.117, allocations: 45.91 kB / 0.7742 GB, free: 88.68 MB / 0.5105 GB Notification: Performance of matching and sorting (n=709) (initialization): time 0.008195/1.126, allocations: 6.482 MB / 0.7805 GB, free: 86.66 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 6.489e-05/1.126, allocations: 60.59 kB / 0.7806 GB, free: 86.66 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.765e-05/1.126, allocations: 126 kB / 0.7807 GB, free: 86.66 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006367/1.126, allocations: 358.8 kB / 0.781 GB, free: 86.61 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003013/1.129, allocations: 1.244 MB / 0.7822 GB, free: 86.46 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002401/1.132, allocations: 2.726 MB / 0.7849 GB, free: 84.58 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003416/1.135, allocations: 283.8 kB / 0.7852 GB, free: 84.47 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003445/1.136, allocations: 350.1 kB / 0.7855 GB, free: 84.43 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 588 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.arrowLine.twoHeadedArrow,distance2.arrow.headAtOrigin,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[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],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 (674): * Single equations (assignments): 670 * 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.0005481/1.136, allocations: 0.5328 MB / 0.786 GB, free: 83.98 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000419/1.137, allocations: 306.6 kB / 0.7863 GB, free: 83.81 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002058/1.139, allocations: 1.344 MB / 0.7876 GB, free: 83.28 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.936e-05/1.139, allocations: 11.56 kB / 0.7876 GB, free: 83.28 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.658e-06/1.139, allocations: 3.969 kB / 0.7876 GB, free: 83.28 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.869e-06/1.139, allocations: 7.047 kB / 0.7877 GB, free: 83.28 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007472/1.146, allocations: 4.778 MB / 0.7923 GB, free: 81.46 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.221e-05/1.146, allocations: 3.969 kB / 0.7923 GB, free: 81.46 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007934/1.147, allocations: 160.4 kB / 0.7925 GB, free: 81.45 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004299/1.147, allocations: 165 kB / 0.7926 GB, free: 81.4 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.567e-05/1.148, allocations: 15.56 kB / 0.7926 GB, free: 81.39 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001784/1.149, allocations: 2.15 MB / 0.7947 GB, free: 79.75 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/1.149, allocations: 7.219 kB / 0.7948 GB, free: 79.75 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003516/1.153, allocations: 3.17 MB / 0.7978 GB, free: 78.24 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009139/1.154, allocations: 368.7 kB / 0.7982 GB, free: 77.96 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002739/1.154, allocations: 20.38 kB / 0.7982 GB, free: 77.95 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000923/1.155, allocations: 50.59 kB / 0.7983 GB, free: 77.93 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001556/1.155, allocations: 70.09 kB / 0.7983 GB, free: 77.91 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.672e-05/1.155, allocations: 31.48 kB / 0.7984 GB, free: 77.91 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.003028/1.158, allocations: 2.306 MB / 0.8006 GB, free: 77.11 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3.9e-07/1.158, allocations: 3.469 kB / 0.8006 GB, free: 77.11 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.004051/1.162, allocations: 0.8005 MB / 0.8014 GB, free: 77 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (88): * Single equations (assignments): 84 * 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.0003307/1.163, allocations: 150.6 kB / 0.8015 GB, free: 76.89 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.004671/1.167, allocations: 3.703 MB / 0.8052 GB, free: 75.55 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/1.167, allocations: 0 / 0.8052 GB, free: 75.55 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0009002/1.168, allocations: 0.8947 MB / 0.806 GB, free: 75.17 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001595/1.17, allocations: 353.9 kB / 0.8064 GB, free: 75.01 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008624/1.179, allocations: 5.805 MB / 0.812 GB, free: 72.86 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002226/1.181, allocations: 2.874 MB / 0.8148 GB, free: 71.69 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.003769/1.185, allocations: 1.726 MB / 0.8165 GB, free: 71.55 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004855/1.185, allocations: 214.5 kB / 0.8167 GB, free: 71.54 MB / 0.5105 GB Notification: Performance of SimCode: time 9.32e-07/1.185, allocations: 0 / 0.8167 GB, free: 71.54 MB / 0.5105 GB Notification: Performance of Templates: time 0.04439/1.23, allocations: 26.07 MB / 0.8422 GB, free: 54.77 MB / 0.5105 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches