Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009573/0.0009581, allocations: 197.2 kB / 18.1 MB, free: 3.594 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.426/1.426, allocations: 226.5 MB / 245.4 MB, free: 6.477 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008154/0.0008154, allocations: 102.8 kB / 297.5 MB, free: 6.656 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3703/0.3703, allocations: 44.81 MB / 394.3 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003404/0.0003407, allocations: 8 kB / 467.9 MB, free: 12.04 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3806/0.381, allocations: 62.95 MB / 0.5184 GB, free: 37.71 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1432/0.5243, allocations: 107.2 MB / 0.6231 GB, free: 14.05 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002875/0.5246, allocations: 83.95 kB / 0.6232 GB, free: 13.98 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4902/1.015, allocations: 71.3 MB / 0.6928 GB, free: 100.9 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.345e-06/1.015, allocations: 3.156 kB / 0.6928 GB, free: 100.9 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001426/1.015, allocations: 59.91 kB / 0.6929 GB, free: 100.9 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: 1170 * Number of variables: 1170 Notification: Performance of Generate backend data structure: time 0.008932/1.024, allocations: 3.338 MB / 0.6961 GB, free: 99.43 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/1.024, allocations: 9.203 kB / 0.6962 GB, free: 99.43 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01456/1.039, allocations: 3.399 MB / 0.6995 GB, free: 99.2 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009601/1.048, allocations: 2.865 MB / 0.7023 GB, free: 98.66 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002659/1.049, allocations: 242.2 kB / 0.7025 GB, free: 98.65 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001458/1.05, allocations: 317.2 kB / 0.7028 GB, free: 98.65 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01762/1.068, allocations: 8.002 MB / 0.7106 GB, free: 96.15 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003913/1.068, allocations: 55.91 kB / 0.7107 GB, free: 96.15 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001639/1.07, allocations: 162.4 kB / 0.7108 GB, free: 96.14 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001307/1.071, allocations: 0.786 MB / 0.7116 GB, free: 96.14 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01354/1.085, allocations: 6.394 MB / 0.7178 GB, free: 95.41 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03469/1.119, allocations: 38.98 MB / 0.7559 GB, free: 64.24 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003789/1.123, allocations: 2.158 MB / 0.758 GB, free: 63.12 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001056/1.124, allocations: 1.033 MB / 0.759 GB, free: 62.68 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003023/1.125, allocations: 318 kB / 0.7593 GB, free: 62.38 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.237e-05/1.125, allocations: 50.55 kB / 0.7594 GB, free: 62.33 MB / 490.7 MB Notification: Performance of pre-optimization done (n=108): time 3.547e-06/1.125, allocations: 3.812 kB / 0.7594 GB, free: 62.33 MB / 490.7 MB Notification: Performance of matching and sorting (n=132): time 0.0268/1.152, allocations: 10.66 MB / 0.7698 GB, free: 58.02 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.217e-05/1.152, allocations: 194.6 kB / 0.77 GB, free: 57.8 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004153/1.156, allocations: 3.63 MB / 0.7735 GB, free: 56.48 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000145/1.156, allocations: 41.45 kB / 0.7736 GB, free: 56.44 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001202/1.157, allocations: 2.62 MB / 0.7761 GB, free: 54.41 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003889/1.158, allocations: 0.5226 MB / 0.7766 GB, free: 54.03 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001666/1.158, allocations: 107.8 kB / 0.7767 GB, free: 53.95 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000232/1.158, allocations: 0.5278 MB / 0.7772 GB, free: 53.55 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001907/1.16, allocations: 1.58 MB / 0.7788 GB, free: 53.05 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003104/1.163, allocations: 4.947 MB / 0.7836 GB, free: 47.86 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006379/1.169, allocations: 7.11 MB / 0.7906 GB, free: 41.5 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001085/1.17, allocations: 38.66 kB / 0.7906 GB, free: 41.49 MB / 490.7 MB Notification: Performance of matching and sorting (n=680) (initialization): time 0.01717/1.187, allocations: 6.458 MB / 0.7969 GB, free: 36 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.84e-05/1.187, allocations: 63.97 kB / 0.797 GB, free: 35.94 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001634/1.187, allocations: 120 kB / 0.7971 GB, free: 35.82 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008742/1.188, allocations: 324.5 kB / 0.7974 GB, free: 35.54 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005457/1.193, allocations: 1.202 MB / 0.7986 GB, free: 34.49 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003549/1.197, allocations: 2.692 MB / 0.8012 GB, free: 31.91 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006479/1.203, allocations: 292.2 kB / 0.8015 GB, free: 31.65 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001156/1.205, allocations: 330.7 kB / 0.8018 GB, free: 31.33 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 544 * Number of states: 0 () * Number of discrete variables: 29 (BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[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],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 (645): * Single equations (assignments): 641 * 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.004866/1.21, allocations: 1.725 MB / 0.8035 GB, free: 29.8 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001042/1.211, allocations: 308 kB / 0.8038 GB, free: 29.5 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004477/1.215, allocations: 1.603 MB / 0.8053 GB, free: 28.15 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.736e-05/1.215, allocations: 12 kB / 0.8053 GB, free: 28.14 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.38e-05/1.215, allocations: 7.422 kB / 0.8053 GB, free: 28.13 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.301e-05/1.215, allocations: 7.422 kB / 0.8054 GB, free: 28.13 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01484/1.23, allocations: 5.164 MB / 0.8104 GB, free: 23.85 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.748e-05/1.23, allocations: 3.562 kB / 0.8104 GB, free: 23.85 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00138/1.232, allocations: 194.9 kB / 0.8106 GB, free: 23.7 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006278/1.232, allocations: 159.1 kB / 0.8107 GB, free: 23.58 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001564/1.232, allocations: 23.97 kB / 0.8108 GB, free: 23.55 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00261/1.235, allocations: 2.153 MB / 0.8129 GB, free: 21.46 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/1.235, allocations: 7.969 kB / 0.8129 GB, free: 21.45 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005782/1.241, allocations: 3.527 MB / 0.8163 GB, free: 18.15 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001344/1.242, allocations: 376.8 kB / 0.8167 GB, free: 17.76 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008766/1.243, allocations: 16 kB / 0.8167 GB, free: 17.74 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00224/1.245, allocations: 59.92 kB / 0.8167 GB, free: 17.68 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002425/1.246, allocations: 68.39 kB / 0.8168 GB, free: 17.62 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001392/1.246, allocations: 36 kB / 0.8168 GB, free: 17.58 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.006208/1.252, allocations: 2.266 MB / 0.8191 GB, free: 15.33 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.31e-07/1.252, allocations: 4.062 kB / 0.8191 GB, free: 15.32 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.007294/1.259, allocations: 0.7812 MB / 0.8198 GB, free: 14.54 MB / 490.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 98 * 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.0006669/1.26, allocations: 166.7 kB / 0.82 GB, free: 14.38 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.008387/1.269, allocations: 3.831 MB / 0.8237 GB, free: 10.56 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.085e-06/1.269, allocations: 0 / 0.8237 GB, free: 10.56 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001949/1.271, allocations: 1.035 MB / 0.8247 GB, free: 9.512 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004633/1.275, allocations: 356.6 kB / 0.8251 GB, free: 9.168 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01961/1.295, allocations: 8.283 MB / 0.8332 GB, free: 0.8633 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006331/1.301, allocations: 2.681 MB / 0.8358 GB, free: 14.17 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.008007/1.309, allocations: 1.689 MB / 0.8374 GB, free: 12.49 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001259/1.311, allocations: 203.4 kB / 0.8376 GB, free: 12.29 MB / 0.4948 GB Notification: Performance of SimCode: time 1.052e-06/1.311, allocations: 3.938 kB / 0.8376 GB, free: 12.29 MB / 0.4948 GB Notification: Performance of Templates: time 0.08688/1.397, allocations: 26.29 MB / 0.8633 GB, free: 2.453 MB / 0.5105 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches