Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.0007968/0.0007968, allocations: 80.48 kB / 19.92 MB, free: 4.633 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.0007782/0.0007782, allocations: 169.9 kB / 23.21 MB, free: 1.352 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8746/0.8746, allocations: 158.6 MB / 185 MB, free: 3.031 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1367/0.1367, allocations: 32.37 MB / 269.6 MB, free: 14.96 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.723e-06/1.723e-06, allocations: 0 / 406.8 MB, free: 2.254 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.188e-05/2.36e-05, allocations: 6.281 kB / 406.8 MB, free: 2.246 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.007749/0.007773, allocations: 8.342 MB / 415.2 MB, free: 9.863 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.006033/0.01381, allocations: 3.431 MB / 418.6 MB, free: 6.422 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001588/0.01539, allocations: 63.69 kB / 418.7 MB, free: 6.359 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002276/0.01767, allocations: 1.728 MB / 420.4 MB, free: 4.625 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003574/0.02124, allocations: 1.746 MB / 422.1 MB, free: 2.871 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009718/0.02222, allocations: 0.6001 MB / 422.7 MB, free: 2.27 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.003694/0.02591, allocations: 3.875 MB / 426.6 MB, free: 14.38 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002502/0.02841, allocations: 2.16 MB / 428.8 MB, free: 12.17 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00306/0.03147, allocations: 1.781 MB / 430.6 MB, free: 10.39 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002274/0.03375, allocations: 1.804 MB / 432.4 MB, free: 8.578 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006413/0.03439, allocations: 243.9 kB / 432.6 MB, free: 8.34 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001525/0.03591, allocations: 1.08 MB / 433.7 MB, free: 7.258 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001217/0.03713, allocations: 1.624 MB / 435.3 MB, free: 5.629 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001284/0.03841, allocations: 1.047 MB / 436.4 MB, free: 4.578 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005272/0.04369, allocations: 6.032 MB / 442.4 MB, free: 14.53 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.04369, allocations: 0 / 442.4 MB, free: 14.53 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.914e-06/0.04369, allocations: 0 / 442.4 MB, free: 14.53 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001459/0.04384, allocations: 0 / 442.4 MB, free: 14.53 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1219 * Number of variables: 1219 Notification: Performance of Generate backend data structure: time 0.009928/0.05377, allocations: 4.041 MB / 446.4 MB, free: 10.43 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.828e-05/0.05382, allocations: 12.03 kB / 446.4 MB, free: 10.42 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008093/0.05463, allocations: 0.5716 MB / 447 MB, free: 9.836 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03697/0.0916, allocations: 7.22 MB / 454.2 MB, free: 2.605 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004376/0.09597, allocations: 2.419 MB / 456.6 MB, free: 144 kB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001215/0.0961, allocations: 172.7 kB / 456.8 MB, free: 15.96 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006288/0.09672, allocations: 228.2 kB / 457 MB, free: 15.74 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01024/0.107, allocations: 7.878 MB / 464.9 MB, free: 7.223 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.708e-05/0.107, allocations: 31.75 kB / 464.9 MB, free: 7.191 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003034/0.1073, allocations: 115.9 kB / 465.1 MB, free: 7.078 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001633/0.109, allocations: 1.664 MB / 466.7 MB, free: 5.406 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1923/0.3013, allocations: 6.596 MB / 473.3 MB, free: 93.69 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02218/0.3235, allocations: 30.15 MB / 0.4917 GB, free: 72.13 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002568/0.3261, allocations: 1.81 MB / 0.4934 GB, free: 71.57 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000775/0.3268, allocations: 1.03 MB / 0.4944 GB, free: 71.16 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001796/0.327, allocations: 85.94 kB / 0.4945 GB, free: 71.15 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.726e-05/0.327, allocations: 49.34 kB / 0.4946 GB, free: 71.1 MB / 442.7 MB Notification: Performance of pre-optimization done (n=117): time 3.937e-06/0.327, allocations: 0.9375 kB / 0.4946 GB, free: 71.1 MB / 442.7 MB Notification: Performance of matching and sorting (n=141): time 0.01949/0.3465, allocations: 11.89 MB / 0.5062 GB, free: 66.84 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.982e-05/0.3466, allocations: 192.8 kB / 0.5064 GB, free: 66.62 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004274/0.3509, allocations: 4.175 MB / 0.5104 GB, free: 65.15 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001844/0.3511, allocations: 46.33 kB / 0.5105 GB, free: 65.11 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001213/0.3523, allocations: 2.769 MB / 0.5132 GB, free: 62.92 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005198/0.3528, allocations: 0.5796 MB / 0.5138 GB, free: 62.5 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001029/0.3538, allocations: 1.07 MB / 0.5148 GB, free: 61.96 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 3.294e-05/0.3539, allocations: 305.1 kB / 0.5151 GB, free: 61.66 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001889/0.3558, allocations: 1.701 MB / 0.5168 GB, free: 61.12 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00278/0.3585, allocations: 5.179 MB / 0.5218 GB, free: 55.85 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004797/0.3633, allocations: 7.432 MB / 0.5291 GB, free: 49.39 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.223e-05/0.3634, allocations: 38.38 kB / 0.5291 GB, free: 49.39 MB / 442.7 MB Notification: Performance of matching and sorting (n=700) (initialization): time 0.007401/0.3708, allocations: 6.812 MB / 0.5358 GB, free: 44.31 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.57e-05/0.3708, allocations: 59.94 kB / 0.5358 GB, free: 44.25 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.28e-05/0.3709, allocations: 120 kB / 0.5359 GB, free: 44.13 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005659/0.3715, allocations: 402.7 kB / 0.5363 GB, free: 43.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001868/0.3734, allocations: 1.246 MB / 0.5375 GB, free: 42.71 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002163/0.3755, allocations: 3.255 MB / 0.5407 GB, free: 39.66 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002933/0.3785, allocations: 328.6 kB / 0.541 GB, free: 39.38 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002544/0.3787, allocations: 336.2 kB / 0.5413 GB, free: 39.05 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * Number of states: 0 () * Number of discrete variables: 27 (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 (665): * Single equations (assignments): 661 * 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.001634/0.3804, allocations: 1.78 MB / 0.5431 GB, free: 37.48 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004361/0.3808, allocations: 331.2 kB / 0.5434 GB, free: 37.15 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001722/0.3825, allocations: 1.85 MB / 0.5452 GB, free: 35.38 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.547e-05/0.3825, allocations: 16 kB / 0.5452 GB, free: 35.37 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.652e-05/0.3826, allocations: 4 kB / 0.5452 GB, free: 35.36 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.179e-05/0.3826, allocations: 3.984 kB / 0.5452 GB, free: 35.36 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005437/0.388, allocations: 5.33 MB / 0.5504 GB, free: 30 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.111e-06/0.388, allocations: 0 / 0.5504 GB, free: 30 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005348/0.3885, allocations: 215.8 kB / 0.5506 GB, free: 29.79 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003645/0.3889, allocations: 230.5 kB / 0.5509 GB, free: 29.56 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.869e-05/0.389, allocations: 27.94 kB / 0.5509 GB, free: 29.54 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001573/0.3905, allocations: 2.625 MB / 0.5534 GB, free: 26.8 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.3905, allocations: 3.938 kB / 0.5535 GB, free: 26.79 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003217/0.3938, allocations: 3.913 MB / 0.5573 GB, free: 22.85 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001053/0.3948, allocations: 0.5132 MB / 0.5578 GB, free: 22.34 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002747/0.3951, allocations: 23.98 kB / 0.5578 GB, free: 22.31 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007808/0.3959, allocations: 108.7 kB / 0.5579 GB, free: 22.21 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001287/0.396, allocations: 80.52 kB / 0.558 GB, free: 22.13 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.483e-05/0.3961, allocations: 43.92 kB / 0.558 GB, free: 22.09 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00235/0.3984, allocations: 2.518 MB / 0.5605 GB, free: 19.58 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.3984, allocations: 0 / 0.5605 GB, free: 19.58 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004181/0.4026, allocations: 0.91 MB / 0.5614 GB, free: 18.67 MB / 442.7 MB 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 (112): * Single equations (assignments): 108 * 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.004479/0.4071, allocations: 4.561 MB / 0.5658 GB, free: 14.08 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005166/0.4122, allocations: 3.961 MB / 0.5697 GB, free: 10.14 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/0.4122, allocations: 4.25 kB / 0.5697 GB, free: 10.13 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001094/0.4133, allocations: 1.056 MB / 0.5707 GB, free: 9.062 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0025/0.4158, allocations: 386.2 kB / 0.5711 GB, free: 8.695 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04876/0.4646, allocations: 38.76 MB / 0.6089 GB, free: 12.74 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002568/0.4672, allocations: 2.204 MB / 0.6111 GB, free: 10.5 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.002783/0.4699, allocations: 1.759 MB / 0.6128 GB, free: 8.742 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001737/0.4717, allocations: 1.52 MB / 0.6143 GB, free: 7.223 MB / 490.7 MB Notification: Performance of SimCode: time 2.274e-06/0.4717, allocations: 3.938 kB / 0.6143 GB, free: 7.219 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2423/0.714, allocations: 57.63 MB / 0.6706 GB, free: 151.2 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.281/9.995, allocations: 3.75 kB / 0.6706 GB, free: 151.2 MB / 0.5105 GB " [Timeout remaining time 650] (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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.2752247992903]