Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001494/0.001494, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001623/0.001623, allocations: 209.2 kB / 23.73 MB, free: 4.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.559/1.559, allocations: 230.6 MB / 257.5 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2416/0.2416, allocations: 46.95 MB / 360.9 MB, free: 4.133 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002168/0.002168, allocations: 71.89 kB / 0.4966 GB, free: 7.227 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3459/0.3481, allocations: 66.04 MB / 0.5611 GB, free: 4.172 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.0116/0.3597, allocations: 7.92 MB / 0.5688 GB, free: 12.21 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.007945/0.3676, allocations: 3.361 MB / 0.5721 GB, free: 8.84 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001263/0.3689, allocations: 55.75 kB / 0.5721 GB, free: 8.785 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00352/0.3724, allocations: 1.635 MB / 0.5737 GB, free: 7.145 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004106/0.3765, allocations: 1.584 MB / 0.5753 GB, free: 5.555 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001461/0.378, allocations: 0.5614 MB / 0.5758 GB, free: 4.992 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005329/0.3833, allocations: 3.568 MB / 0.5793 GB, free: 1.418 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002617/0.3859, allocations: 1.824 MB / 0.5811 GB, free: 15.54 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001838/0.3878, allocations: 1.117 MB / 0.5822 GB, free: 14.42 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00249/0.3903, allocations: 1.592 MB / 0.5837 GB, free: 12.82 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006605/0.3909, allocations: 220 kB / 0.584 GB, free: 12.61 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002336/0.3933, allocations: 1.006 MB / 0.5849 GB, free: 11.6 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001731/0.395, allocations: 1.437 MB / 0.5863 GB, free: 10.16 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001397/0.3964, allocations: 1.172 MB / 0.5875 GB, free: 8.977 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006871/0.4033, allocations: 5.432 MB / 0.5928 GB, free: 3.523 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.783e-06/0.4033, allocations: 4 kB / 0.5928 GB, free: 3.52 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.4033, allocations: 0 / 0.5928 GB, free: 3.52 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001079/0.4034, allocations: 0 / 0.5928 GB, free: 3.52 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1141 * Number of variables: 1141 Notification: Performance of Generate backend data structure: time 0.007978/0.4114, allocations: 3.681 MB / 0.5964 GB, free: 15.78 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.127e-05/0.4114, allocations: 8.031 kB / 0.5964 GB, free: 15.77 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01606/0.4275, allocations: 2.347 MB / 0.5987 GB, free: 13.42 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006151/0.4336, allocations: 2.127 MB / 0.6008 GB, free: 11.26 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001567/0.4338, allocations: 168.4 kB / 0.6009 GB, free: 11.09 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005734/0.4344, allocations: 223.9 kB / 0.6011 GB, free: 10.87 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01243/0.4468, allocations: 7.452 MB / 0.6084 GB, free: 2.781 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.962e-05/0.4469, allocations: 31.7 kB / 0.6084 GB, free: 2.75 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003063/0.4472, allocations: 107.9 kB / 0.6086 GB, free: 2.645 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002799/0.45, allocations: 1.55 MB / 0.6101 GB, free: 1.09 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01283/0.4628, allocations: 6.291 MB / 0.6162 GB, free: 10.78 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03925/0.5021, allocations: 28.39 MB / 0.6439 GB, free: 13.49 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004475/0.5065, allocations: 1.704 MB / 0.6456 GB, free: 11.75 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001552/0.5081, allocations: 1.051 MB / 0.6466 GB, free: 10.69 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002804/0.5084, allocations: 84.25 kB / 0.6467 GB, free: 10.61 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.686e-05/0.5084, allocations: 47 kB / 0.6468 GB, free: 10.55 MB / 494.1 MB Notification: Performance of pre-optimization done (n=108): time 4.829e-06/0.5084, allocations: 4 kB / 0.6468 GB, free: 10.55 MB / 494.1 MB Notification: Performance of matching and sorting (n=132): time 0.03684/0.5453, allocations: 11.79 MB / 0.6583 GB, free: 14.69 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001684/0.5455, allocations: 196.6 kB / 0.6585 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00532/0.5508, allocations: 3.355 MB / 0.6617 GB, free: 11.08 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002918/0.5511, allocations: 49.7 kB / 0.6618 GB, free: 11.03 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002441/0.5535, allocations: 2.672 MB / 0.6644 GB, free: 8.328 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009439/0.5545, allocations: 0.5467 MB / 0.6649 GB, free: 7.777 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001739/0.5562, allocations: 1.095 MB / 0.666 GB, free: 6.672 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001533/0.5563, allocations: 309.2 kB / 0.6663 GB, free: 6.367 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002865/0.5592, allocations: 1.736 MB / 0.668 GB, free: 4.625 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006301/0.5655, allocations: 5.15 MB / 0.673 GB, free: 13.78 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01067/0.5762, allocations: 7.357 MB / 0.6802 GB, free: 4.766 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001356/0.5763, allocations: 36 kB / 0.6802 GB, free: 4.73 MB / 0.5137 GB Notification: Performance of matching and sorting (n=694) (initialization): time 0.01376/0.5901, allocations: 7.025 MB / 0.6871 GB, free: 13.7 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.28e-05/0.5902, allocations: 63.88 kB / 0.6872 GB, free: 13.63 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001479/0.5903, allocations: 116 kB / 0.6873 GB, free: 13.52 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001723/0.592, allocations: 0.6409 MB / 0.6879 GB, free: 12.88 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003935/0.596, allocations: 1.216 MB / 0.6891 GB, free: 11.66 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005486/0.6015, allocations: 3.905 MB / 0.6929 GB, free: 7.645 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00389/0.6053, allocations: 299.6 kB / 0.6932 GB, free: 7.352 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006699/0.606, allocations: 332.1 kB / 0.6935 GB, free: 7.027 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 539 * Number of states: 0 () * Number of discrete variables: 29 (Distance1.arrow.twoHeadedArrow,Distance1.arrow.headAtOrigin,BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],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 (659): * Single equations (assignments): 655 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002953/0.609, allocations: 1.697 MB / 0.6952 GB, free: 5.316 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005796/0.6095, allocations: 282.1 kB / 0.6954 GB, free: 5.039 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004153/0.6137, allocations: 2.049 MB / 0.6974 GB, free: 2.973 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.158e-05/0.6137, allocations: 19.98 kB / 0.6974 GB, free: 2.953 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.05e-05/0.6137, allocations: 4 kB / 0.6974 GB, free: 2.949 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.361e-05/0.6138, allocations: 7.969 kB / 0.6975 GB, free: 2.941 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01001/0.6238, allocations: 4.772 MB / 0.7021 GB, free: 14.11 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.666e-06/0.6238, allocations: 4.062 kB / 0.7021 GB, free: 14.11 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001009/0.6248, allocations: 203.6 kB / 0.7023 GB, free: 13.91 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001405/0.6262, allocations: 484.2 kB / 0.7028 GB, free: 13.43 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001064/0.6263, allocations: 27.92 kB / 0.7028 GB, free: 13.41 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004468/0.6308, allocations: 3.291 MB / 0.706 GB, free: 10.01 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/0.6308, allocations: 4.031 kB / 0.706 GB, free: 10.01 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006743/0.6375, allocations: 4.15 MB / 0.7101 GB, free: 5.828 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009294/0.6384, allocations: 242 kB / 0.7103 GB, free: 5.59 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003024/0.6387, allocations: 24 kB / 0.7103 GB, free: 5.566 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001088/0.6398, allocations: 83.95 kB / 0.7104 GB, free: 5.484 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001908/0.64, allocations: 80.39 kB / 0.7105 GB, free: 5.406 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.969e-05/0.6401, allocations: 39.98 kB / 0.7105 GB, free: 5.367 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003198/0.6433, allocations: 1.933 MB / 0.7124 GB, free: 3.434 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6433, allocations: 0 / 0.7124 GB, free: 3.434 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004629/0.6479, allocations: 0.7851 MB / 0.7132 GB, free: 2.648 MB / 0.545 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004119/0.6484, allocations: 139 kB / 0.7133 GB, free: 2.5 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.007199/0.6556, allocations: 3.98 MB / 0.7172 GB, free: 14.54 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.923e-06/0.6556, allocations: 0 / 0.7172 GB, free: 14.54 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001716/0.6573, allocations: 1.057 MB / 0.7182 GB, free: 13.46 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001974/0.6593, allocations: 306.7 kB / 0.7185 GB, free: 13.16 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01352/0.6728, allocations: 7.198 MB / 0.7255 GB, free: 5.914 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003004/0.6758, allocations: 2.072 MB / 0.7276 GB, free: 3.805 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004023/0.6798, allocations: 1.649 MB / 0.7292 GB, free: 2.148 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005562/0.6804, allocations: 191.4 kB / 0.7294 GB, free: 1.961 MB / 0.5606 GB Notification: Performance of SimCode: time 9.52e-07/0.6804, allocations: 0 / 0.7294 GB, free: 1.961 MB / 0.5606 GB Notification: Performance of Templates: time 0.3073/0.9876, allocations: 25.89 MB / 0.7546 GB, free: 141.2 MB / 0.5606 GB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.082637749612331]