Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001286/0.001286, allocations: 119.3 kB / 17.13 MB, free: 5.926 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001353/0.001353, allocations: 191.7 kB / 20.07 MB, free: 2.992 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.458/1.458, allocations: 207.6 MB / 230.4 MB, free: 4.039 MB / 174.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3568/0.3568, allocations: 44.24 MB / 326.5 MB, free: 7.27 MB / 254.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002126/0.002126, allocations: 63.91 kB / 462.2 MB, free: 1.07 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2557/0.2578, allocations: 61 MB / 0.5109 GB, free: 13.25 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.008285/0.2661, allocations: 10.07 MB / 0.5207 GB, free: 4.934 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005879/0.272, allocations: 3.715 MB / 0.5244 GB, free: 1.207 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001297/0.2733, allocations: 51.88 kB / 0.5244 GB, free: 1.156 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003299/0.2766, allocations: 1.978 MB / 0.5263 GB, free: 15.17 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004365/0.2809, allocations: 1.782 MB / 0.5281 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001326/0.2822, allocations: 0.5731 MB / 0.5286 GB, free: 12.8 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005512/0.2878, allocations: 3.741 MB / 0.5323 GB, free: 9.055 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003026/0.2908, allocations: 2.195 MB / 0.5344 GB, free: 6.809 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002311/0.2931, allocations: 1.285 MB / 0.5357 GB, free: 5.52 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002934/0.296, allocations: 1.986 MB / 0.5376 GB, free: 3.527 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006855/0.2967, allocations: 276 kB / 0.5379 GB, free: 3.258 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002316/0.299, allocations: 1.178 MB / 0.539 GB, free: 2.078 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001996/0.301, allocations: 1.737 MB / 0.5407 GB, free: 344 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002979/0.304, allocations: 2.004 MB / 0.5427 GB, free: 14.32 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01015/0.3142, allocations: 6.613 MB / 0.5492 GB, free: 7.68 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.3142, allocations: 0 / 0.5492 GB, free: 7.68 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3142, allocations: 0 / 0.5492 GB, free: 7.68 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001441/0.3143, allocations: 0 / 0.5492 GB, free: 7.68 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1367 * Number of variables: 1367 Notification: Performance of Generate backend data structure: time 0.00943/0.3237, allocations: 4.449 MB / 0.5535 GB, free: 3.156 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/0.3238, allocations: 15.89 kB / 0.5535 GB, free: 3.141 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008443/0.3246, allocations: 0.6456 MB / 0.5541 GB, free: 2.484 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07763/0.4023, allocations: 7.056 MB / 0.561 GB, free: 11.42 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007809/0.4101, allocations: 2.866 MB / 0.5638 GB, free: 8.488 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000186/0.4102, allocations: 189.3 kB / 0.564 GB, free: 8.301 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009418/0.4112, allocations: 271.8 kB / 0.5643 GB, free: 8.035 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01429/0.4255, allocations: 8.686 MB / 0.5728 GB, free: 14.7 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.161e-05/0.4256, allocations: 39.69 kB / 0.5728 GB, free: 14.66 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003355/0.4259, allocations: 127.9 kB / 0.5729 GB, free: 14.53 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00302/0.4289, allocations: 1.833 MB / 0.5747 GB, free: 12.7 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01435/0.4433, allocations: 7.335 MB / 0.5819 GB, free: 5.352 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04444/0.4877, allocations: 33.91 MB / 0.615 GB, free: 2.418 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005269/0.493, allocations: 2.444 MB / 0.6174 GB, free: 15.83 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001644/0.4946, allocations: 1.036 MB / 0.6184 GB, free: 14.78 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004323/0.4951, allocations: 327.8 kB / 0.6187 GB, free: 14.4 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.664e-05/0.4951, allocations: 55.06 kB / 0.6188 GB, free: 14.34 MB / 494.1 MB Notification: Performance of pre-optimization done (n=119): time 4.078e-06/0.4951, allocations: 0 / 0.6188 GB, free: 14.34 MB / 494.1 MB Notification: Performance of matching and sorting (n=133): time 0.02503/0.5201, allocations: 9.148 MB / 0.6277 GB, free: 5.117 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001335/0.5203, allocations: 192.6 kB / 0.6279 GB, free: 4.887 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006866/0.5271, allocations: 3.987 MB / 0.6318 GB, free: 0.918 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000261/0.5274, allocations: 49.7 kB / 0.6318 GB, free: 0.8633 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00275/0.5302, allocations: 3.087 MB / 0.6348 GB, free: 13.74 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008319/0.531, allocations: 0.5662 MB / 0.6354 GB, free: 13.17 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002389/0.5334, allocations: 1.171 MB / 0.6365 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001329/0.5335, allocations: 305.1 kB / 0.6368 GB, free: 11.69 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002973/0.5365, allocations: 1.698 MB / 0.6385 GB, free: 9.984 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006382/0.5429, allocations: 5.509 MB / 0.6438 GB, free: 2.551 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2793/0.8222, allocations: 7.85 MB / 0.6515 GB, free: 110.4 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001032/0.8223, allocations: 38.69 kB / 0.6516 GB, free: 110.4 MB / 0.4981 GB Notification: Performance of matching and sorting (n=751) (initialization): time 0.01525/0.8376, allocations: 7.1 MB / 0.6585 GB, free: 107.8 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001262/0.8377, allocations: 65.69 kB / 0.6585 GB, free: 107.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002669/0.8379, allocations: 135.4 kB / 0.6587 GB, free: 107.8 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001103/0.839, allocations: 419.1 kB / 0.6591 GB, free: 107.8 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003779/0.8428, allocations: 1.33 MB / 0.6604 GB, free: 107.6 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003139/0.846, allocations: 3.359 MB / 0.6637 GB, free: 105.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003817/0.8498, allocations: 307.2 kB / 0.6639 GB, free: 105.3 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004696/0.8503, allocations: 364.6 kB / 0.6643 GB, free: 105.3 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 619 * Number of states: 0 () * Number of discrete variables: 31 (LessEqualThreshold1.y,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 (716): * Single equations (assignments): 712 * 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.002338/0.8526, allocations: 1.947 MB / 0.6662 GB, free: 104.4 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005058/0.8531, allocations: 346.5 kB / 0.6665 GB, free: 104.4 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002406/0.8555, allocations: 1.7 MB / 0.6682 GB, free: 103.8 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.023e-05/0.8555, allocations: 15.62 kB / 0.6682 GB, free: 103.8 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.226e-06/0.8555, allocations: 3.875 kB / 0.6682 GB, free: 103.8 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.103e-05/0.8555, allocations: 11.36 kB / 0.6682 GB, free: 103.8 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008037/0.8636, allocations: 5.426 MB / 0.6735 GB, free: 101.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.666e-06/0.8636, allocations: 0 / 0.6735 GB, free: 101.7 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007795/0.8644, allocations: 190.1 kB / 0.6737 GB, free: 101.5 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005602/0.8649, allocations: 222.7 kB / 0.6739 GB, free: 101.4 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.438e-05/0.865, allocations: 28.03 kB / 0.6739 GB, free: 101.3 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002213/0.8672, allocations: 2.703 MB / 0.6766 GB, free: 98.77 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.8672, allocations: 4 kB / 0.6766 GB, free: 98.77 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003993/0.8712, allocations: 3.565 MB / 0.6801 GB, free: 95.5 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001318/0.8725, allocations: 0.5417 MB / 0.6806 GB, free: 94.95 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003556/0.8729, allocations: 20 kB / 0.6806 GB, free: 94.93 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009979/0.8739, allocations: 55.69 kB / 0.6807 GB, free: 94.88 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001721/0.8741, allocations: 76.41 kB / 0.6807 GB, free: 94.8 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.608e-05/0.8741, allocations: 36.86 kB / 0.6808 GB, free: 94.77 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003237/0.8774, allocations: 2.489 MB / 0.6832 GB, free: 92.3 MB / 0.4981 GB Notification: Performance of sort global known variables: time 8e-08/0.8774, allocations: 0 / 0.6832 GB, free: 92.3 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004034/0.8814, allocations: 0.8537 MB / 0.684 GB, free: 91.45 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (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.004021/0.8854, allocations: 4.192 MB / 0.6881 GB, free: 87.22 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.005342/0.8908, allocations: 3.956 MB / 0.692 GB, free: 83.28 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.15e-06/0.8908, allocations: 0.7344 kB / 0.692 GB, free: 83.28 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001039/0.8918, allocations: 0.9513 MB / 0.6929 GB, free: 82.32 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00236/0.8942, allocations: 394.3 kB / 0.6933 GB, free: 81.94 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04198/0.9362, allocations: 40.32 MB / 0.7327 GB, free: 35.8 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002367/0.9385, allocations: 2.948 MB / 0.7355 GB, free: 32.82 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.003302/0.9418, allocations: 1.814 MB / 0.7373 GB, free: 31 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001536/0.9434, allocations: 1.655 MB / 0.7389 GB, free: 29.34 MB / 0.4981 GB Notification: Performance of SimCode: time 1.303e-06/0.9434, allocations: 0 / 0.7389 GB, free: 29.34 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1012/1.045, allocations: 58.25 MB / 0.7958 GB, free: 3.074 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.69/20.73, allocations: 8.047 kB / 0.7958 GB, free: 3.066 MB / 0.5294 GB " [Timeout remaining time 639] (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2_fmu --startTime=0 --stopTime=0.5 --stepSize=9.996e-05 --timeout=50 --tolerance=1e-10 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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: 24.113177021034062]