Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_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.00143/0.00143, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.001522/0.001522, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.51/1.51, allocations: 230.6 MB / 254.1 MB, free: 15.1 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.2324/0.2324, allocations: 46.92 MB / 357.1 MB, free: 10.36 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.Distance2,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002123/0.002123, allocations: 67.89 kB / 0.4909 GB, free: 8.012 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.12/0.1221, allocations: 66 MB / 0.5554 GB, free: 5.891 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01167/0.1338, allocations: 9.081 MB / 0.5642 GB, free: 12.77 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.007784/0.1416, allocations: 3.59 MB / 0.5677 GB, free: 9.16 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001481/0.1431, allocations: 59.75 kB / 0.5678 GB, free: 9.102 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00446/0.1475, allocations: 1.939 MB / 0.5697 GB, free: 7.156 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004365/0.1519, allocations: 1.607 MB / 0.5713 GB, free: 5.543 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0015/0.1534, allocations: 0.5692 MB / 0.5718 GB, free: 4.973 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.005726/0.1591, allocations: 3.657 MB / 0.5754 GB, free: 1.309 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003392/0.1625, allocations: 2.07 MB / 0.5774 GB, free: 15.18 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002328/0.1648, allocations: 1.191 MB / 0.5786 GB, free: 13.99 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002971/0.1678, allocations: 1.772 MB / 0.5803 GB, free: 12.21 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007814/0.1686, allocations: 240 kB / 0.5805 GB, free: 11.98 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002445/0.171, allocations: 1.158 MB / 0.5817 GB, free: 10.82 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002043/0.1731, allocations: 1.546 MB / 0.5832 GB, free: 9.266 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002849/0.1759, allocations: 1.786 MB / 0.5849 GB, free: 7.469 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008487/0.1844, allocations: 5.872 MB / 0.5907 GB, free: 1.574 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.491e-06/0.1844, allocations: 0 / 0.5907 GB, free: 1.574 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1844, allocations: 0 / 0.5907 GB, free: 1.574 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001751/0.1846, allocations: 0 / 0.5907 GB, free: 1.574 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1211 * Number of variables: 1211 Notification: Performance of Generate backend data structure: time 0.2524/0.437, allocations: 4.059 MB / 0.5946 GB, free: 33.05 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.005e-05/0.4371, allocations: 9.25 kB / 0.5946 GB, free: 33.05 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001095/0.4381, allocations: 0.5761 MB / 0.5952 GB, free: 32.99 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09466/0.5328, allocations: 6.965 MB / 0.602 GB, free: 32.7 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007178/0.54, allocations: 2.466 MB / 0.6044 GB, free: 31.77 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002006/0.5402, allocations: 184.5 kB / 0.6046 GB, free: 31.71 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001145/0.5413, allocations: 235.6 kB / 0.6048 GB, free: 31.66 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01374/0.5551, allocations: 7.726 MB / 0.6123 GB, free: 27.15 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.971e-05/0.5552, allocations: 39.84 kB / 0.6124 GB, free: 27.12 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003313/0.5555, allocations: 115.2 kB / 0.6125 GB, free: 27.06 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002493/0.558, allocations: 1.584 MB / 0.614 GB, free: 26.44 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01032/0.5683, allocations: 6.466 MB / 0.6204 GB, free: 22.16 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03135/0.5997, allocations: 31.36 MB / 0.651 GB, free: 5.996 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005259/0.6049, allocations: 2.345 MB / 0.6533 GB, free: 3.508 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001585/0.6065, allocations: 0.9799 MB / 0.6542 GB, free: 2.516 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000427/0.6069, allocations: 323.1 kB / 0.6545 GB, free: 2.145 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.359e-05/0.607, allocations: 50.5 kB / 0.6546 GB, free: 2.086 MB / 462.1 MB Notification: Performance of pre-optimization done (n=104): time 3.867e-06/0.607, allocations: 0 / 0.6546 GB, free: 2.086 MB / 462.1 MB Notification: Performance of matching and sorting (n=118): time 0.02392/0.6309, allocations: 8.552 MB / 0.6629 GB, free: 9.445 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001355/0.631, allocations: 192.5 kB / 0.6631 GB, free: 9.215 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0056/0.6366, allocations: 3.766 MB / 0.6668 GB, free: 5.457 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001959/0.6368, allocations: 41.7 kB / 0.6668 GB, free: 5.41 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002318/0.6392, allocations: 2.826 MB / 0.6696 GB, free: 2.555 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000597/0.6398, allocations: 0.508 MB / 0.6701 GB, free: 2.043 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001516/0.6413, allocations: 1.092 MB / 0.6712 GB, free: 0.9414 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000125/0.6414, allocations: 308.9 kB / 0.6715 GB, free: 0.6406 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002613/0.644, allocations: 1.584 MB / 0.673 GB, free: 15.05 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005842/0.6499, allocations: 5.141 MB / 0.678 GB, free: 8.102 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009438/0.6593, allocations: 7.324 MB / 0.6852 GB, free: 15 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001093/0.6594, allocations: 40.81 kB / 0.6852 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of matching and sorting (n=698) (initialization): time 0.01348/0.6729, allocations: 6.646 MB / 0.6917 GB, free: 8.312 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001087/0.673, allocations: 66.17 kB / 0.6918 GB, free: 8.25 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001624/0.6731, allocations: 128 kB / 0.6919 GB, free: 8.125 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001063/0.6742, allocations: 401.2 kB / 0.6923 GB, free: 7.73 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003894/0.6781, allocations: 1.216 MB / 0.6935 GB, free: 6.512 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004356/0.6825, allocations: 3.341 MB / 0.6967 GB, free: 3.035 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003652/0.6861, allocations: 279.6 kB / 0.697 GB, free: 2.762 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006654/0.6868, allocations: 344 kB / 0.6973 GB, free: 2.426 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 577 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.twoHeadedArrow,distance2.arrow.headAtOrigin,distance1.arrow.twoHeadedArrow,distance1.arrow.headAtOrigin,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 (663): * Single equations (assignments): 659 * 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.002863/0.6896, allocations: 1.783 MB / 0.6991 GB, free: 0.6289 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006164/0.6903, allocations: 321.8 kB / 0.6994 GB, free: 320 kB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003105/0.6934, allocations: 1.459 MB / 0.7008 GB, free: 14.85 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.49e-05/0.6934, allocations: 16 kB / 0.7008 GB, free: 14.83 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.145e-05/0.6934, allocations: 11.94 kB / 0.7008 GB, free: 14.82 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.487e-05/0.6934, allocations: 3.984 kB / 0.7008 GB, free: 14.82 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009655/0.7031, allocations: 4.826 MB / 0.7055 GB, free: 9.922 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.404e-05/0.7031, allocations: 7.922 kB / 0.7055 GB, free: 9.914 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008744/0.704, allocations: 155.7 kB / 0.7057 GB, free: 9.762 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007664/0.7047, allocations: 229.8 kB / 0.7059 GB, free: 9.535 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001132/0.7048, allocations: 20 kB / 0.7059 GB, free: 9.516 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003413/0.7083, allocations: 2.704 MB / 0.7086 GB, free: 6.672 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.7083, allocations: 64 / 0.7086 GB, free: 6.672 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005281/0.7135, allocations: 3.298 MB / 0.7118 GB, free: 3.355 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009154/0.7145, allocations: 374.8 kB / 0.7121 GB, free: 2.969 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004865/0.7149, allocations: 20 kB / 0.7122 GB, free: 2.949 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001127/0.7161, allocations: 47.94 kB / 0.7122 GB, free: 2.902 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002097/0.7163, allocations: 68.42 kB / 0.7123 GB, free: 2.836 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.866e-05/0.7164, allocations: 31.98 kB / 0.7123 GB, free: 2.805 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004032/0.7204, allocations: 2.346 MB / 0.7146 GB, free: 484 kB / 0.5137 GB Notification: Performance of sort global known variables: time 4.2e-07/0.7204, allocations: 4.062 kB / 0.7146 GB, free: 480 kB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004272/0.7247, allocations: 0.7695 MB / 0.7154 GB, free: 15.7 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (88): * Single equations (assignments): 84 * 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.005824/0.7305, allocations: 3.912 MB / 0.7192 GB, free: 11.75 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.006829/0.7373, allocations: 3.687 MB / 0.7228 GB, free: 8.074 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.758e-06/0.7374, allocations: 0 / 0.7228 GB, free: 8.074 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001598/0.7389, allocations: 0.888 MB / 0.7236 GB, free: 7.172 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002306/0.7413, allocations: 375.8 kB / 0.724 GB, free: 6.809 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05914/0.8004, allocations: 37.19 MB / 0.7603 GB, free: 12.23 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003816/0.8042, allocations: 2.716 MB / 0.763 GB, free: 9.496 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.004162/0.8084, allocations: 1.707 MB / 0.7646 GB, free: 7.785 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0024/0.8108, allocations: 1.464 MB / 0.7661 GB, free: 6.32 MB / 0.5762 GB Notification: Performance of SimCode: time 1.453e-06/0.8108, allocations: 0 / 0.7661 GB, free: 6.32 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1155/0.9263, allocations: 54.52 MB / 0.8193 GB, free: 76 kB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.45/24.37, allocations: 18.97 kB / 0.8193 GB, free: 60 kB / 0.6231 GB " [Timeout remaining time 636] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_MultiBody_Sensors_Distance2_fmu --startTime=0 --stopTime=0.5 --stepSize=9.996e-05 --timeout=50 --tolerance=1e-10 ModelicaTest_4_1_0_ModelicaTest_MultiBody_Sensors_Distance2.fmu > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_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: 27.867456197971478]