Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_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_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.001194/0.001194, allocations: 181.1 kB / 8.008 MB, free: 1.066 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.707/1.707, allocations: 205.3 MB / 213.7 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008292/0.0008293, allocations: 90.61 kB / 261.8 MB, free: 1.68 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.208/0.208, allocations: 43.5 MB / 353.2 MB, free: 276 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.274e-05/1.278e-05, allocations: 0 / 418.3 MB, free: 28.55 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1339/0.134, allocations: 58.86 MB / 477.1 MB, free: 1.648 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4218/0.5559, allocations: 103.8 MB / 0.5673 GB, free: 7.922 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002381/0.5561, allocations: 77.97 kB / 0.5674 GB, free: 7.887 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1968/0.7529, allocations: 77.71 MB / 0.6433 GB, free: 2.25 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.753, allocations: 4 kB / 0.6433 GB, free: 2.246 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001459/0.7532, allocations: 68 kB / 0.6433 GB, free: 2.18 MB / 442.7 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.01028/0.7634, allocations: 3.535 MB / 0.6468 GB, free: 14.59 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.43e-05/0.7635, allocations: 8.031 kB / 0.6468 GB, free: 14.58 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01821/0.7817, allocations: 4.331 MB / 0.651 GB, free: 10.24 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01214/0.7939, allocations: 4.373 MB / 0.6553 GB, free: 5.801 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001888/0.7942, allocations: 120 kB / 0.6554 GB, free: 5.684 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001415/0.7956, allocations: 215.9 kB / 0.6556 GB, free: 5.473 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009389/0.805, allocations: 5.223 MB / 0.6607 GB, free: 252 kB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01377/0.8188, allocations: 8.351 MB / 0.6689 GB, free: 6.914 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001573/0.819, allocations: 55.47 kB / 0.6689 GB, free: 6.859 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004386/0.8194, allocations: 35.94 kB / 0.669 GB, free: 6.824 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001225/0.8207, allocations: 0.8923 MB / 0.6698 GB, free: 5.934 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3555/1.176, allocations: 40.89 MB / 0.7098 GB, free: 104.8 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002874/1.179, allocations: 2.42 MB / 0.7121 GB, free: 103.8 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001451/1.181, allocations: 1.057 MB / 0.7132 GB, free: 103.8 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004039/1.181, allocations: 325.8 kB / 0.7135 GB, free: 103.5 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.472e-05/1.181, allocations: 47.02 kB / 0.7135 GB, free: 103.5 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=122): time 4.648e-06/1.181, allocations: 1.062 kB / 0.7135 GB, free: 103.5 MB / 0.4948 GB Notification: Performance of matching and sorting (n=140): time 0.02153/1.203, allocations: 9.614 MB / 0.7229 GB, free: 101.3 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.165e-05/1.203, allocations: 194.5 kB / 0.7231 GB, free: 101.1 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008137/1.211, allocations: 3.03 MB / 0.7261 GB, free: 100.8 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0003361/1.211, allocations: 25.7 kB / 0.7261 GB, free: 100.7 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002853/1.214, allocations: 3.054 MB / 0.7291 GB, free: 99.19 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009544/1.215, allocations: 0.5611 MB / 0.7296 GB, free: 98.89 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002855/1.215, allocations: 0 / 0.7296 GB, free: 98.89 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0003995/1.216, allocations: 0.561 MB / 0.7302 GB, free: 98.57 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003226/1.219, allocations: 1.557 MB / 0.7317 GB, free: 98.55 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005232/1.224, allocations: 5.532 MB / 0.7371 GB, free: 93.35 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006155/1.231, allocations: 2.934 MB / 0.74 GB, free: 93.33 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001037/1.231, allocations: 46.55 kB / 0.74 GB, free: 93.33 MB / 0.4948 GB Notification: Performance of matching and sorting (n=793) (initialization): time 0.01769/1.248, allocations: 6.294 MB / 0.7461 GB, free: 92.88 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001245/1.249, allocations: 68.25 kB / 0.7462 GB, free: 92.88 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001861/1.249, allocations: 142.9 kB / 0.7463 GB, free: 92.88 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001125/1.25, allocations: 372.5 kB / 0.7467 GB, free: 92.87 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007271/1.257, allocations: 1.408 MB / 0.7481 GB, free: 92.74 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003812/1.261, allocations: 2.633 MB / 0.7506 GB, free: 91.39 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007296/1.268, allocations: 192.4 kB / 0.7508 GB, free: 91.37 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001039/1.269, allocations: 384.7 kB / 0.7512 GB, free: 91.37 MB / 0.4948 GB 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.001007/1.27, allocations: 450.3 kB / 0.7516 GB, free: 91.04 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007465/1.271, allocations: 316.1 kB / 0.7519 GB, free: 90.87 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003731/1.275, allocations: 1.541 MB / 0.7534 GB, free: 90.73 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-05/1.275, allocations: 22.14 kB / 0.7535 GB, free: 90.72 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.936e-05/1.275, allocations: 3.719 kB / 0.7535 GB, free: 90.72 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.318e-05/1.275, allocations: 11.72 kB / 0.7535 GB, free: 90.72 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01271/1.288, allocations: 4.722 MB / 0.7581 GB, free: 89.32 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.189e-05/1.288, allocations: 0 / 0.7581 GB, free: 89.32 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001677/1.29, allocations: 207.9 kB / 0.7583 GB, free: 89.3 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007367/1.29, allocations: 156.3 kB / 0.7584 GB, free: 89.26 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001107/1.29, allocations: 15.5 kB / 0.7584 GB, free: 89.25 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001876/1.292, allocations: 2.046 MB / 0.7604 GB, free: 87.71 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/1.292, allocations: 3.844 kB / 0.7604 GB, free: 87.71 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003582/1.296, allocations: 3.509 MB / 0.7639 GB, free: 85.96 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001029/1.297, allocations: 0.4935 MB / 0.7644 GB, free: 85.63 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002702/1.297, allocations: 7.328 kB / 0.7644 GB, free: 85.63 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009256/1.298, allocations: 37.02 kB / 0.7644 GB, free: 85.63 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000132/1.298, allocations: 80.67 kB / 0.7645 GB, free: 85.62 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.275e-05/1.298, allocations: 34.16 kB / 0.7645 GB, free: 85.61 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002461/1.301, allocations: 2.011 MB / 0.7665 GB, free: 84.87 MB / 0.4948 GB Notification: Performance of sort global known variables: time 3.1e-07/1.301, allocations: 0 / 0.7665 GB, free: 84.87 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004591/1.305, allocations: 0.7316 MB / 0.7672 GB, free: 84.87 MB / 0.4948 GB 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.0002986/1.306, allocations: 136.5 kB / 0.7673 GB, free: 84.77 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.00508/1.311, allocations: 3.787 MB / 0.771 GB, free: 83.43 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/1.311, allocations: 0 / 0.771 GB, free: 83.43 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0009596/1.312, allocations: 0.9509 MB / 0.7719 GB, free: 83.03 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001387/1.313, allocations: 289.9 kB / 0.7722 GB, free: 82.89 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01029/1.324, allocations: 6.21 MB / 0.7783 GB, free: 80.64 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002558/1.326, allocations: 3.047 MB / 0.7813 GB, free: 79.42 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.004035/1.33, allocations: 1.849 MB / 0.7831 GB, free: 79.2 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004895/1.331, allocations: 217.6 kB / 0.7833 GB, free: 78.99 MB / 0.4948 GB Notification: Performance of SimCode: time 9.22e-07/1.331, allocations: 0 / 0.7833 GB, free: 78.99 MB / 0.4948 GB Notification: Performance of Templates: time 0.04102/1.372, allocations: 24.23 MB / 0.8069 GB, free: 64.8 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins/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_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches