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.0008644/0.0008644, allocations: 83.69 kB / 20.67 MB, free: 3.887 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.001041/0.001041, allocations: 170 kB / 23.95 MB, free: 0.6094 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 0.8611/0.8611, allocations: 177.1 MB / 204.3 MB, free: 5.727 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.2264/0.2264, allocations: 34.25 MB / 294.9 MB, free: 0.7148 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: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.282e-06/1.282e-06, allocations: 0 / 442.2 MB, free: 1.664 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.508e-05/1.636e-05, allocations: 4.812 kB / 442.2 MB, free: 1.66 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.1829/0.1829, allocations: 7.914 MB / 450.1 MB, free: 40.2 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.003543/0.1864, allocations: 3.379 MB / 453.5 MB, free: 38.12 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004349/0.1869, allocations: 56 kB / 453.5 MB, free: 38.1 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001423/0.1883, allocations: 1.708 MB / 455.2 MB, free: 37.38 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001533/0.1898, allocations: 1.628 MB / 456.9 MB, free: 36.65 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005373/0.1903, allocations: 0.6013 MB / 457.5 MB, free: 36.41 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.00182/0.1922, allocations: 3.959 MB / 461.4 MB, free: 34.91 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001219/0.1934, allocations: 2.081 MB / 463.5 MB, free: 33.97 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00136/0.1947, allocations: 1.676 MB / 465.2 MB, free: 33.27 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001005/0.1957, allocations: 1.7 MB / 466.9 MB, free: 32.82 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001806/0.1959, allocations: 226.4 kB / 467.1 MB, free: 32.82 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007906/0.1967, allocations: 1.045 MB / 468.1 MB, free: 32.62 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005769/0.1973, allocations: 1.52 MB / 469.7 MB, free: 31.98 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004988/0.1978, allocations: 0.9657 MB / 470.6 MB, free: 31.51 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002605/0.2004, allocations: 5.634 MB / 476.3 MB, free: 29.6 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.2004, allocations: 0 / 476.3 MB, free: 29.6 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.505e-06/0.2004, allocations: 0 / 476.3 MB, free: 29.6 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.473e-05/0.2004, allocations: 0 / 476.3 MB, free: 29.6 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.004353/0.2048, allocations: 3.835 MB / 480.1 MB, free: 27.43 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.183e-05/0.2048, allocations: 16.19 kB / 480.1 MB, free: 27.42 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000447/0.2053, allocations: 0.5441 MB / 480.7 MB, free: 27.14 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03944/0.2447, allocations: 7.154 MB / 487.8 MB, free: 26.58 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004384/0.2491, allocations: 2.175 MB / 490 MB, free: 25.5 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.614e-05/0.2492, allocations: 160.1 kB / 490.1 MB, free: 25.42 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003109/0.2495, allocations: 218.7 kB / 490.4 MB, free: 25.34 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007457/0.257, allocations: 7.396 MB / 497.7 MB, free: 21.41 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.043e-05/0.257, allocations: 47.14 kB / 497.8 MB, free: 21.38 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002013/0.2572, allocations: 102.1 kB / 497.9 MB, free: 21.31 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001437/0.2587, allocations: 1.554 MB / 499.4 MB, free: 20.69 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005791/0.2644, allocations: 6.168 MB / 0.4938 GB, free: 16.77 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01688/0.2813, allocations: 28.93 MB / 0.522 GB, free: 2.941 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002463/0.2838, allocations: 1.689 MB / 0.5237 GB, free: 1.223 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000832/0.2846, allocations: 0.9847 MB / 0.5246 GB, free: 232 kB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001748/0.2848, allocations: 96.22 kB / 0.5247 GB, free: 136 kB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.957e-05/0.2848, allocations: 47 kB / 0.5248 GB, free: 80 kB / 426.7 MB Notification: Performance of pre-optimization done (n=108): time 3.476e-06/0.2848, allocations: 0 / 0.5248 GB, free: 80 kB / 426.7 MB Notification: Performance of matching and sorting (n=132): time 0.01903/0.3039, allocations: 11.31 MB / 0.5358 GB, free: 4.703 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.548e-05/0.304, allocations: 192.6 kB / 0.536 GB, free: 4.473 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003464/0.3074, allocations: 4.002 MB / 0.5399 GB, free: 480 kB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.678e-05/0.3075, allocations: 53.64 kB / 0.54 GB, free: 420 kB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001402/0.3089, allocations: 2.636 MB / 0.5425 GB, free: 13.75 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003077/0.3092, allocations: 0.5467 MB / 0.5431 GB, free: 13.2 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008207/0.31, allocations: 1.029 MB / 0.5441 GB, free: 12.16 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 6.795e-05/0.3101, allocations: 309.1 kB / 0.5444 GB, free: 11.85 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001504/0.3116, allocations: 1.626 MB / 0.5459 GB, free: 10.22 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003229/0.3148, allocations: 5.016 MB / 0.5508 GB, free: 3.504 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005535/0.3204, allocations: 7.169 MB / 0.5578 GB, free: 10.68 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.029e-05/0.3204, allocations: 36 kB / 0.5579 GB, free: 10.64 MB / 474.7 MB Notification: Performance of matching and sorting (n=675) (initialization): time 0.006792/0.3272, allocations: 6.573 MB / 0.5643 GB, free: 4.062 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.612e-05/0.3272, allocations: 56 kB / 0.5644 GB, free: 4.008 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.088e-05/0.3273, allocations: 119.9 kB / 0.5645 GB, free: 3.891 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005704/0.3279, allocations: 401.2 kB / 0.5649 GB, free: 3.496 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001897/0.3298, allocations: 1.181 MB / 0.566 GB, free: 2.312 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002606/0.3324, allocations: 3.248 MB / 0.5692 GB, free: 14.95 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002094/0.3345, allocations: 311.6 kB / 0.5695 GB, free: 14.65 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002467/0.3347, allocations: 328 kB / 0.5698 GB, free: 14.33 MB / 490.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 (640): * Single equations (assignments): 636 * 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.0017/0.3364, allocations: 1.703 MB / 0.5715 GB, free: 12.61 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002679/0.3367, allocations: 317.8 kB / 0.5718 GB, free: 12.3 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001911/0.3386, allocations: 1.714 MB / 0.5734 GB, free: 10.57 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.549e-05/0.3386, allocations: 15.98 kB / 0.5734 GB, free: 10.56 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.3386, allocations: 4 kB / 0.5734 GB, free: 10.55 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.528e-06/0.3386, allocations: 7.969 kB / 0.5735 GB, free: 10.55 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005193/0.3438, allocations: 5.01 MB / 0.5783 GB, free: 5.473 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/0.3438, allocations: 0 / 0.5783 GB, free: 5.473 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004815/0.3443, allocations: 195.7 kB / 0.5785 GB, free: 5.281 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003883/0.3447, allocations: 233 kB / 0.5788 GB, free: 5.051 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.798e-05/0.3448, allocations: 29.11 kB / 0.5788 GB, free: 5.023 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002144/0.3469, allocations: 2.615 MB / 0.5813 GB, free: 2.293 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.063e-06/0.3469, allocations: 1.125 kB / 0.5813 GB, free: 2.293 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003073/0.35, allocations: 3.732 MB / 0.585 GB, free: 14.52 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003106/0.3503, allocations: 313.8 kB / 0.5853 GB, free: 14.21 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001729/0.3505, allocations: 24 kB / 0.5853 GB, free: 14.18 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006254/0.3511, allocations: 99.83 kB / 0.5854 GB, free: 14.09 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000112/0.3512, allocations: 76.41 kB / 0.5855 GB, free: 14.01 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.636e-05/0.3513, allocations: 43.97 kB / 0.5855 GB, free: 13.97 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002284/0.3535, allocations: 2.397 MB / 0.5879 GB, free: 11.58 MB / 0.4948 GB Notification: Performance of sort global known variables: time 9e-08/0.3535, allocations: 0 / 0.5879 GB, free: 11.58 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.002327/0.3559, allocations: 0.8632 MB / 0.5887 GB, free: 10.72 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.003501/0.3594, allocations: 4.37 MB / 0.593 GB, free: 6.312 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.003727/0.3631, allocations: 3.791 MB / 0.5967 GB, free: 2.535 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.3631, allocations: 0 / 0.5967 GB, free: 2.535 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0008217/0.3639, allocations: 0.9938 MB / 0.5976 GB, free: 1.531 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001177/0.3651, allocations: 372.4 kB / 0.598 GB, free: 1.172 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03321/0.3983, allocations: 36.98 MB / 0.6341 GB, free: 7.156 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001638/0.4, allocations: 2.073 MB / 0.6361 GB, free: 5.047 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.002248/0.4022, allocations: 1.706 MB / 0.6378 GB, free: 3.336 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001178/0.4034, allocations: 1.414 MB / 0.6392 GB, free: 1.922 MB / 0.5417 GB Notification: Performance of SimCode: time 2.044e-06/0.4034, allocations: 0 / 0.6392 GB, free: 1.922 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2335/0.6368, allocations: 55.15 MB / 0.693 GB, free: 155.3 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.304/9.941, allocations: 7.094 kB / 0.693 GB, free: 155.3 MB / 0.5417 GB " [Timeout remaining time 650] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_MultiBody_Sensors_Distance_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 52.5] 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: 12.078460489399731]