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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001311/0.001311, allocations: 119.6 kB / 17.13 MB, free: 5.926 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001348/0.001348, allocations: 191.7 kB / 20.07 MB, free: 2.992 MB / 14.72 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 1.473/1.473, allocations: 207.6 MB / 230.5 MB, free: 4.031 MB / 174.1 MB " [Timeout remaining time 178] 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.3245/0.3245, allocations: 44.23 MB / 326.5 MB, free: 6.793 MB / 254.1 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002967/0.002967, allocations: 71.89 kB / 462.2 MB, free: 0.9297 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3428/0.3458, allocations: 61 MB / 0.5109 GB, free: 13.44 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.00805/0.3538, allocations: 9.477 MB / 0.5202 GB, free: 5.629 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005854/0.3597, allocations: 3.612 MB / 0.5237 GB, free: 2.008 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001247/0.3609, allocations: 55.75 kB / 0.5237 GB, free: 1.953 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00248/0.3634, allocations: 1.717 MB / 0.5254 GB, free: 236 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003822/0.3672, allocations: 1.681 MB / 0.5271 GB, free: 14.54 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001335/0.3685, allocations: 0.5536 MB / 0.5276 GB, free: 13.98 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005097/0.3736, allocations: 3.519 MB / 0.531 GB, free: 10.46 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002788/0.3764, allocations: 1.927 MB / 0.5329 GB, free: 8.484 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001981/0.3784, allocations: 1.16 MB / 0.534 GB, free: 7.32 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002664/0.3811, allocations: 1.779 MB / 0.5358 GB, free: 5.535 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006162/0.3817, allocations: 243.9 kB / 0.536 GB, free: 5.297 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002169/0.3839, allocations: 1.155 MB / 0.5371 GB, free: 4.141 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001743/0.3856, allocations: 1.55 MB / 0.5387 GB, free: 2.586 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002191/0.3878, allocations: 1.814 MB / 0.5404 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009254/0.397, allocations: 5.964 MB / 0.5462 GB, free: 10.78 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.397, allocations: 0 / 0.5462 GB, free: 10.78 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.397, allocations: 0 / 0.5462 GB, free: 10.78 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001849/0.3972, allocations: 0 / 0.5462 GB, free: 10.78 MB / 414.1 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.0113/0.4085, allocations: 4.096 MB / 0.5502 GB, free: 6.605 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.655e-05/0.4086, allocations: 11.89 kB / 0.5503 GB, free: 6.594 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001046/0.4096, allocations: 0.5794 MB / 0.5508 GB, free: 6.004 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08031/0.4899, allocations: 6.993 MB / 0.5577 GB, free: 15 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007792/0.4977, allocations: 2.733 MB / 0.5603 GB, free: 12.2 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002/0.4979, allocations: 172.7 kB / 0.5605 GB, free: 12.03 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009486/0.4989, allocations: 235.8 kB / 0.5607 GB, free: 11.8 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01488/0.5138, allocations: 7.82 MB / 0.5684 GB, free: 3.348 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000114/0.5139, allocations: 47.62 kB / 0.5684 GB, free: 3.301 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003779/0.5142, allocations: 111.9 kB / 0.5685 GB, free: 3.191 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002793/0.517, allocations: 1.668 MB / 0.5701 GB, free: 1.52 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01325/0.5303, allocations: 6.625 MB / 0.5766 GB, free: 10.88 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0412/0.5715, allocations: 31.16 MB / 0.607 GB, free: 10.77 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004717/0.5762, allocations: 2.194 MB / 0.6092 GB, free: 8.43 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001568/0.5778, allocations: 1.032 MB / 0.6102 GB, free: 7.387 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004537/0.5782, allocations: 319.8 kB / 0.6105 GB, free: 7.02 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.22e-05/0.5783, allocations: 47.06 kB / 0.6105 GB, free: 6.965 MB / 478.1 MB Notification: Performance of pre-optimization done (n=117): time 4.268e-06/0.5783, allocations: 11.88 kB / 0.6105 GB, free: 6.953 MB / 478.1 MB Notification: Performance of matching and sorting (n=141): time 0.03491/0.6132, allocations: 11.57 MB / 0.6218 GB, free: 11.28 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001311/0.6133, allocations: 196.6 kB / 0.622 GB, free: 11.04 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005446/0.6188, allocations: 3.761 MB / 0.6257 GB, free: 7.289 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002576/0.619, allocations: 45.69 kB / 0.6257 GB, free: 7.238 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002313/0.6213, allocations: 2.796 MB / 0.6285 GB, free: 4.414 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007299/0.6221, allocations: 0.5816 MB / 0.629 GB, free: 3.828 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001493/0.6235, allocations: 1.099 MB / 0.6301 GB, free: 2.719 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001269/0.6237, allocations: 305.1 kB / 0.6304 GB, free: 2.418 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002724/0.6264, allocations: 1.697 MB / 0.6321 GB, free: 0.7148 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005752/0.6321, allocations: 5.13 MB / 0.6371 GB, free: 9.852 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01081/0.643, allocations: 7.43 MB / 0.6443 GB, free: 0.7109 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001066/0.6431, allocations: 40 kB / 0.6444 GB, free: 0.6719 MB / 0.4981 GB Notification: Performance of matching and sorting (n=700) (initialization): time 0.2639/0.907, allocations: 6.803 MB / 0.651 GB, free: 116.6 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 7.773e-05/0.9071, allocations: 58.97 kB / 0.6511 GB, free: 116.6 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001796/0.9072, allocations: 122 kB / 0.6512 GB, free: 116.6 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001271/0.9085, allocations: 400 kB / 0.6516 GB, free: 116.6 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004385/0.9129, allocations: 1.236 MB / 0.6528 GB, free: 116.4 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003534/0.9164, allocations: 3.335 MB / 0.656 GB, free: 114.3 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004218/0.9206, allocations: 299 kB / 0.6563 GB, free: 114.2 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008698/0.9215, allocations: 336.3 kB / 0.6566 GB, free: 114.1 MB / 0.4981 GB 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.002852/0.9244, allocations: 1.781 MB / 0.6584 GB, free: 113.4 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006171/0.925, allocations: 328.5 kB / 0.6587 GB, free: 113.4 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002801/0.9278, allocations: 1.858 MB / 0.6605 GB, free: 112.6 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.606e-05/0.9278, allocations: 14.84 kB / 0.6605 GB, free: 112.6 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.001e-05/0.9278, allocations: 3.812 kB / 0.6605 GB, free: 112.6 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.361e-05/0.9278, allocations: 7.5 kB / 0.6605 GB, free: 112.6 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008886/0.9367, allocations: 5.563 MB / 0.666 GB, free: 110.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.124e-05/0.9367, allocations: 3.125 kB / 0.666 GB, free: 110.5 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001003/0.9377, allocations: 214.3 kB / 0.6662 GB, free: 110.4 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006211/0.9384, allocations: 226.7 kB / 0.6664 GB, free: 110.4 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001148/0.9385, allocations: 27.73 kB / 0.6664 GB, free: 110.4 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002356/0.9408, allocations: 2.713 MB / 0.6691 GB, free: 108.4 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.9408, allocations: 0 / 0.6691 GB, free: 108.4 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004492/0.9453, allocations: 3.91 MB / 0.6729 GB, free: 105 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001441/0.9468, allocations: 0.5542 MB / 0.6734 GB, free: 104.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005767/0.9473, allocations: 23.94 kB / 0.6734 GB, free: 104.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001317/0.9487, allocations: 71.91 kB / 0.6735 GB, free: 104.4 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001946/0.9488, allocations: 76.5 kB / 0.6736 GB, free: 104.3 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.397e-05/0.9489, allocations: 43.98 kB / 0.6736 GB, free: 104.2 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003091/0.952, allocations: 2.35 MB / 0.6759 GB, free: 101.9 MB / 0.4981 GB Notification: Performance of sort global known variables: time 8e-08/0.952, allocations: 0 / 0.6759 GB, free: 101.9 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004094/0.9561, allocations: 0.8133 MB / 0.6767 GB, free: 101.1 MB / 0.4981 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 (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.004867/0.961, allocations: 4.536 MB / 0.6811 GB, free: 96.53 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.005832/0.9668, allocations: 3.966 MB / 0.685 GB, free: 92.57 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.911e-06/0.9668, allocations: 0 / 0.685 GB, free: 92.57 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001333/0.9682, allocations: 1.064 MB / 0.6861 GB, free: 91.5 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00212/0.9703, allocations: 378 kB / 0.6864 GB, free: 91.13 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04083/1.011, allocations: 38.15 MB / 0.7237 GB, free: 47.83 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002187/1.013, allocations: 2.757 MB / 0.7264 GB, free: 45.05 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.003387/1.017, allocations: 1.766 MB / 0.7281 GB, free: 43.29 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001712/1.018, allocations: 1.507 MB / 0.7296 GB, free: 41.78 MB / 0.4981 GB Notification: Performance of SimCode: time 1.512e-06/1.018, allocations: 0 / 0.7296 GB, free: 41.78 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09495/1.113, allocations: 55.94 MB / 0.7842 GB, free: 1.832 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.26/20.37, allocations: 7.938 kB / 0.7842 GB, free: 1.824 MB / 0.5137 GB " [Timeout remaining time 640] (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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 23.689771520905197]