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.001418/0.001418, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001906/0.001906, allocations: 211.8 kB / 24.51 MB, free: 3.914 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.511/1.511, allocations: 230.6 MB / 258.3 MB, free: 7.789 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.2273/0.2273, allocations: 46.96 MB / 361.7 MB, free: 4.031 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="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.002015/0.002015, allocations: 63.91 kB / 0.4969 GB, free: 7.73 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.354/0.356, allocations: 66.03 MB / 0.5613 GB, free: 4.242 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01114/0.3672, allocations: 7.978 MB / 0.5691 GB, free: 12.22 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.007756/0.3749, allocations: 3.384 MB / 0.5724 GB, free: 8.828 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001569/0.3765, allocations: 59.75 kB / 0.5725 GB, free: 8.77 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003893/0.3804, allocations: 1.861 MB / 0.5743 GB, free: 6.902 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00451/0.3849, allocations: 1.623 MB / 0.5759 GB, free: 5.273 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001391/0.3863, allocations: 0.5692 MB / 0.5765 GB, free: 4.703 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005496/0.3918, allocations: 3.658 MB / 0.58 GB, free: 1.039 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00275/0.3945, allocations: 1.998 MB / 0.582 GB, free: 14.98 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002185/0.3967, allocations: 1.184 MB / 0.5831 GB, free: 13.79 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002785/0.3995, allocations: 1.783 MB / 0.5849 GB, free: 12 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004958/0.4, allocations: 240 kB / 0.5851 GB, free: 11.77 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001895/0.4019, allocations: 1.026 MB / 0.5861 GB, free: 10.74 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001582/0.4035, allocations: 1.554 MB / 0.5876 GB, free: 9.184 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001656/0.4051, allocations: 1.324 MB / 0.5889 GB, free: 7.852 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007099/0.4122, allocations: 5.895 MB / 0.5947 GB, free: 1.934 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.4122, allocations: 0 / 0.5947 GB, free: 1.934 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.4122, allocations: 0 / 0.5947 GB, free: 1.934 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001551/0.4124, allocations: 0 / 0.5947 GB, free: 1.934 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: 1211 * Number of variables: 1211 Notification: Performance of Generate backend data structure: time 0.00916/0.4216, allocations: 3.983 MB / 0.5986 GB, free: 13.89 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.16e-05/0.4216, allocations: 12.03 kB / 0.5986 GB, free: 13.88 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001016/0.4217, allocations: 80.78 kB / 0.5987 GB, free: 13.8 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007592/0.4225, allocations: 0.5753 MB / 0.5992 GB, free: 13.21 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07912/0.5016, allocations: 6.97 MB / 0.606 GB, free: 6.234 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005737/0.5073, allocations: 2.4 MB / 0.6084 GB, free: 3.797 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000151/0.5075, allocations: 184.5 kB / 0.6085 GB, free: 3.613 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005001/0.508, allocations: 247.7 kB / 0.6088 GB, free: 3.371 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01162/0.5196, allocations: 7.77 MB / 0.6164 GB, free: 10.93 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.846e-05/0.5197, allocations: 43.64 kB / 0.6164 GB, free: 10.89 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003085/0.52, allocations: 111.9 kB / 0.6165 GB, free: 10.78 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002619/0.5226, allocations: 1.586 MB / 0.6181 GB, free: 9.191 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01131/0.5339, allocations: 6.457 MB / 0.6244 GB, free: 2.727 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03682/0.5707, allocations: 30.16 MB / 0.6538 GB, free: 3.59 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004878/0.5756, allocations: 1.895 MB / 0.6557 GB, free: 1.66 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001511/0.5771, allocations: 0.9832 MB / 0.6566 GB, free: 0.6641 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002506/0.5774, allocations: 83.94 kB / 0.6567 GB, free: 0.582 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.704e-05/0.5774, allocations: 46.55 kB / 0.6568 GB, free: 0.5273 MB / 494.1 MB Notification: Performance of pre-optimization done (n=104): time 3.817e-06/0.5774, allocations: 0 / 0.6568 GB, free: 0.5273 MB / 494.1 MB Notification: Performance of matching and sorting (n=118): time 0.02193/0.5993, allocations: 8.429 MB / 0.665 GB, free: 8.047 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001296/0.5995, allocations: 200.4 kB / 0.6652 GB, free: 7.805 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005334/0.6048, allocations: 3.769 MB / 0.6689 GB, free: 4.043 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001427/0.605, allocations: 45.64 kB / 0.6689 GB, free: 3.992 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002248/0.6072, allocations: 2.822 MB / 0.6717 GB, free: 1.141 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005587/0.6078, allocations: 0.5119 MB / 0.6722 GB, free: 0.625 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001432/0.6092, allocations: 1.088 MB / 0.6732 GB, free: 15.53 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001366/0.6093, allocations: 309.1 kB / 0.6735 GB, free: 15.22 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002426/0.6118, allocations: 1.576 MB / 0.6751 GB, free: 13.64 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005606/0.6174, allocations: 5.199 MB / 0.6801 GB, free: 6.629 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008787/0.6262, allocations: 7.316 MB / 0.6873 GB, free: 13.54 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.367e-05/0.6262, allocations: 43.94 kB / 0.6873 GB, free: 13.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=698) (initialization): time 0.0123/0.6385, allocations: 6.634 MB / 0.6938 GB, free: 6.859 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.153e-05/0.6386, allocations: 60 kB / 0.6939 GB, free: 6.801 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001384/0.6388, allocations: 136.1 kB / 0.694 GB, free: 6.668 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009435/0.6397, allocations: 396.6 kB / 0.6944 GB, free: 6.277 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003683/0.6434, allocations: 1.224 MB / 0.6956 GB, free: 5.051 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004115/0.6475, allocations: 3.213 MB / 0.6987 GB, free: 1.723 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003535/0.651, allocations: 283.7 kB / 0.699 GB, free: 1.445 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005793/0.6516, allocations: 347.9 kB / 0.6993 GB, free: 1.105 MB / 0.5294 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.002633/0.6543, allocations: 1.776 MB / 0.701 GB, free: 15.32 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005212/0.6548, allocations: 321.8 kB / 0.7013 GB, free: 15 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002704/0.6575, allocations: 1.465 MB / 0.7028 GB, free: 13.52 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.258e-05/0.6575, allocations: 12 kB / 0.7028 GB, free: 13.51 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.929e-06/0.6575, allocations: 7.938 kB / 0.7028 GB, free: 13.5 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.058e-05/0.6575, allocations: 3.984 kB / 0.7028 GB, free: 13.5 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008248/0.6658, allocations: 4.608 MB / 0.7073 GB, free: 8.832 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.61e-06/0.6658, allocations: 0 / 0.7073 GB, free: 8.832 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007827/0.6666, allocations: 163.7 kB / 0.7074 GB, free: 8.672 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006738/0.6672, allocations: 224.6 kB / 0.7077 GB, free: 8.449 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.599e-05/0.6673, allocations: 20 kB / 0.7077 GB, free: 8.43 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00331/0.6706, allocations: 2.584 MB / 0.7102 GB, free: 5.73 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.6706, allocations: 0 / 0.7102 GB, free: 5.73 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004809/0.6754, allocations: 3.29 MB / 0.7134 GB, free: 2.41 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006578/0.6761, allocations: 301.8 kB / 0.7137 GB, free: 2.113 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003083/0.6764, allocations: 20 kB / 0.7137 GB, free: 2.094 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009524/0.6774, allocations: 47.94 kB / 0.7138 GB, free: 2.047 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001808/0.6775, allocations: 72.3 kB / 0.7138 GB, free: 1.977 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.54e-05/0.6776, allocations: 28 kB / 0.7139 GB, free: 1.949 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003536/0.6812, allocations: 2.346 MB / 0.7162 GB, free: 15.62 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6812, allocations: 4 kB / 0.7162 GB, free: 15.61 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003648/0.6848, allocations: 0.7655 MB / 0.7169 GB, free: 14.85 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.005305/0.6901, allocations: 3.915 MB / 0.7207 GB, free: 10.89 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.006115/0.6962, allocations: 3.673 MB / 0.7243 GB, free: 7.238 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/0.6962, allocations: 4 kB / 0.7243 GB, free: 7.234 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001461/0.6977, allocations: 0.8918 MB / 0.7252 GB, free: 6.332 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002096/0.6998, allocations: 372.8 kB / 0.7255 GB, free: 5.969 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2913/0.991, allocations: 37.27 MB / 0.7619 GB, free: 130.2 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002094/0.9931, allocations: 2.159 MB / 0.7641 GB, free: 128 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003338/0.9965, allocations: 1.702 MB / 0.7657 GB, free: 126.3 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001566/0.998, allocations: 1.456 MB / 0.7671 GB, free: 124.9 MB / 0.5606 GB Notification: Performance of SimCode: time 1.893e-06/0.998, allocations: 0 / 0.7671 GB, free: 124.9 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09195/1.09, allocations: 56.4 MB / 0.8222 GB, free: 69.32 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.57/26.66, allocations: 11.09 kB / 0.8222 GB, free: 69.31 MB / 0.5606 GB " [Timeout remaining time 633] (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.715881148935296]