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/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008395/0.0008395, allocations: 88.28 kB / 21.44 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00381/0.00381, allocations: 158.5 kB / 24.7 MB, free: 9.441 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8655/0.8655, allocations: 177 MB / 204.9 MB, free: 5.758 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2257/0.2257, allocations: 34.24 MB / 295.6 MB, free: 0.6953 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.373e-06/1.373e-06, allocations: 0 / 443.4 MB, free: 1.098 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.234e-05/2.372e-05, allocations: 5.094 kB / 443.4 MB, free: 1.094 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.1963/0.1963, allocations: 7.914 MB / 451.3 MB, free: 40.08 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.006192/0.2025, allocations: 3.371 MB / 454.7 MB, free: 38 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009947/0.2035, allocations: 53.12 kB / 454.8 MB, free: 37.98 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001772/0.2053, allocations: 1.711 MB / 456.5 MB, free: 37.27 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002334/0.2076, allocations: 1.633 MB / 458.1 MB, free: 36.53 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007717/0.2084, allocations: 0.6155 MB / 458.7 MB, free: 36.27 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.002588/0.211, allocations: 3.952 MB / 462.7 MB, free: 34.77 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001473/0.2125, allocations: 2.078 MB / 464.7 MB, free: 33.84 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00136/0.2138, allocations: 1.675 MB / 466.4 MB, free: 33.13 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001212/0.215, allocations: 1.702 MB / 468.1 MB, free: 32.69 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002048/0.2152, allocations: 230.4 kB / 468.3 MB, free: 32.68 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001383/0.2166, allocations: 1.046 MB / 469.4 MB, free: 32.48 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008869/0.2175, allocations: 1.508 MB / 470.9 MB, free: 31.85 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000801/0.2183, allocations: 0.9078 MB / 471.8 MB, free: 31.41 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004674/0.223, allocations: 5.461 MB / 477.3 MB, free: 29.55 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.91e-06/0.223, allocations: 0 / 477.3 MB, free: 29.55 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.223, allocations: 0 / 477.3 MB, free: 29.55 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.466e-05/0.2231, allocations: 0 / 477.3 MB, free: 29.55 MB / 410.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.006799/0.2299, allocations: 3.707 MB / 481 MB, free: 27.41 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.512e-05/0.2299, allocations: 9.156 kB / 481 MB, free: 27.41 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01171/0.2416, allocations: 2.399 MB / 483.4 MB, free: 27.08 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005173/0.2468, allocations: 2.117 MB / 485.5 MB, free: 26.05 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001185/0.2469, allocations: 168.5 kB / 485.7 MB, free: 25.96 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003823/0.2473, allocations: 215.5 kB / 485.9 MB, free: 25.89 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008698/0.256, allocations: 7.459 MB / 493.3 MB, free: 22.14 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.932e-05/0.2561, allocations: 39.83 kB / 493.4 MB, free: 22.12 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002221/0.2563, allocations: 108.4 kB / 493.5 MB, free: 22.05 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001898/0.2582, allocations: 1.544 MB / 495 MB, free: 21.77 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008941/0.2671, allocations: 6.297 MB / 0.4896 GB, free: 19.82 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01992/0.287, allocations: 28.57 MB / 0.5175 GB, free: 8.496 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002779/0.2898, allocations: 1.757 MB / 0.5192 GB, free: 6.707 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009992/0.2908, allocations: 1.051 MB / 0.5202 GB, free: 5.648 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002084/0.291, allocations: 84.44 kB / 0.5203 GB, free: 5.566 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.728e-05/0.2911, allocations: 47.06 kB / 0.5203 GB, free: 5.512 MB / 426.7 MB Notification: Performance of pre-optimization done (n=108): time 5.821e-06/0.2911, allocations: 0 / 0.5203 GB, free: 5.512 MB / 426.7 MB Notification: Performance of matching and sorting (n=132): time 0.02063/0.3117, allocations: 12.15 MB / 0.5322 GB, free: 9.289 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.608e-05/0.3118, allocations: 196.6 kB / 0.5324 GB, free: 9.055 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003424/0.3152, allocations: 3.441 MB / 0.5357 GB, free: 5.594 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 8.169e-05/0.3153, allocations: 41.7 kB / 0.5358 GB, free: 5.547 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001346/0.3166, allocations: 2.653 MB / 0.5384 GB, free: 2.867 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004172/0.3171, allocations: 0.5468 MB / 0.5389 GB, free: 2.316 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009536/0.318, allocations: 1.068 MB / 0.5399 GB, free: 1.238 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.86e-05/0.3181, allocations: 309.1 kB / 0.5402 GB, free: 0.9336 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001735/0.3198, allocations: 1.74 MB / 0.5419 GB, free: 15.19 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00329/0.3231, allocations: 5.134 MB / 0.547 GB, free: 8.355 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005423/0.3285, allocations: 7.369 MB / 0.5542 GB, free: 15.33 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.665e-05/0.3286, allocations: 37.62 kB / 0.5542 GB, free: 15.3 MB / 474.7 MB Notification: Performance of matching and sorting (n=694) (initialization): time 0.007311/0.3359, allocations: 7.033 MB / 0.5611 GB, free: 8.25 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.21e-05/0.3359, allocations: 59.98 kB / 0.5611 GB, free: 8.191 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.051e-05/0.336, allocations: 120 kB / 0.5612 GB, free: 8.074 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009497/0.337, allocations: 0.633 MB / 0.5618 GB, free: 7.438 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001954/0.3389, allocations: 1.221 MB / 0.563 GB, free: 6.215 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003379/0.3423, allocations: 3.941 MB / 0.5669 GB, free: 2.18 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002013/0.3443, allocations: 323.5 kB / 0.5672 GB, free: 1.863 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002873/0.3446, allocations: 332 kB / 0.5675 GB, free: 1.539 MB / 474.7 MB 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.00198/0.3466, allocations: 1.697 MB / 0.5692 GB, free: 15.82 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003193/0.3469, allocations: 282.5 kB / 0.5694 GB, free: 15.55 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002384/0.3493, allocations: 2.053 MB / 0.5714 GB, free: 13.48 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.681e-05/0.3493, allocations: 20 kB / 0.5715 GB, free: 13.46 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.626e-06/0.3493, allocations: 6.312 kB / 0.5715 GB, free: 13.45 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.857e-06/0.3493, allocations: 7.922 kB / 0.5715 GB, free: 13.45 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005657/0.355, allocations: 4.859 MB / 0.5762 GB, free: 8.531 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.062e-06/0.355, allocations: 4 kB / 0.5762 GB, free: 8.527 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004886/0.3555, allocations: 195.7 kB / 0.5764 GB, free: 8.336 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007591/0.3562, allocations: 496.2 kB / 0.5769 GB, free: 7.848 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.026e-05/0.3563, allocations: 20 kB / 0.5769 GB, free: 7.828 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002672/0.359, allocations: 3.314 MB / 0.5801 GB, free: 4.414 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.359, allocations: 3.984 kB / 0.5801 GB, free: 4.41 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003872/0.3628, allocations: 4.152 MB / 0.5842 GB, free: 236 kB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003734/0.3632, allocations: 274.1 kB / 0.5845 GB, free: 15.96 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001735/0.3634, allocations: 20.28 kB / 0.5845 GB, free: 15.94 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006447/0.364, allocations: 103.8 kB / 0.5846 GB, free: 15.84 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001287/0.3641, allocations: 80.19 kB / 0.5847 GB, free: 15.76 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.77e-05/0.3642, allocations: 39.94 kB / 0.5847 GB, free: 15.72 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002037/0.3662, allocations: 1.999 MB / 0.5866 GB, free: 13.72 MB / 0.4948 GB Notification: Performance of sort global known variables: time 7e-08/0.3662, allocations: 0 / 0.5866 GB, free: 13.72 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.003077/0.3693, allocations: 0.8632 MB / 0.5875 GB, free: 12.86 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 (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.0003423/0.3697, allocations: 163.1 kB / 0.5876 GB, free: 12.68 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.004144/0.3738, allocations: 3.975 MB / 0.5915 GB, free: 8.723 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.3738, allocations: 4 kB / 0.5915 GB, free: 8.719 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0009688/0.3748, allocations: 1.058 MB / 0.5926 GB, free: 7.648 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001117/0.3759, allocations: 304.7 kB / 0.5929 GB, free: 7.363 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007952/0.3838, allocations: 7.461 MB / 0.6001 GB, free: 15.84 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001733/0.3856, allocations: 2.076 MB / 0.6022 GB, free: 13.72 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005792/0.3862, allocations: 236.5 kB / 0.6024 GB, free: 13.49 MB / 0.5105 GB Notification: Performance of SimCode: time 1.082e-06/0.3862, allocations: 0 / 0.6024 GB, free: 13.49 MB / 0.5105 GB Notification: Performance of Templates: time 0.249/0.6351, allocations: 61.32 MB / 0.6623 GB, free: 139 MB / 0.5261 GB " [Timeout remaining time 659] make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_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_trunk_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.290833664126694]