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.001179/0.001179, allocations: 78.66 kB / 21.42 MB, free: 3.078 MB / 18.57 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.001244/0.001244, allocations: 171.3 kB / 24.82 MB, free: 8.938 MB / 18.57 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.126/1.126, allocations: 177.1 MB / 205.3 MB, free: 5.527 MB / 186.7 MB " [Timeout remaining time 179] 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.3119/0.3119, allocations: 34.27 MB / 296.1 MB, free: 0.7188 MB / 266.7 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 2.494e-06/2.494e-06, allocations: 0 / 378.5 MB, free: 2.422 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.091e-05/2.34e-05, allocations: 2.312 kB / 378.5 MB, free: 2.418 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.008146/0.008169, allocations: 8.498 MB / 387 MB, free: 9.879 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.005897/0.01407, allocations: 3.457 MB / 390.4 MB, free: 6.41 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007599/0.01483, allocations: 59.69 kB / 390.5 MB, free: 6.352 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001971/0.0168, allocations: 1.76 MB / 392.3 MB, free: 4.586 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0022/0.019, allocations: 1.641 MB / 393.9 MB, free: 2.938 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007078/0.0197, allocations: 0.6235 MB / 394.5 MB, free: 2.312 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.003151/0.02286, allocations: 3.969 MB / 398.5 MB, free: 14.34 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001599/0.02445, allocations: 2.138 MB / 400.6 MB, free: 12.14 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00179/0.02624, allocations: 2.183 MB / 402.8 MB, free: 9.953 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001752/0.028, allocations: 1.711 MB / 404.5 MB, free: 8.238 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000245/0.02824, allocations: 228 kB / 404.8 MB, free: 8.016 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001101/0.02934, allocations: 1.037 MB / 405.8 MB, free: 6.977 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008726/0.03022, allocations: 1.515 MB / 407.3 MB, free: 5.457 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006962/0.03091, allocations: 0.915 MB / 408.2 MB, free: 4.539 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0032/0.03411, allocations: 3.702 MB / 411.9 MB, free: 0.8242 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.03412, allocations: 0 / 411.9 MB, free: 0.8242 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.03412, allocations: 0 / 411.9 MB, free: 0.8242 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.514e-05/0.03415, allocations: 0 / 411.9 MB, free: 0.8242 MB / 378.7 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.003934/0.03809, allocations: 3.904 MB / 415.8 MB, free: 12.86 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.893e-05/0.03814, allocations: 12.03 kB / 415.8 MB, free: 12.84 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006074/0.04421, allocations: 1.782 MB / 417.6 MB, free: 11.06 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002251/0.04646, allocations: 1.59 MB / 419.2 MB, free: 9.434 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.749e-05/0.04655, allocations: 164.5 kB / 419.4 MB, free: 9.27 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002575/0.04681, allocations: 216.2 kB / 419.6 MB, free: 9.059 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003985/0.05079, allocations: 4.26 MB / 423.8 MB, free: 3.945 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.982e-05/0.05086, allocations: 39.62 kB / 423.9 MB, free: 3.906 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001974/0.05106, allocations: 107.9 kB / 424 MB, free: 3.801 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001552/0.05261, allocations: 1.336 MB / 425.3 MB, free: 2.465 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002631/0.05524, allocations: 1.818 MB / 427.1 MB, free: 0.6289 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2954/0.3506, allocations: 34.81 MB / 461.9 MB, free: 63.89 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002174/0.3528, allocations: 0.7659 MB / 462.7 MB, free: 63.75 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003274/0.3531, allocations: 235.5 kB / 462.9 MB, free: 63.7 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004208/0.3573, allocations: 2.365 MB / 465.3 MB, free: 62.77 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.811e-05/0.3574, allocations: 47.27 kB / 465.4 MB, free: 62.72 MB / 410.7 MB Notification: Performance of pre-optimization done (n=84): time 6.292e-06/0.3574, allocations: 2.875 kB / 465.4 MB, free: 62.72 MB / 410.7 MB Notification: Performance of matching and sorting (n=101): time 0.01182/0.3692, allocations: 3.781 MB / 469.1 MB, free: 62.07 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.534e-05/0.3693, allocations: 189.7 kB / 469.3 MB, free: 61.85 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00375/0.373, allocations: 3.161 MB / 472.5 MB, free: 61.34 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001778/0.3732, allocations: 42.14 kB / 472.5 MB, free: 61.3 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001734/0.3749, allocations: 2.909 MB / 475.4 MB, free: 59.66 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005161/0.3754, allocations: 471.8 kB / 475.9 MB, free: 59.43 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001167/0.3766, allocations: 1.177 MB / 477.1 MB, free: 59.05 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001142/0.3767, allocations: 480.7 kB / 477.5 MB, free: 58.57 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008541/0.3776, allocations: 458.3 kB / 478 MB, free: 58.5 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003011/0.3806, allocations: 5.649 MB / 483.6 MB, free: 51.43 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005908/0.3865, allocations: 6.633 MB / 490.3 MB, free: 44.12 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001995/0.3867, allocations: 36.78 kB / 490.3 MB, free: 44.12 MB / 410.7 MB Notification: Performance of matching and sorting (n=681) (initialization): time 0.008937/0.3956, allocations: 4.186 MB / 494.5 MB, free: 42.51 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.079e-05/0.3957, allocations: 57.88 kB / 494.5 MB, free: 42.51 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001634/0.3959, allocations: 128 kB / 494.7 MB, free: 42.51 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000509/0.3964, allocations: 195.8 kB / 494.9 MB, free: 42.49 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002431/0.3988, allocations: 1.175 MB / 496 MB, free: 42.34 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001419/0.4002, allocations: 1.958 MB / 498 MB, free: 40.55 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004241/0.4045, allocations: 249.8 kB / 498.2 MB, free: 40.44 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000667/0.4051, allocations: 292 kB / 498.5 MB, free: 40.4 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 560 * 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 (656): * Single equations (assignments): 652 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001756/0.4069, allocations: 0.5939 MB / 499.1 MB, free: 39.92 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008512/0.4078, allocations: 298.4 kB / 499.4 MB, free: 39.75 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001047/0.4088, allocations: 0.5611 MB / 500 MB, free: 39.51 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.279e-05/0.4088, allocations: 15.67 kB / 500 MB, free: 39.5 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.297e-06/0.4088, allocations: 1.25 kB / 500 MB, free: 39.5 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.129e-05/0.4089, allocations: 5.594 kB / 500 MB, free: 39.5 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005935/0.4148, allocations: 3.082 MB / 0.4913 GB, free: 37.93 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.329e-05/0.4148, allocations: 3.688 kB / 0.4913 GB, free: 37.93 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004681/0.4153, allocations: 129.7 kB / 0.4914 GB, free: 37.92 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002198/0.4155, allocations: 44.77 kB / 0.4915 GB, free: 37.9 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.906e-05/0.4155, allocations: 21.19 kB / 0.4915 GB, free: 37.89 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009203/0.4165, allocations: 1.739 MB / 0.4932 GB, free: 36.15 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.925e-06/0.4165, allocations: 11.19 kB / 0.4932 GB, free: 36.14 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002334/0.4188, allocations: 1.508 MB / 0.4947 GB, free: 35.14 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006502/0.4195, allocations: 253.3 kB / 0.4949 GB, free: 34.97 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002139/0.4197, allocations: 28.09 kB / 0.4949 GB, free: 34.96 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005233/0.4202, allocations: 17.78 kB / 0.4949 GB, free: 34.95 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001094/0.4203, allocations: 58.47 kB / 0.495 GB, free: 34.94 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.902e-05/0.4204, allocations: 36.22 kB / 0.495 GB, free: 34.93 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002108/0.4225, allocations: 1.257 MB / 0.4963 GB, free: 34.49 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4225, allocations: 0 / 0.4963 GB, free: 34.49 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005271/0.4277, allocations: 0.7582 MB / 0.497 GB, free: 34.39 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 (rev.w,damper.phi_rel) * 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 (78): * Single equations (assignments): 74 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005597/0.4283, allocations: 159.8 kB / 0.4972 GB, free: 34.28 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005294/0.4336, allocations: 2.265 MB / 0.4994 GB, free: 33.43 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.109e-05/0.4336, allocations: 4.906 kB / 0.4994 GB, free: 33.43 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006382/0.4342, allocations: 434.3 kB / 0.4998 GB, free: 33.2 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00214/0.4364, allocations: 319.5 kB / 0.5001 GB, free: 33.05 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01109/0.4475, allocations: 5.508 MB / 0.5055 GB, free: 30.21 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001119/0.4486, allocations: 0.9298 MB / 0.5064 GB, free: 29.91 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001543/0.4501, allocations: 422.4 kB / 0.5068 GB, free: 29.77 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006887/0.4508, allocations: 480.1 kB / 0.5072 GB, free: 29.7 MB / 410.7 MB Notification: Performance of SimCode: time 3.055e-06/0.4508, allocations: 0 / 0.5072 GB, free: 29.7 MB / 410.7 MB Notification: Performance of Templates: time 0.04528/0.4961, allocations: 21.26 MB / 0.528 GB, free: 15.75 MB / 410.7 MB " [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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.744867785833776]