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.0009185/0.0009185, allocations: 179 kB / 18.09 MB, free: 3.754 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.491/1.491, allocations: 223.3 MB / 242.1 MB, free: 11.61 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009076/0.0009076, allocations: 101.2 kB / 293.3 MB, free: 10.76 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.373/0.373, allocations: 44.15 MB / 388.5 MB, free: 38.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003865/0.0003868, allocations: 12 kB / 461.1 MB, free: 1.32 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3794/0.3798, allocations: 61.87 MB / 0.5107 GB, free: 38.26 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1457/0.5256, allocations: 105.9 MB / 0.6141 GB, free: 5.152 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002935/0.526, allocations: 91.94 kB / 0.6142 GB, free: 5.066 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4555/0.9814, allocations: 74.79 MB / 0.6873 GB, free: 96.06 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.364e-06/0.9815, allocations: 3.281 kB / 0.6873 GB, free: 96.06 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001182/0.9816, allocations: 62.31 kB / 0.6873 GB, free: 96.06 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.008269/0.9899, allocations: 3.501 MB / 0.6907 GB, free: 94.54 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/0.9899, allocations: 8.938 kB / 0.6908 GB, free: 94.54 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01288/1.003, allocations: 3.449 MB / 0.6941 GB, free: 94.3 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006861/1.01, allocations: 3.065 MB / 0.6971 GB, free: 93.74 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002313/1.01, allocations: 264 kB / 0.6974 GB, free: 93.73 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001261/1.011, allocations: 345.9 kB / 0.6977 GB, free: 93.73 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01327/1.025, allocations: 8.559 MB / 0.7061 GB, free: 91.16 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001305/1.025, allocations: 50.09 kB / 0.7061 GB, free: 91.16 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004765/1.025, allocations: 179.7 kB / 0.7063 GB, free: 91.16 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009158/1.026, allocations: 0.8256 MB / 0.7071 GB, free: 91.15 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01275/1.039, allocations: 6.827 MB / 0.7137 GB, free: 91.01 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03752/1.076, allocations: 40.96 MB / 0.7537 GB, free: 58.47 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003992/1.08, allocations: 2.409 MB / 0.7561 GB, free: 57.27 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001006/1.082, allocations: 1.01 MB / 0.7571 GB, free: 56.84 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002527/1.082, allocations: 325.1 kB / 0.7574 GB, free: 56.55 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.927e-05/1.082, allocations: 46.28 kB / 0.7574 GB, free: 56.5 MB / 490.7 MB Notification: Performance of pre-optimization done (n=104): time 4.678e-06/1.082, allocations: 4 kB / 0.7574 GB, free: 56.5 MB / 490.7 MB Notification: Performance of matching and sorting (n=118): time 0.01627/1.098, allocations: 8.06 MB / 0.7653 GB, free: 52.78 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.638e-05/1.098, allocations: 193.2 kB / 0.7655 GB, free: 52.56 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004011/1.102, allocations: 3.783 MB / 0.7692 GB, free: 51.2 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000137/1.102, allocations: 44.39 kB / 0.7692 GB, free: 51.15 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001267/1.104, allocations: 2.826 MB / 0.772 GB, free: 48.96 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003128/1.104, allocations: 492 kB / 0.7725 GB, free: 48.62 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001558/1.104, allocations: 106.6 kB / 0.7726 GB, free: 48.54 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002079/1.104, allocations: 0.539 MB / 0.7731 GB, free: 48.13 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001766/1.106, allocations: 1.546 MB / 0.7746 GB, free: 47.65 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003415/1.11, allocations: 5.164 MB / 0.7796 GB, free: 42.12 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005766/1.115, allocations: 7.335 MB / 0.7868 GB, free: 35.39 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.201e-05/1.115, allocations: 36.28 kB / 0.7868 GB, free: 35.39 MB / 490.7 MB Notification: Performance of matching and sorting (n=709) (initialization): time 0.008979/1.124, allocations: 6.559 MB / 0.7932 GB, free: 32.84 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.156e-05/1.125, allocations: 61.25 kB / 0.7933 GB, free: 32.84 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001126/1.125, allocations: 130.2 kB / 0.7934 GB, free: 32.84 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005983/1.125, allocations: 345.8 kB / 0.7938 GB, free: 32.79 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003098/1.128, allocations: 1.242 MB / 0.795 GB, free: 32.63 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002521/1.131, allocations: 2.722 MB / 0.7976 GB, free: 30.73 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004444/1.135, allocations: 292.2 kB / 0.7979 GB, free: 30.62 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006833/1.136, allocations: 347.7 kB / 0.7982 GB, free: 30.58 MB / 490.7 MB 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 () * Number of clocked 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.002864/1.139, allocations: 1.839 MB / 0.8 GB, free: 29.67 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005458/1.139, allocations: 308 kB / 0.8003 GB, free: 29.37 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002019/1.141, allocations: 1.355 MB / 0.8017 GB, free: 28.23 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.887e-05/1.142, allocations: 19.94 kB / 0.8017 GB, free: 28.21 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.716e-06/1.142, allocations: 4 kB / 0.8017 GB, free: 28.21 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.046e-05/1.142, allocations: 3.797 kB / 0.8017 GB, free: 28.21 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006933/1.148, allocations: 4.811 MB / 0.8064 GB, free: 24.26 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.866e-06/1.149, allocations: 4 kB / 0.8064 GB, free: 24.26 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000722/1.149, allocations: 157.6 kB / 0.8065 GB, free: 24.13 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004121/1.15, allocations: 159.6 kB / 0.8067 GB, free: 24.01 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.255e-05/1.15, allocations: 22.84 kB / 0.8067 GB, free: 23.99 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001717/1.151, allocations: 2.16 MB / 0.8088 GB, free: 21.89 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/1.151, allocations: 0 / 0.8088 GB, free: 21.89 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0034/1.155, allocations: 3.114 MB / 0.8119 GB, free: 19.11 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008597/1.156, allocations: 370.7 kB / 0.8122 GB, free: 18.73 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002617/1.156, allocations: 23.67 kB / 0.8122 GB, free: 18.71 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008732/1.157, allocations: 49.83 kB / 0.8123 GB, free: 18.68 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001628/1.157, allocations: 63.38 kB / 0.8123 GB, free: 18.63 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.479e-05/1.157, allocations: 30.25 kB / 0.8124 GB, free: 18.61 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003159/1.16, allocations: 2.347 MB / 0.8147 GB, free: 16.69 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.41e-07/1.16, allocations: 0 / 0.8147 GB, free: 16.69 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.004353/1.165, allocations: 0.7968 MB / 0.8154 GB, free: 15.89 MB / 490.7 MB 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 () * Number of clocked 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.0003433/1.165, allocations: 154.4 kB / 0.8156 GB, free: 15.74 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.005331/1.17, allocations: 3.752 MB / 0.8193 GB, free: 12.43 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/1.17, allocations: 3.938 kB / 0.8193 GB, free: 12.43 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001015/1.171, allocations: 0.9086 MB / 0.8201 GB, free: 11.61 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002688/1.174, allocations: 370.2 kB / 0.8205 GB, free: 11.29 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01182/1.186, allocations: 8.516 MB / 0.8288 GB, free: 3.48 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002904/1.189, allocations: 2.805 MB / 0.8316 GB, free: 1.273 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.004224/1.193, allocations: 1.722 MB / 0.8332 GB, free: 208 kB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005583/1.194, allocations: 213.9 kB / 0.8334 GB, free: 0 / 490.7 MB Notification: Performance of SimCode: time 1.092e-06/1.194, allocations: 96 / 0.8334 GB, free: 0 / 490.7 MB Notification: Performance of Templates: time 0.05588/1.25, allocations: 26.13 MB / 0.859 GB, free: 8.309 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/jenkins1/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