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.001777/0.001777, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.002485/0.002485, allocations: 208.4 kB / 23.73 MB, free: 4.523 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.583/1.583, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.2817/0.2817, allocations: 46.96 MB / 360.9 MB, free: 4.027 MB / 286.1 MB " [Timeout remaining time 179] 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.002115/0.002115, allocations: 67.89 kB / 0.4966 GB, free: 7.207 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3415/0.3436, allocations: 66.04 MB / 0.5611 GB, free: 4.141 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01084/0.3545, allocations: 7.912 MB / 0.5688 GB, free: 12.19 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.007398/0.3619, allocations: 3.364 MB / 0.5721 GB, free: 8.816 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001231/0.3631, allocations: 59.69 kB / 0.5721 GB, free: 8.758 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003262/0.3664, allocations: 1.631 MB / 0.5737 GB, free: 7.121 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003876/0.3702, allocations: 1.584 MB / 0.5753 GB, free: 5.531 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001387/0.3716, allocations: 0.5575 MB / 0.5758 GB, free: 4.973 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005211/0.3768, allocations: 3.584 MB / 0.5793 GB, free: 1.383 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002391/0.3792, allocations: 1.82 MB / 0.5811 GB, free: 15.51 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001684/0.3809, allocations: 1.117 MB / 0.5822 GB, free: 14.39 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002362/0.3833, allocations: 1.67 MB / 0.5838 GB, free: 12.71 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004611/0.3837, allocations: 224 kB / 0.584 GB, free: 12.49 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001925/0.3856, allocations: 1.006 MB / 0.585 GB, free: 11.48 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001454/0.3871, allocations: 1.441 MB / 0.5864 GB, free: 10.04 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001379/0.3885, allocations: 1.18 MB / 0.5876 GB, free: 8.852 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006853/0.3953, allocations: 5.416 MB / 0.5929 GB, free: 3.414 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.12e-05/0.3953, allocations: 3.984 kB / 0.5929 GB, free: 3.41 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.3953, allocations: 0 / 0.5929 GB, free: 3.41 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001524/0.3955, allocations: 4 kB / 0.5929 GB, free: 3.406 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.00841/0.4039, allocations: 3.685 MB / 0.5965 GB, free: 15.66 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.121e-05/0.404, allocations: 8.031 kB / 0.5965 GB, free: 15.66 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01514/0.4191, allocations: 2.358 MB / 0.5988 GB, free: 13.29 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006216/0.4253, allocations: 2.123 MB / 0.6009 GB, free: 11.13 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001488/0.4255, allocations: 164.5 kB / 0.601 GB, free: 10.97 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005644/0.426, allocations: 220 kB / 0.6012 GB, free: 10.75 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01201/0.438, allocations: 7.452 MB / 0.6085 GB, free: 2.664 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001067/0.4381, allocations: 43.64 kB / 0.6085 GB, free: 2.621 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003133/0.4385, allocations: 103.9 kB / 0.6086 GB, free: 2.52 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002656/0.4411, allocations: 1.546 MB / 0.6102 GB, free: 0.9688 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01163/0.4527, allocations: 6.303 MB / 0.6163 GB, free: 10.65 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04481/0.4975, allocations: 28.39 MB / 0.644 GB, free: 13.36 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006944/0.5045, allocations: 1.7 MB / 0.6457 GB, free: 11.62 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002325/0.5068, allocations: 1.047 MB / 0.6467 GB, free: 10.56 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004168/0.5072, allocations: 84.23 kB / 0.6468 GB, free: 10.48 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.305e-05/0.5073, allocations: 50.94 kB / 0.6469 GB, free: 10.42 MB / 494.1 MB Notification: Performance of pre-optimization done (n=108): time 5.881e-06/0.5073, allocations: 0 / 0.6469 GB, free: 10.42 MB / 494.1 MB Notification: Performance of matching and sorting (n=132): time 0.05357/0.5609, allocations: 11.79 MB / 0.6584 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001528/0.561, allocations: 192.6 kB / 0.6586 GB, free: 14.33 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005019/0.566, allocations: 3.363 MB / 0.6618 GB, free: 10.95 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002304/0.5663, allocations: 41.7 kB / 0.6619 GB, free: 10.9 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002387/0.5687, allocations: 2.68 MB / 0.6645 GB, free: 8.191 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007264/0.5694, allocations: 0.5506 MB / 0.665 GB, free: 7.637 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001515/0.5709, allocations: 1.091 MB / 0.6661 GB, free: 6.535 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001613/0.5711, allocations: 305.1 kB / 0.6664 GB, free: 6.234 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002761/0.5738, allocations: 1.736 MB / 0.6681 GB, free: 4.492 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005935/0.5798, allocations: 5.139 MB / 0.6731 GB, free: 13.66 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009902/0.5897, allocations: 7.371 MB / 0.6803 GB, free: 4.625 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001169/0.5898, allocations: 35.94 kB / 0.6803 GB, free: 4.59 MB / 0.5137 GB Notification: Performance of matching and sorting (n=694) (initialization): time 0.01392/0.6037, allocations: 7.021 MB / 0.6872 GB, free: 13.56 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.933e-05/0.6038, allocations: 59.94 kB / 0.6872 GB, free: 13.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001613/0.604, allocations: 116.9 kB / 0.6874 GB, free: 13.39 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001876/0.6058, allocations: 0.6447 MB / 0.688 GB, free: 12.74 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004553/0.6104, allocations: 1.212 MB / 0.6892 GB, free: 11.52 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00637/0.6168, allocations: 3.905 MB / 0.693 GB, free: 7.516 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004056/0.6208, allocations: 295.6 kB / 0.6933 GB, free: 7.227 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008762/0.6217, allocations: 328 kB / 0.6936 GB, free: 6.906 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.003241/0.6249, allocations: 1.693 MB / 0.6952 GB, free: 5.199 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006795/0.6256, allocations: 286.1 kB / 0.6955 GB, free: 4.918 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0042/0.6298, allocations: 2.053 MB / 0.6975 GB, free: 2.848 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.813e-05/0.6298, allocations: 15.98 kB / 0.6975 GB, free: 2.832 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.01e-05/0.6298, allocations: 4 kB / 0.6975 GB, free: 2.828 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.313e-05/0.6299, allocations: 3.984 kB / 0.6975 GB, free: 2.824 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01096/0.6408, allocations: 4.784 MB / 0.7022 GB, free: 13.98 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-05/0.6408, allocations: 7.984 kB / 0.7022 GB, free: 13.97 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001032/0.6419, allocations: 195.8 kB / 0.7024 GB, free: 13.78 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001437/0.6433, allocations: 488.2 kB / 0.7029 GB, free: 13.3 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001081/0.6434, allocations: 20 kB / 0.7029 GB, free: 13.28 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004663/0.6481, allocations: 3.292 MB / 0.7061 GB, free: 9.887 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.521e-05/0.6482, allocations: 3.984 kB / 0.7061 GB, free: 9.883 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007138/0.6553, allocations: 4.15 MB / 0.7102 GB, free: 5.703 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009858/0.6563, allocations: 254 kB / 0.7104 GB, free: 5.453 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003074/0.6566, allocations: 16 kB / 0.7104 GB, free: 5.438 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001093/0.6577, allocations: 79.75 kB / 0.7105 GB, free: 5.363 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002756/0.658, allocations: 76.52 kB / 0.7106 GB, free: 5.289 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001094/0.6581, allocations: 39.98 kB / 0.7106 GB, free: 5.25 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003298/0.6614, allocations: 1.933 MB / 0.7125 GB, free: 3.316 MB / 0.545 GB Notification: Performance of sort global known variables: time 8e-08/0.6614, allocations: 0 / 0.7125 GB, free: 3.316 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004439/0.6658, allocations: 0.7773 MB / 0.7132 GB, free: 2.539 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.0004219/0.6662, allocations: 149.4 kB / 0.7134 GB, free: 2.383 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.007545/0.6738, allocations: 3.991 MB / 0.7173 GB, free: 14.41 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.624e-06/0.6738, allocations: 4 kB / 0.7173 GB, free: 14.41 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001762/0.6755, allocations: 1.045 MB / 0.7183 GB, free: 13.35 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002154/0.6777, allocations: 313.8 kB / 0.7186 GB, free: 13.04 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02/0.6977, allocations: 7.195 MB / 0.7256 GB, free: 5.793 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004521/0.7022, allocations: 2.076 MB / 0.7277 GB, free: 3.68 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.006588/0.7088, allocations: 1.649 MB / 0.7293 GB, free: 2.023 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001109/0.7099, allocations: 195.4 kB / 0.7295 GB, free: 1.832 MB / 0.5606 GB Notification: Performance of SimCode: time 1.523e-06/0.7099, allocations: 0 / 0.7295 GB, free: 1.832 MB / 0.5606 GB Notification: Performance of Templates: time 0.3739/1.084, allocations: 28.15 MB / 0.757 GB, free: 138.8 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.155171866994351]