Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.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.001009/0.001009, 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.001033/0.001033, allocations: 170.3 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.9014/0.9014, allocations: 158.6 MB / 185 MB, free: 3.062 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.1377/0.1377, allocations: 32.37 MB / 269.6 MB, free: 14.97 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.Distance2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.403e-06/1.403e-06, allocations: 0 / 406.8 MB, free: 2.254 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.217e-05/2.358e-05, allocations: 2.281 kB / 406.8 MB, free: 2.25 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.007516/0.00754, allocations: 8.848 MB / 415.7 MB, free: 9.355 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.006164/0.0137, allocations: 3.524 MB / 419.2 MB, free: 5.82 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001353/0.01506, allocations: 59.75 kB / 419.3 MB, free: 5.762 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002346/0.0174, allocations: 2.012 MB / 421.3 MB, free: 3.742 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003679/0.02108, allocations: 1.843 MB / 423.1 MB, free: 1.891 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001348/0.02243, allocations: 0.6157 MB / 423.7 MB, free: 1.273 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.004769/0.0272, allocations: 4.109 MB / 427.8 MB, free: 13.15 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002697/0.0299, allocations: 2.404 MB / 430.2 MB, free: 10.69 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002856/0.03275, allocations: 1.964 MB / 432.2 MB, free: 8.723 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001803/0.03455, allocations: 1.995 MB / 434.2 MB, free: 6.723 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003535/0.03491, allocations: 280 kB / 434.5 MB, free: 6.449 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001376/0.03628, allocations: 1.112 MB / 435.6 MB, free: 5.336 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001121/0.0374, allocations: 1.811 MB / 437.4 MB, free: 3.52 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001592/0.039, allocations: 1.168 MB / 438.6 MB, free: 2.348 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00524/0.04424, allocations: 6.674 MB / 445.2 MB, free: 11.65 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.04424, allocations: 0 / 445.2 MB, free: 11.65 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.04424, allocations: 0 / 445.2 MB, free: 11.65 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001097/0.04435, allocations: 0 / 445.2 MB, free: 11.65 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: 1367 * Number of variables: 1367 Notification: Performance of Generate backend data structure: time 0.006938/0.05129, allocations: 4.405 MB / 449.6 MB, free: 7.188 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.453e-05/0.05134, allocations: 8.031 kB / 449.7 MB, free: 7.18 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007211/0.05206, allocations: 0.6456 MB / 450.3 MB, free: 6.523 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03826/0.09031, allocations: 7.29 MB / 457.6 MB, free: 15.22 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005009/0.09532, allocations: 2.532 MB / 460.1 MB, free: 12.64 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001559/0.09548, allocations: 197.3 kB / 460.3 MB, free: 12.45 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008136/0.09629, allocations: 272.1 kB / 460.6 MB, free: 12.18 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01014/0.1064, allocations: 8.733 MB / 469.3 MB, free: 2.789 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.916e-05/0.1065, allocations: 39.7 kB / 469.4 MB, free: 2.75 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002567/0.1068, allocations: 123.9 kB / 469.5 MB, free: 2.629 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001836/0.1086, allocations: 1.84 MB / 471.3 MB, free: 0.7852 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.197/0.3056, allocations: 7.287 MB / 478.6 MB, free: 92.61 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02521/0.3308, allocations: 32.71 MB / 0.4993 GB, free: 68.99 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002824/0.3336, allocations: 2.034 MB / 0.5013 GB, free: 68.37 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001096/0.3347, allocations: 1.034 MB / 0.5023 GB, free: 67.96 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000189/0.3349, allocations: 98.02 kB / 0.5024 GB, free: 67.94 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.626e-05/0.3349, allocations: 49.62 kB / 0.5025 GB, free: 67.89 MB / 442.7 MB Notification: Performance of pre-optimization done (n=119): time 4.91e-06/0.3349, allocations: 0.9375 kB / 0.5025 GB, free: 67.89 MB / 442.7 MB Notification: Performance of matching and sorting (n=133): time 0.01453/0.3495, allocations: 9.483 MB / 0.5117 GB, free: 64.02 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.489e-05/0.3495, allocations: 193 kB / 0.5119 GB, free: 63.8 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005425/0.355, allocations: 4.431 MB / 0.5162 GB, free: 62.25 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002636/0.3552, allocations: 45.34 kB / 0.5163 GB, free: 62.2 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001315/0.3565, allocations: 3.053 MB / 0.5193 GB, free: 59.79 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006102/0.3572, allocations: 0.5573 MB / 0.5198 GB, free: 59.4 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001019/0.3582, allocations: 1.158 MB / 0.5209 GB, free: 58.81 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 3.133e-05/0.3582, allocations: 312.1 kB / 0.5212 GB, free: 58.51 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001695/0.3599, allocations: 1.698 MB / 0.5229 GB, free: 57.98 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002626/0.3625, allocations: 5.564 MB / 0.5283 GB, free: 52.03 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004988/0.3675, allocations: 7.852 MB / 0.536 GB, free: 42.73 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.418e-05/0.3676, allocations: 40 kB / 0.536 GB, free: 42.7 MB / 442.7 MB Notification: Performance of matching and sorting (n=751) (initialization): time 0.008175/0.3758, allocations: 7.114 MB / 0.543 GB, free: 36.38 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.114e-05/0.3758, allocations: 64 kB / 0.543 GB, free: 36.32 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.415e-05/0.3759, allocations: 136 kB / 0.5432 GB, free: 36.19 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005584/0.3765, allocations: 416.9 kB / 0.5436 GB, free: 35.84 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002112/0.3786, allocations: 1.325 MB / 0.5449 GB, free: 34.67 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00216/0.3808, allocations: 3.284 MB / 0.5481 GB, free: 31.35 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003321/0.3841, allocations: 351.2 kB / 0.5484 GB, free: 31.01 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003665/0.3844, allocations: 368 kB / 0.5488 GB, free: 30.65 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 619 * Number of states: 0 () * Number of discrete variables: 31 (LessEqualThreshold1.y,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[1],distance1.arrowColor[3],distance1.arrowColor[2],distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.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 (716): * Single equations (assignments): 712 * 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.00191/0.3864, allocations: 1.939 MB / 0.5506 GB, free: 28.7 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005998/0.387, allocations: 345.7 kB / 0.551 GB, free: 28.36 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001622/0.3886, allocations: 1.695 MB / 0.5526 GB, free: 26.64 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.506e-05/0.3886, allocations: 20 kB / 0.5526 GB, free: 26.62 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.015e-05/0.3886, allocations: 4 kB / 0.5527 GB, free: 26.62 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.027e-05/0.3886, allocations: 11.95 kB / 0.5527 GB, free: 26.61 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005317/0.3939, allocations: 5.265 MB / 0.5578 GB, free: 21.3 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.462e-06/0.3939, allocations: 3.984 kB / 0.5578 GB, free: 21.3 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004284/0.3944, allocations: 187.7 kB / 0.558 GB, free: 21.11 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00035/0.3947, allocations: 228.5 kB / 0.5582 GB, free: 20.89 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.872e-05/0.3948, allocations: 24 kB / 0.5582 GB, free: 20.87 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001541/0.3963, allocations: 2.635 MB / 0.5608 GB, free: 18.12 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.3963, allocations: 4 kB / 0.5608 GB, free: 18.11 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002969/0.3993, allocations: 3.551 MB / 0.5643 GB, free: 14.52 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001064/0.4003, allocations: 0.4975 MB / 0.5648 GB, free: 14.02 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002041/0.4005, allocations: 27.94 kB / 0.5648 GB, free: 13.99 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006777/0.4012, allocations: 95.3 kB / 0.5649 GB, free: 13.9 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001342/0.4014, allocations: 70.03 kB / 0.5649 GB, free: 13.83 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.936e-05/0.4014, allocations: 39.98 kB / 0.565 GB, free: 13.79 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00235/0.4038, allocations: 2.653 MB / 0.5676 GB, free: 11.16 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4038, allocations: 3.938 kB / 0.5676 GB, free: 11.16 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003776/0.4075, allocations: 0.953 MB / 0.5685 GB, free: 10.2 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (Revolute1.phi,Revolute1.w) * Number of discrete variables: 1 (LessEqualThreshold1.y) * 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.003106/0.4106, allocations: 4.211 MB / 0.5726 GB, free: 5.949 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004466/0.4151, allocations: 3.966 MB / 0.5765 GB, free: 2 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.932e-06/0.4151, allocations: 4 kB / 0.5765 GB, free: 1.996 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008157/0.4159, allocations: 0.9414 MB / 0.5774 GB, free: 1.047 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002041/0.418, allocations: 405.1 kB / 0.5778 GB, free: 0.6641 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0488/0.4668, allocations: 40.88 MB / 0.6177 GB, free: 1.93 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002459/0.4692, allocations: 2.401 MB / 0.6201 GB, free: 15.5 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.002722/0.4719, allocations: 1.826 MB / 0.6219 GB, free: 13.67 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001803/0.4737, allocations: 1.66 MB / 0.6235 GB, free: 12 MB / 0.4948 GB Notification: Performance of SimCode: time 1.723e-06/0.4738, allocations: 4 kB / 0.6235 GB, free: 12 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2336/0.7073, allocations: 59.81 MB / 0.6819 GB, free: 157.2 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.221/9.929, allocations: 4.844 kB / 0.6819 GB, free: 157.2 MB / 0.5105 GB " [Timeout remaining time 650] (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2_fmu --startTime=0 --stopTime=0.5 --stepSize=9.996e-05 --timeout=50 --tolerance=1e-10 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.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.203857971355319]