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.00124/0.00124, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 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.001366/0.001366, allocations: 206.9 kB / 23.72 MB, free: 4.391 MB / 14.72 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 1.417/1.417, allocations: 230.6 MB / 257.5 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] 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.2357/0.2357, allocations: 46.96 MB / 360.9 MB, free: 4.051 MB / 286.1 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 0.001995/0.001995, allocations: 71.89 kB / 0.4961 GB, free: 7.738 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3458/0.3478, allocations: 66.03 MB / 0.5606 GB, free: 4.262 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01108/0.3589, allocations: 7.919 MB / 0.5683 GB, free: 12.3 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.007389/0.3663, allocations: 3.361 MB / 0.5716 GB, free: 8.93 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001429/0.3677, allocations: 55.75 kB / 0.5717 GB, free: 8.875 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003713/0.3714, allocations: 1.631 MB / 0.5733 GB, free: 7.238 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004879/0.3763, allocations: 1.588 MB / 0.5748 GB, free: 5.645 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001643/0.3779, allocations: 0.5536 MB / 0.5753 GB, free: 5.09 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005848/0.3838, allocations: 3.583 MB / 0.5788 GB, free: 1.504 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002966/0.3868, allocations: 1.809 MB / 0.5806 GB, free: 15.64 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002703/0.3895, allocations: 1.117 MB / 0.5817 GB, free: 14.52 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003306/0.3928, allocations: 1.588 MB / 0.5832 GB, free: 12.92 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006853/0.3934, allocations: 223.9 kB / 0.5835 GB, free: 12.7 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00231/0.3958, allocations: 1.006 MB / 0.5844 GB, free: 11.7 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00175/0.3975, allocations: 1.453 MB / 0.5859 GB, free: 10.24 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001838/0.3993, allocations: 1.246 MB / 0.5871 GB, free: 8.984 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007208/0.4066, allocations: 5.587 MB / 0.5925 GB, free: 3.375 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.4066, allocations: 0 / 0.5925 GB, free: 3.375 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.845e-06/0.4066, allocations: 0 / 0.5925 GB, free: 3.375 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001419/0.4067, allocations: 0 / 0.5925 GB, free: 3.375 MB / 430.1 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.009475/0.4162, allocations: 3.814 MB / 0.5963 GB, free: 15.5 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.643e-05/0.4162, allocations: 8.031 kB / 0.5963 GB, free: 15.5 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009014/0.4171, allocations: 0.5384 MB / 0.5968 GB, free: 14.95 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08694/0.5041, allocations: 6.943 MB / 0.6036 GB, free: 7.992 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007089/0.5112, allocations: 2.349 MB / 0.6059 GB, free: 5.605 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001591/0.5113, allocations: 160.5 kB / 0.606 GB, free: 5.445 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006826/0.512, allocations: 219.8 kB / 0.6062 GB, free: 5.23 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01227/0.5243, allocations: 7.39 MB / 0.6134 GB, free: 13.2 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.958e-05/0.5244, allocations: 35.7 kB / 0.6135 GB, free: 13.16 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003127/0.5247, allocations: 119.9 kB / 0.6136 GB, free: 13.05 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002766/0.5275, allocations: 1.539 MB / 0.6151 GB, free: 11.5 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01196/0.5394, allocations: 6.166 MB / 0.6211 GB, free: 5.328 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03777/0.5772, allocations: 28.74 MB / 0.6492 GB, free: 7.664 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004565/0.5817, allocations: 1.638 MB / 0.6508 GB, free: 5.988 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001593/0.5833, allocations: 0.9912 MB / 0.6518 GB, free: 4.988 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000321/0.5837, allocations: 84.44 kB / 0.6518 GB, free: 4.906 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.228e-05/0.5837, allocations: 50.88 kB / 0.6519 GB, free: 4.848 MB / 494.1 MB Notification: Performance of pre-optimization done (n=108): time 4.438e-06/0.5837, allocations: 0 / 0.6519 GB, free: 4.848 MB / 494.1 MB Notification: Performance of matching and sorting (n=132): time 0.03415/0.6179, allocations: 10.94 MB / 0.6626 GB, free: 9.832 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001317/0.618, allocations: 196.6 kB / 0.6628 GB, free: 9.598 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005374/0.6234, allocations: 3.819 MB / 0.6665 GB, free: 5.777 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002422/0.6236, allocations: 41.7 kB / 0.6665 GB, free: 5.73 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.00224/0.6259, allocations: 2.671 MB / 0.6691 GB, free: 3.031 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006915/0.6265, allocations: 0.5467 MB / 0.6697 GB, free: 2.48 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001427/0.628, allocations: 1.056 MB / 0.6707 GB, free: 1.414 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001379/0.6281, allocations: 305.1 kB / 0.671 GB, free: 1.113 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002685/0.6308, allocations: 1.63 MB / 0.6726 GB, free: 15.47 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005933/0.6367, allocations: 5.016 MB / 0.6775 GB, free: 8.758 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01079/0.6475, allocations: 7.168 MB / 0.6845 GB, free: 15.93 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001591/0.6477, allocations: 36 kB / 0.6845 GB, free: 15.9 MB / 0.5294 GB Notification: Performance of matching and sorting (n=675) (initialization): time 0.01301/0.6607, allocations: 6.568 MB / 0.6909 GB, free: 9.32 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001259/0.6608, allocations: 58.34 kB / 0.691 GB, free: 9.266 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002511/0.6611, allocations: 120 kB / 0.6911 GB, free: 9.148 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001179/0.6622, allocations: 404.7 kB / 0.6915 GB, free: 8.75 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004151/0.6664, allocations: 1.189 MB / 0.6927 GB, free: 7.559 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004206/0.6706, allocations: 3.178 MB / 0.6958 GB, free: 4.266 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003733/0.6743, allocations: 283.6 kB / 0.696 GB, free: 3.988 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007641/0.6751, allocations: 331.9 kB / 0.6963 GB, free: 3.668 MB / 0.5294 GB 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.002908/0.678, allocations: 1.708 MB / 0.698 GB, free: 1.949 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006955/0.6787, allocations: 317.8 kB / 0.6983 GB, free: 1.637 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003355/0.6821, allocations: 1.706 MB / 0.7 GB, free: 15.92 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.98e-05/0.6821, allocations: 16 kB / 0.7 GB, free: 15.9 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.749e-05/0.6821, allocations: 11.94 kB / 0.7 GB, free: 15.89 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.502e-05/0.6821, allocations: 7.969 kB / 0.7 GB, free: 15.88 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0102/0.6923, allocations: 4.917 MB / 0.7048 GB, free: 10.89 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-05/0.6923, allocations: 4 kB / 0.7048 GB, free: 10.89 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001037/0.6934, allocations: 199.7 kB / 0.705 GB, free: 10.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007244/0.6941, allocations: 224.7 kB / 0.7052 GB, free: 10.47 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001004/0.6942, allocations: 23.98 kB / 0.7052 GB, free: 10.45 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003185/0.6974, allocations: 2.572 MB / 0.7078 GB, free: 7.762 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.6974, allocations: 7.969 kB / 0.7078 GB, free: 7.754 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005758/0.7031, allocations: 3.721 MB / 0.7114 GB, free: 4.004 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009985/0.7041, allocations: 297.7 kB / 0.7117 GB, free: 3.711 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003585/0.7045, allocations: 24.12 kB / 0.7117 GB, free: 3.688 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001121/0.7056, allocations: 68.19 kB / 0.7118 GB, free: 3.621 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001876/0.7058, allocations: 80.39 kB / 0.7118 GB, free: 3.543 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.825e-05/0.7059, allocations: 32 kB / 0.7119 GB, free: 3.512 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003654/0.7096, allocations: 2.269 MB / 0.7141 GB, free: 1.254 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.8e-07/0.7096, allocations: 0 / 0.7141 GB, free: 1.254 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004035/0.7136, allocations: 0.7655 MB / 0.7148 GB, free: 500 kB / 0.545 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.006337/0.7199, allocations: 4.351 MB / 0.7191 GB, free: 12.09 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0067/0.7266, allocations: 3.791 MB / 0.7228 GB, free: 8.316 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.611e-06/0.7266, allocations: 0 / 0.7228 GB, free: 8.316 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001616/0.7283, allocations: 0.9969 MB / 0.7238 GB, free: 7.305 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002266/0.7305, allocations: 359.9 kB / 0.7241 GB, free: 6.949 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3347/1.065, allocations: 36.6 MB / 0.7599 GB, free: 132.5 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002202/1.067, allocations: 2.079 MB / 0.7619 GB, free: 130.4 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003238/1.071, allocations: 1.694 MB / 0.7635 GB, free: 128.8 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001476/1.072, allocations: 1.409 MB / 0.7649 GB, free: 127.4 MB / 0.5606 GB Notification: Performance of SimCode: time 1.052e-06/1.072, allocations: 6.516 kB / 0.7649 GB, free: 127.4 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08915/1.161, allocations: 53.62 MB / 0.8173 GB, free: 74.52 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.71/16.87, allocations: 7.188 kB / 0.8173 GB, free: 74.52 MB / 0.5606 GB " [Timeout remaining time 643] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins1/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: 20.14176207734272]