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.001484/0.001484, allocations: 202 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.254/1.254, allocations: 227.2 MB / 245 MB, free: 7.598 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008437/0.0008437, allocations: 97.22 kB / 297.3 MB, free: 6.184 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2834/0.2834, allocations: 45.22 MB / 394.7 MB, free: 31.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002623/0.0002623, allocations: 11.98 kB / 468.4 MB, free: 7.746 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3228/0.3231, allocations: 63.24 MB / 0.5192 GB, free: 43.71 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1261/0.4492, allocations: 107.2 MB / 0.6239 GB, free: 14.35 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002385/0.4495, allocations: 75.97 kB / 0.624 GB, free: 14.27 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1811/0.6306, allocations: 72.83 MB / 0.6951 GB, free: 5.027 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.244e-06/0.6307, allocations: 0 / 0.6951 GB, free: 5.027 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001604/0.6309, allocations: 59.98 kB / 0.6952 GB, free: 4.969 MB / 0.4948 GB 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.009098/0.64, allocations: 3.421 MB / 0.6985 GB, free: 1.48 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.64, allocations: 8.031 kB / 0.6985 GB, free: 1.473 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2833/0.9233, allocations: 4.224 MB / 0.7026 GB, free: 100.5 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01011/0.9335, allocations: 3.524 MB / 0.7061 GB, free: 100.3 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002553/0.9338, allocations: 239.7 kB / 0.7063 GB, free: 100.3 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001144/0.9349, allocations: 318.5 kB / 0.7066 GB, free: 100.3 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01015/0.9451, allocations: 8.017 MB / 0.7144 GB, free: 97.76 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000116/0.9452, allocations: 56.22 kB / 0.7145 GB, free: 97.76 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003677/0.9456, allocations: 155.3 kB / 0.7146 GB, free: 97.76 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000832/0.9465, allocations: 0.7846 MB / 0.7154 GB, free: 97.75 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00905/0.9555, allocations: 6.442 MB / 0.7217 GB, free: 97.7 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03619/0.9917, allocations: 38.97 MB / 0.7598 GB, free: 69.15 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004653/0.9964, allocations: 2.172 MB / 0.7619 GB, free: 68.04 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003351/0.9968, allocations: 313 kB / 0.7622 GB, free: 67.75 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.387e-05/0.9969, allocations: 48.44 kB / 0.7622 GB, free: 67.7 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=108): time 4.208e-06/0.9969, allocations: 2.75 kB / 0.7622 GB, free: 67.7 MB / 0.4948 GB Notification: Performance of matching and sorting (n=132): time 0.03086/1.028, allocations: 10.93 MB / 0.7729 GB, free: 63.29 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.736e-05/1.028, allocations: 196.3 kB / 0.7731 GB, free: 63.07 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004533/1.032, allocations: 3.238 MB / 0.7763 GB, free: 61.89 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002512/1.033, allocations: 44.67 kB / 0.7763 GB, free: 61.85 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001445/1.034, allocations: 2.619 MB / 0.7789 GB, free: 59.82 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005248/1.035, allocations: 0.5243 MB / 0.7794 GB, free: 59.45 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001726/1.035, allocations: 108.7 kB / 0.7795 GB, free: 59.37 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002459/1.035, allocations: 0.5205 MB / 0.78 GB, free: 58.97 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001986/1.037, allocations: 1.578 MB / 0.7815 GB, free: 58.47 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003406/1.04, allocations: 4.93 MB / 0.7863 GB, free: 53.28 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002981/1.043, allocations: 2.75 MB / 0.789 GB, free: 52.15 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.134e-05/1.044, allocations: 35.56 kB / 0.7891 GB, free: 52.15 MB / 0.4948 GB Notification: Performance of matching and sorting (n=680) (initialization): time 0.00869/1.052, allocations: 6.453 MB / 0.7954 GB, free: 49.64 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 6.238e-05/1.052, allocations: 54.84 kB / 0.7954 GB, free: 49.64 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001014/1.052, allocations: 122 kB / 0.7955 GB, free: 49.64 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006616/1.053, allocations: 356.4 kB / 0.7959 GB, free: 49.59 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003061/1.056, allocations: 1.199 MB / 0.797 GB, free: 49.44 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002434/1.059, allocations: 2.737 MB / 0.7997 GB, free: 47.54 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003473/1.062, allocations: 279.6 kB / 0.8 GB, free: 47.44 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004034/1.063, allocations: 331.2 kB / 0.8003 GB, free: 47.39 MB / 0.4948 GB 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.002355/1.065, allocations: 1.731 MB / 0.802 GB, free: 46.55 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004984/1.065, allocations: 304.5 kB / 0.8023 GB, free: 46.39 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002395/1.068, allocations: 1.598 MB / 0.8038 GB, free: 45.73 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.155e-05/1.068, allocations: 15.91 kB / 0.8038 GB, free: 45.73 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.248e-06/1.068, allocations: 3.875 kB / 0.8039 GB, free: 45.73 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.15e-05/1.068, allocations: 7.125 kB / 0.8039 GB, free: 45.73 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007619/1.075, allocations: 5.159 MB / 0.8089 GB, free: 43.66 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.855e-06/1.076, allocations: 3.469 kB / 0.8089 GB, free: 43.66 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009207/1.076, allocations: 200.7 kB / 0.8091 GB, free: 43.64 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004383/1.077, allocations: 161 kB / 0.8092 GB, free: 43.6 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.78e-05/1.077, allocations: 26.58 kB / 0.8093 GB, free: 43.58 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001788/1.079, allocations: 2.187 MB / 0.8114 GB, free: 41.93 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/1.079, allocations: 3.891 kB / 0.8114 GB, free: 41.93 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004101/1.083, allocations: 3.651 MB / 0.815 GB, free: 40.16 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000957/1.084, allocations: 366.6 kB / 0.8153 GB, free: 39.88 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002832/1.084, allocations: 20.84 kB / 0.8153 GB, free: 39.87 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009933/1.085, allocations: 64.61 kB / 0.8154 GB, free: 39.85 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001415/1.085, allocations: 71.62 kB / 0.8155 GB, free: 39.84 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.825e-05/1.085, allocations: 34.86 kB / 0.8155 GB, free: 39.83 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003254/1.089, allocations: 2.267 MB / 0.8177 GB, free: 39.07 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.11e-07/1.089, allocations: 0 / 0.8177 GB, free: 39.07 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004815/1.094, allocations: 0.7869 MB / 0.8185 GB, free: 38.96 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 (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.0005095/1.094, allocations: 157.7 kB / 0.8186 GB, free: 38.85 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.005804/1.1, allocations: 3.834 MB / 0.8224 GB, free: 35.88 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 6.542e-06/1.1, allocations: 4 kB / 0.8224 GB, free: 35.87 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001136/1.101, allocations: 1.037 MB / 0.8234 GB, free: 34.95 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002014/1.103, allocations: 339.4 kB / 0.8237 GB, free: 34.65 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01107/1.114, allocations: 8.249 MB / 0.8318 GB, free: 27.11 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002234/1.116, allocations: 2.75 MB / 0.8345 GB, free: 24.98 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.003609/1.12, allocations: 1.693 MB / 0.8361 GB, free: 23.92 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000484/1.121, allocations: 206.3 kB / 0.8363 GB, free: 23.72 MB / 0.4948 GB Notification: Performance of SimCode: time 9.62e-07/1.121, allocations: 0 / 0.8363 GB, free: 23.72 MB / 0.4948 GB Notification: Performance of Templates: time 0.04013/1.161, allocations: 26.21 MB / 0.8619 GB, free: 2.34 MB / 0.4948 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/jenkins/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