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.001709/0.001709, allocations: 115.8 kB / 20.43 MB, free: 1.449 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.001711/0.001711, allocations: 216.6 kB / 23.74 MB, free: 4.656 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.484/1.484, allocations: 230.6 MB / 257.5 MB, free: 8.023 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.228/0.228, allocations: 46.93 MB / 360.9 MB, free: 4.297 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.002059/0.002059, allocations: 67.89 kB / 0.4962 GB, free: 7.93 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3094/0.3115, allocations: 66.03 MB / 0.5606 GB, free: 4.496 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01254/0.324, allocations: 9.124 MB / 0.5695 GB, free: 11.33 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.008265/0.3323, allocations: 3.621 MB / 0.5731 GB, free: 7.695 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001435/0.3337, allocations: 55.75 kB / 0.5731 GB, free: 7.641 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004262/0.338, allocations: 1.939 MB / 0.575 GB, free: 5.695 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00459/0.3426, allocations: 1.615 MB / 0.5766 GB, free: 4.074 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001435/0.344, allocations: 0.577 MB / 0.5772 GB, free: 3.496 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005657/0.3497, allocations: 3.658 MB / 0.5807 GB, free: 15.83 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00303/0.3527, allocations: 2.002 MB / 0.5827 GB, free: 13.77 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001899/0.3546, allocations: 1.18 MB / 0.5839 GB, free: 12.59 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00282/0.3574, allocations: 1.776 MB / 0.5856 GB, free: 10.8 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004967/0.3579, allocations: 240 kB / 0.5858 GB, free: 10.57 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002168/0.3601, allocations: 1.155 MB / 0.5869 GB, free: 9.414 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001691/0.3618, allocations: 1.558 MB / 0.5885 GB, free: 7.852 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002038/0.3638, allocations: 1.779 MB / 0.5902 GB, free: 6.062 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007723/0.3715, allocations: 5.875 MB / 0.5959 GB, free: 168 kB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.793e-06/0.3715, allocations: 0 / 0.5959 GB, free: 168 kB / 430.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.3716, allocations: 0 / 0.5959 GB, free: 168 kB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001491/0.3717, allocations: 0 / 0.5959 GB, free: 168 kB / 430.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.01066/0.3824, allocations: 3.99 MB / 0.5998 GB, free: 12.12 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.891e-05/0.3824, allocations: 12.03 kB / 0.5998 GB, free: 12.11 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001024/0.3834, allocations: 0.5714 MB / 0.6004 GB, free: 11.52 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08274/0.4662, allocations: 6.966 MB / 0.6072 GB, free: 4.547 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006209/0.4724, allocations: 2.4 MB / 0.6096 GB, free: 2.109 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001576/0.4725, allocations: 176.8 kB / 0.6097 GB, free: 1.934 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005544/0.4731, allocations: 243.8 kB / 0.61 GB, free: 1.695 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01257/0.4857, allocations: 7.716 MB / 0.6175 GB, free: 9.324 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001074/0.4858, allocations: 43.64 kB / 0.6175 GB, free: 9.281 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003159/0.4861, allocations: 119.9 kB / 0.6176 GB, free: 9.164 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002704/0.4888, allocations: 1.59 MB / 0.6192 GB, free: 7.57 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01172/0.5005, allocations: 6.46 MB / 0.6255 GB, free: 1.102 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04015/0.5407, allocations: 31.25 MB / 0.656 GB, free: 0.875 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004778/0.5454, allocations: 1.888 MB / 0.6579 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001505/0.5469, allocations: 0.9833 MB / 0.6588 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002698/0.5472, allocations: 87.92 kB / 0.6589 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.307e-05/0.5473, allocations: 46.5 kB / 0.6589 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=104): time 3.446e-06/0.5473, allocations: 0 / 0.6589 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of matching and sorting (n=118): time 0.02157/0.5688, allocations: 8.395 MB / 0.6671 GB, free: 5.363 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001343/0.569, allocations: 188.4 kB / 0.6673 GB, free: 5.137 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005687/0.5747, allocations: 3.769 MB / 0.671 GB, free: 1.375 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001989/0.5749, allocations: 41.7 kB / 0.671 GB, free: 1.328 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002505/0.5774, allocations: 2.83 MB / 0.6738 GB, free: 14.46 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006187/0.578, allocations: 0.5002 MB / 0.6743 GB, free: 13.96 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001472/0.5795, allocations: 1.107 MB / 0.6754 GB, free: 12.84 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.000139/0.5796, allocations: 301.1 kB / 0.6757 GB, free: 12.55 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002474/0.5821, allocations: 1.588 MB / 0.6772 GB, free: 10.95 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005741/0.5878, allocations: 5.148 MB / 0.6822 GB, free: 4 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01003/0.5978, allocations: 7.321 MB / 0.6894 GB, free: 10.91 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001045/0.5979, allocations: 36 kB / 0.6894 GB, free: 10.88 MB / 0.5294 GB Notification: Performance of matching and sorting (n=698) (initialization): time 0.01318/0.6111, allocations: 6.631 MB / 0.6959 GB, free: 4.234 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001256/0.6113, allocations: 59.81 kB / 0.696 GB, free: 4.18 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001951/0.6114, allocations: 128 kB / 0.6961 GB, free: 4.055 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00109/0.6125, allocations: 400.6 kB / 0.6965 GB, free: 3.66 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004084/0.6166, allocations: 1.224 MB / 0.6977 GB, free: 2.434 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004403/0.621, allocations: 3.233 MB / 0.7008 GB, free: 15.09 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003652/0.6247, allocations: 287.6 kB / 0.7011 GB, free: 14.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006674/0.6253, allocations: 344 kB / 0.7014 GB, free: 14.47 MB / 0.545 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.002917/0.6283, allocations: 1.787 MB / 0.7032 GB, free: 12.67 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005689/0.6288, allocations: 329.8 kB / 0.7035 GB, free: 12.34 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002828/0.6317, allocations: 1.453 MB / 0.7049 GB, free: 10.88 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-05/0.6317, allocations: 15.94 kB / 0.7049 GB, free: 10.86 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.097e-05/0.6317, allocations: 7.938 kB / 0.7049 GB, free: 10.86 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.08e-05/0.6317, allocations: 3.984 kB / 0.7049 GB, free: 10.85 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009363/0.6411, allocations: 4.814 MB / 0.7096 GB, free: 5.98 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.897e-06/0.6411, allocations: 0 / 0.7096 GB, free: 5.98 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008733/0.6419, allocations: 167.8 kB / 0.7098 GB, free: 5.816 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006629/0.6426, allocations: 220.6 kB / 0.71 GB, free: 5.598 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.544e-05/0.6427, allocations: 23.98 kB / 0.71 GB, free: 5.574 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003326/0.646, allocations: 2.596 MB / 0.7126 GB, free: 2.863 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.646, allocations: 4.031 kB / 0.7126 GB, free: 2.859 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005156/0.6512, allocations: 3.294 MB / 0.7158 GB, free: 15.53 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007478/0.6519, allocations: 297.7 kB / 0.7161 GB, free: 15.24 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003225/0.6522, allocations: 19.98 kB / 0.7161 GB, free: 15.22 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009375/0.6532, allocations: 51.94 kB / 0.7161 GB, free: 15.17 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001808/0.6534, allocations: 68.27 kB / 0.7162 GB, free: 15.1 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.356e-05/0.6534, allocations: 36.05 kB / 0.7162 GB, free: 15.07 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.00394/0.6574, allocations: 2.343 MB / 0.7185 GB, free: 12.74 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.8e-07/0.6574, allocations: 0 / 0.7185 GB, free: 12.74 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003928/0.6613, allocations: 0.7655 MB / 0.7193 GB, free: 11.97 MB / 0.5606 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.005678/0.667, allocations: 3.911 MB / 0.7231 GB, free: 8.027 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.006666/0.6737, allocations: 3.675 MB / 0.7267 GB, free: 4.371 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/0.6737, allocations: 0 / 0.7267 GB, free: 4.371 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001545/0.6752, allocations: 0.8963 MB / 0.7276 GB, free: 3.465 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002138/0.6773, allocations: 376.1 kB / 0.7279 GB, free: 3.094 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2656/0.943, allocations: 37.26 MB / 0.7643 GB, free: 128.4 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002055/0.945, allocations: 2.72 MB / 0.767 GB, free: 125.6 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.002888/0.9479, allocations: 1.699 MB / 0.7686 GB, free: 123.9 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001294/0.9492, allocations: 1.452 MB / 0.77 GB, free: 122.5 MB / 0.5606 GB Notification: Performance of SimCode: time 6.91e-07/0.9492, allocations: 0 / 0.77 GB, free: 122.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09962/1.049, allocations: 58.89 MB / 0.8275 GB, free: 64.03 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.96/26.01, allocations: 5.562 kB / 0.8275 GB, free: 64.02 MB / 0.5606 GB " [Timeout remaining time 634] (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: 29.500799608184025]