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.0009668/0.0009668, allocations: 83.58 kB / 21.19 MB, free: 3.379 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.001633/0.001633, allocations: 165 kB / 24.56 MB, free: 12 kB / 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 0.9914/0.9914, allocations: 177.1 MB / 205 MB, free: 5.621 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.2336/0.2336, allocations: 34.26 MB / 295.7 MB, free: 0.7852 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 1.493e-06/1.493e-06, allocations: 0 / 378 MB, free: 2.684 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.228e-05/2.378e-05, allocations: 2.312 kB / 378 MB, free: 2.68 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.0111/0.01112, allocations: 8.698 MB / 386.7 MB, free: 9.938 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.006979/0.0181, allocations: 3.492 MB / 390.2 MB, free: 6.434 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006014/0.0187, allocations: 55.75 kB / 390.3 MB, free: 6.379 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003601/0.02231, allocations: 1.787 MB / 392.1 MB, free: 4.586 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002904/0.02521, allocations: 1.645 MB / 393.7 MB, free: 2.934 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001245/0.02645, allocations: 0.6118 MB / 394.3 MB, free: 2.32 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.003292/0.02975, allocations: 3.963 MB / 398.3 MB, free: 14.35 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001395/0.03114, allocations: 2.141 MB / 400.4 MB, free: 12.15 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001973/0.03311, allocations: 2.175 MB / 402.6 MB, free: 9.973 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001251/0.03437, allocations: 1.707 MB / 404.3 MB, free: 8.262 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002351/0.0346, allocations: 228 kB / 404.5 MB, free: 8.039 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001026/0.03563, allocations: 1.053 MB / 405.6 MB, free: 6.984 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008869/0.03651, allocations: 1.523 MB / 407.1 MB, free: 5.457 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000618/0.03713, allocations: 0.9033 MB / 408 MB, free: 4.551 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002949/0.04008, allocations: 3.705 MB / 411.7 MB, free: 0.832 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.04009, allocations: 0 / 411.7 MB, free: 0.832 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.04009, allocations: 0 / 411.7 MB, free: 0.832 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.476e-05/0.04011, allocations: 0 / 411.7 MB, free: 0.832 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.003841/0.04395, allocations: 4.041 MB / 415.7 MB, free: 12.73 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/0.04399, allocations: 8.031 kB / 415.8 MB, free: 12.72 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007495/0.05149, allocations: 2.69 MB / 418.4 MB, free: 10.02 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001966/0.05346, allocations: 1.797 MB / 420.2 MB, free: 8.191 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.226e-05/0.05355, allocations: 164.5 kB / 420.4 MB, free: 8.027 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002639/0.05381, allocations: 216.2 kB / 420.6 MB, free: 7.816 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004917/0.05873, allocations: 4.612 MB / 425.2 MB, free: 2.352 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.632e-05/0.05879, allocations: 35.7 kB / 425.3 MB, free: 2.316 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001833/0.05897, allocations: 107.9 kB / 425.4 MB, free: 2.211 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001236/0.0602, allocations: 1.484 MB / 426.8 MB, free: 0.7266 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003433/0.06364, allocations: 2.258 MB / 429.1 MB, free: 14.45 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1795/0.2431, allocations: 35.01 MB / 464.1 MB, free: 63.55 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001679/0.2448, allocations: 0.8571 MB / 465 MB, free: 63.41 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002937/0.2451, allocations: 274.9 kB / 465.2 MB, free: 63.37 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002345/0.2474, allocations: 2.493 MB / 467.7 MB, free: 62.43 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.954e-05/0.2475, allocations: 46.08 kB / 467.8 MB, free: 62.38 MB / 410.7 MB Notification: Performance of pre-optimization done (n=84): time 3.446e-06/0.2475, allocations: 0 / 467.8 MB, free: 62.38 MB / 410.7 MB Notification: Performance of matching and sorting (n=101): time 0.009421/0.2569, allocations: 6.292 MB / 474.1 MB, free: 60.04 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.161e-05/0.2569, allocations: 197.2 kB / 474.3 MB, free: 59.81 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002386/0.2593, allocations: 3.182 MB / 477.4 MB, free: 58.93 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.493e-05/0.2594, allocations: 40.98 kB / 477.5 MB, free: 58.88 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008925/0.2603, allocations: 2.882 MB / 480.4 MB, free: 56.64 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002125/0.2605, allocations: 463.5 kB / 480.8 MB, free: 56.32 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007403/0.2612, allocations: 1.15 MB / 482 MB, free: 55.7 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.85e-05/0.2613, allocations: 480.7 kB / 482.4 MB, free: 55.23 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006511/0.2619, allocations: 0.5022 MB / 482.9 MB, free: 55.16 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001959/0.2639, allocations: 5.673 MB / 488.6 MB, free: 48.1 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003421/0.2673, allocations: 6.748 MB / 495.4 MB, free: 40.69 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.519e-05/0.2673, allocations: 36.16 kB / 495.4 MB, free: 40.69 MB / 410.7 MB Notification: Performance of matching and sorting (n=681) (initialization): time 0.004338/0.2717, allocations: 4.464 MB / 499.9 MB, free: 38.95 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.938e-05/0.2717, allocations: 57.53 kB / 499.9 MB, free: 38.95 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001301/0.2719, allocations: 123.1 kB / 0.4883 GB, free: 38.95 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003612/0.2722, allocations: 210.1 kB / 0.4885 GB, free: 38.93 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002131/0.2744, allocations: 1.206 MB / 0.4897 GB, free: 38.78 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008781/0.2752, allocations: 1.987 MB / 0.4916 GB, free: 36.96 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00167/0.2769, allocations: 329.5 kB / 0.492 GB, free: 36.85 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003095/0.2772, allocations: 332 kB / 0.4923 GB, free: 36.81 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.0006504/0.2779, allocations: 0.5921 MB / 0.4928 GB, free: 36.33 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002583/0.2781, allocations: 302.5 kB / 0.4931 GB, free: 36.16 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000668/0.2788, allocations: 0.5916 MB / 0.4937 GB, free: 35.91 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.394e-05/0.2788, allocations: 15.88 kB / 0.4937 GB, free: 35.9 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.072e-06/0.2788, allocations: 2.062 kB / 0.4937 GB, free: 35.9 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.2788, allocations: 4.25 kB / 0.4937 GB, free: 35.9 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00351/0.2823, allocations: 3.146 MB / 0.4968 GB, free: 34.42 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.2823, allocations: 2.906 kB / 0.4968 GB, free: 34.42 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000385/0.2827, allocations: 167.2 kB / 0.497 GB, free: 34.41 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000126/0.2828, allocations: 48.72 kB / 0.497 GB, free: 34.39 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.124e-05/0.2829, allocations: 21.61 kB / 0.497 GB, free: 34.38 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005152/0.2834, allocations: 1.755 MB / 0.4987 GB, free: 32.61 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.2834, allocations: 4.75 kB / 0.4988 GB, free: 32.61 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001306/0.2847, allocations: 1.61 MB / 0.5003 GB, free: 31.57 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00021/0.2849, allocations: 263.8 kB / 0.5006 GB, free: 31.39 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001603/0.2851, allocations: 23.59 kB / 0.5006 GB, free: 31.38 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005296/0.2856, allocations: 76.19 kB / 0.5007 GB, free: 31.37 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.865e-05/0.2857, allocations: 65.73 kB / 0.5007 GB, free: 31.36 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.085e-05/0.2857, allocations: 28.75 kB / 0.5008 GB, free: 31.35 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001289/0.287, allocations: 1.349 MB / 0.5021 GB, free: 30.88 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.287, allocations: 4.031 kB / 0.5021 GB, free: 30.88 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002663/0.2897, allocations: 0.7652 MB / 0.5028 GB, free: 30.78 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.0002992/0.29, allocations: 161.9 kB / 0.503 GB, free: 30.67 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002775/0.2928, allocations: 2.394 MB / 0.5053 GB, free: 29.77 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.2928, allocations: 0 / 0.5053 GB, free: 29.77 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000454/0.2932, allocations: 475.1 kB / 0.5058 GB, free: 29.52 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001301/0.2945, allocations: 309.4 kB / 0.5061 GB, free: 29.38 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006352/0.3009, allocations: 5.536 MB / 0.5115 GB, free: 26.53 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007653/0.3016, allocations: 0.9268 MB / 0.5124 GB, free: 26.22 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002288/0.3039, allocations: 1.399 MB / 0.5137 GB, free: 26.09 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000348/0.3043, allocations: 190.9 kB / 0.5139 GB, free: 26.07 MB / 410.7 MB Notification: Performance of SimCode: time 8.32e-07/0.3043, allocations: 0 / 0.5139 GB, free: 26.07 MB / 410.7 MB Notification: Performance of Templates: time 0.03285/0.3371, allocations: 19.75 MB / 0.5332 GB, free: 11.47 MB / 410.7 MB " [Timeout remaining time 660] 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.020427857059985]