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.001532/0.001532, allocations: 112.5 kB / 21.22 MB, free: 0.7422 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.001947/0.001947, allocations: 209.2 kB / 24.53 MB, free: 4.133 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.566/1.566, allocations: 230.6 MB / 258.3 MB, free: 7.984 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.2638/0.2638, allocations: 46.93 MB / 361.6 MB, free: 4.277 MB / 286.1 MB " [Timeout remaining time 179] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002149/0.002149, allocations: 71.88 kB / 0.4969 GB, free: 7.902 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3035/0.3057, allocations: 66.03 MB / 0.5614 GB, free: 4.473 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01226/0.3179, allocations: 9.12 MB / 0.5703 GB, free: 11.31 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.008548/0.3265, allocations: 3.617 MB / 0.5739 GB, free: 7.68 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001911/0.3284, allocations: 63.69 kB / 0.5739 GB, free: 7.617 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004775/0.3332, allocations: 1.939 MB / 0.5758 GB, free: 5.672 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005226/0.3384, allocations: 1.611 MB / 0.5774 GB, free: 4.055 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001794/0.3402, allocations: 0.577 MB / 0.5779 GB, free: 3.477 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006048/0.3462, allocations: 3.661 MB / 0.5815 GB, free: 15.81 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003357/0.3496, allocations: 2.002 MB / 0.5835 GB, free: 13.75 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002348/0.3519, allocations: 1.176 MB / 0.5846 GB, free: 12.57 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003314/0.3553, allocations: 1.776 MB / 0.5864 GB, free: 10.79 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009246/0.3562, allocations: 240 kB / 0.5866 GB, free: 10.55 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002724/0.3589, allocations: 1.158 MB / 0.5877 GB, free: 9.391 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002259/0.3612, allocations: 1.554 MB / 0.5892 GB, free: 7.832 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00349/0.3647, allocations: 1.782 MB / 0.591 GB, free: 6.039 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008922/0.3736, allocations: 5.875 MB / 0.5967 GB, free: 144 kB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.446e-06/0.3736, allocations: 0 / 0.5967 GB, free: 144 kB / 430.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.3736, allocations: 0 / 0.5967 GB, free: 144 kB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002489/0.3738, allocations: 0 / 0.5967 GB, free: 144 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.01218/0.386, allocations: 3.987 MB / 0.6006 GB, free: 12.09 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.461e-05/0.3861, allocations: 12.03 kB / 0.6006 GB, free: 12.08 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001143/0.3862, allocations: 76.78 kB / 0.6007 GB, free: 12 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001563/0.3878, allocations: 0.5753 MB / 0.6013 GB, free: 11.42 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08959/0.4773, allocations: 6.97 MB / 0.6081 GB, free: 4.438 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007975/0.4853, allocations: 2.388 MB / 0.6104 GB, free: 2.012 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002901/0.4856, allocations: 180.6 kB / 0.6106 GB, free: 1.832 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001518/0.4871, allocations: 243.8 kB / 0.6108 GB, free: 1.594 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01773/0.5049, allocations: 7.72 MB / 0.6183 GB, free: 9.219 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001713/0.505, allocations: 39.64 kB / 0.6184 GB, free: 9.18 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001001/0.506, allocations: 119.9 kB / 0.6185 GB, free: 9.062 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003225/0.5092, allocations: 1.589 MB / 0.62 GB, free: 7.473 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0148/0.524, allocations: 6.453 MB / 0.6263 GB, free: 1.012 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04896/0.573, allocations: 31.25 MB / 0.6569 GB, free: 0.7773 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005475/0.5785, allocations: 1.892 MB / 0.6587 GB, free: 14.85 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0019/0.5804, allocations: 0.9754 MB / 0.6597 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004534/0.5808, allocations: 87.92 kB / 0.6597 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.606e-05/0.5809, allocations: 50.55 kB / 0.6598 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=104): time 4.228e-06/0.5809, allocations: 4 kB / 0.6598 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of matching and sorting (n=118): time 0.02781/0.6087, allocations: 8.386 MB / 0.668 GB, free: 5.27 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001839/0.6089, allocations: 196.4 kB / 0.6682 GB, free: 5.035 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008103/0.617, allocations: 3.773 MB / 0.6719 GB, free: 1.27 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002774/0.6173, allocations: 41.7 kB / 0.6719 GB, free: 1.223 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.003105/0.6204, allocations: 2.826 MB / 0.6747 GB, free: 14.37 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009248/0.6213, allocations: 0.5042 MB / 0.6752 GB, free: 13.86 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002694/0.624, allocations: 1.103 MB / 0.6762 GB, free: 12.75 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001508/0.6242, allocations: 301.1 kB / 0.6765 GB, free: 12.45 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003685/0.6278, allocations: 1.584 MB / 0.6781 GB, free: 10.86 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008587/0.6364, allocations: 5.152 MB / 0.6831 GB, free: 3.902 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009965/0.6464, allocations: 7.32 MB / 0.6902 GB, free: 10.81 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001388/0.6465, allocations: 36 kB / 0.6903 GB, free: 10.77 MB / 0.5294 GB Notification: Performance of matching and sorting (n=698) (initialization): time 0.01419/0.6607, allocations: 6.638 MB / 0.6968 GB, free: 4.129 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001745/0.6609, allocations: 60 kB / 0.6968 GB, free: 4.07 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000227/0.6611, allocations: 124 kB / 0.6969 GB, free: 3.949 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001129/0.6623, allocations: 408.8 kB / 0.6973 GB, free: 3.547 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004281/0.6665, allocations: 1.22 MB / 0.6985 GB, free: 2.324 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004878/0.6714, allocations: 3.233 MB / 0.7017 GB, free: 14.98 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004513/0.6759, allocations: 287.7 kB / 0.7019 GB, free: 14.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001359/0.6773, allocations: 344 kB / 0.7023 GB, free: 14.36 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.004424/0.6817, allocations: 1.787 MB / 0.704 GB, free: 12.56 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008349/0.6826, allocations: 317.8 kB / 0.7043 GB, free: 12.25 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00374/0.6863, allocations: 1.461 MB / 0.7058 GB, free: 10.78 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.162e-05/0.6863, allocations: 19.94 kB / 0.7058 GB, free: 10.76 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.175e-05/0.6863, allocations: 4 kB / 0.7058 GB, free: 10.75 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.998e-05/0.6864, allocations: 7.969 kB / 0.7058 GB, free: 10.75 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01116/0.6975, allocations: 4.801 MB / 0.7105 GB, free: 5.883 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.766e-05/0.6975, allocations: 11.92 kB / 0.7105 GB, free: 5.871 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008784/0.6984, allocations: 151.8 kB / 0.7106 GB, free: 5.723 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007609/0.6992, allocations: 232.6 kB / 0.7108 GB, free: 5.492 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001357/0.6993, allocations: 20 kB / 0.7109 GB, free: 5.473 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003587/0.7029, allocations: 2.608 MB / 0.7134 GB, free: 2.75 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.816e-06/0.7029, allocations: 0 / 0.7134 GB, free: 2.75 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005644/0.7086, allocations: 3.288 MB / 0.7166 GB, free: 15.43 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009515/0.7095, allocations: 305.6 kB / 0.7169 GB, free: 15.13 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006713/0.7102, allocations: 16 kB / 0.7169 GB, free: 15.12 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001422/0.7116, allocations: 56 kB / 0.717 GB, free: 15.06 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002609/0.7119, allocations: 64.31 kB / 0.717 GB, free: 15 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001439/0.712, allocations: 32 kB / 0.7171 GB, free: 14.97 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.005156/0.7172, allocations: 2.346 MB / 0.7194 GB, free: 12.64 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.9e-07/0.7172, allocations: 0 / 0.7194 GB, free: 12.64 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.005413/0.7226, allocations: 0.7616 MB / 0.7201 GB, free: 11.88 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.006688/0.7293, allocations: 3.913 MB / 0.7239 GB, free: 7.926 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.007744/0.737, allocations: 3.676 MB / 0.7275 GB, free: 4.27 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.146e-06/0.737, allocations: 0 / 0.7275 GB, free: 4.27 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001878/0.7389, allocations: 0.8952 MB / 0.7284 GB, free: 3.363 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003827/0.7427, allocations: 379.2 kB / 0.7288 GB, free: 2.996 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3178/1.061, allocations: 37.27 MB / 0.7652 GB, free: 128.4 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002752/1.063, allocations: 2.715 MB / 0.7678 GB, free: 125.7 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003206/1.067, allocations: 1.698 MB / 0.7695 GB, free: 124 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001908/1.068, allocations: 1.452 MB / 0.7709 GB, free: 122.5 MB / 0.5606 GB Notification: Performance of SimCode: time 1.463e-06/1.068, allocations: 8 kB / 0.7709 GB, free: 122.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09434/1.163, allocations: 58.9 MB / 0.8284 GB, free: 64.05 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.93/26.09, allocations: 8.062 kB / 0.8284 GB, free: 64.04 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: 30.235954225994647]