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.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.001335/0.001335, allocations: 109 kB / 20.48 MB, free: 1.492 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.001418/0.001418, allocations: 215.8 kB / 23.79 MB, free: 4.707 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.532/1.532, allocations: 207.6 MB / 234.5 MB, free: 9.996 MB / 190.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.2235/0.2235, allocations: 44.24 MB / 331.1 MB, free: 9.543 MB / 270.1 MB " [Timeout remaining time 179] 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.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_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002266/0.002266, allocations: 74.56 kB / 468.3 MB, free: 4.527 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1147/0.1169, allocations: 61.04 MB / 0.5169 GB, free: 7.348 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01334/0.1303, allocations: 10.09 MB / 0.5268 GB, free: 13.2 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.008582/0.1389, allocations: 3.743 MB / 0.5304 GB, free: 9.449 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001682/0.1405, allocations: 59.75 kB / 0.5305 GB, free: 9.391 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00483/0.1454, allocations: 1.993 MB / 0.5324 GB, free: 7.391 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005113/0.1505, allocations: 1.786 MB / 0.5342 GB, free: 5.598 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001608/0.1521, allocations: 0.5731 MB / 0.5347 GB, free: 5.023 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006282/0.1584, allocations: 3.743 MB / 0.5384 GB, free: 1.27 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2317/0.39, allocations: 2.151 MB / 0.5405 GB, free: 10.71 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002558/0.3926, allocations: 1.302 MB / 0.5418 GB, free: 10.63 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003425/0.396, allocations: 1.983 MB / 0.5437 GB, free: 10.43 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009789/0.397, allocations: 274.5 kB / 0.544 GB, free: 10.43 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002626/0.3996, allocations: 1.185 MB / 0.5451 GB, free: 10.43 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002205/0.4018, allocations: 1.742 MB / 0.5468 GB, free: 10.21 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002703/0.4045, allocations: 1.999 MB / 0.5488 GB, free: 9.512 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01011/0.4147, allocations: 6.607 MB / 0.5552 GB, free: 8.383 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.4147, allocations: 0 / 0.5552 GB, free: 8.383 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.4147, allocations: 1.094 kB / 0.5552 GB, free: 8.383 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002385/0.4149, allocations: 0 / 0.5552 GB, free: 8.383 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.01614/0.431, allocations: 4.388 MB / 0.5595 GB, free: 5.992 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.976e-05/0.4311, allocations: 9.281 kB / 0.5595 GB, free: 5.992 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002192/0.4313, allocations: 88.72 kB / 0.5596 GB, free: 5.984 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002629/0.4339, allocations: 0.6453 MB / 0.5602 GB, free: 5.695 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09261/0.5266, allocations: 7.058 MB / 0.5671 GB, free: 4.215 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008939/0.5355, allocations: 2.784 MB / 0.5698 GB, free: 2.688 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003229/0.5358, allocations: 197.8 kB / 0.57 GB, free: 2.629 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001832/0.5377, allocations: 272 kB / 0.5703 GB, free: 2.562 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01992/0.5576, allocations: 8.692 MB / 0.5788 GB, free: 13.34 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002139/0.5578, allocations: 41.36 kB / 0.5788 GB, free: 13.33 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007412/0.5585, allocations: 125 kB / 0.5789 GB, free: 13.28 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003478/0.562, allocations: 1.838 MB / 0.5807 GB, free: 12.59 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01883/0.5808, allocations: 7.335 MB / 0.5879 GB, free: 7.34 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05877/0.6396, allocations: 33.77 MB / 0.6209 GB, free: 5.027 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005631/0.6452, allocations: 1.994 MB / 0.6228 GB, free: 3.016 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001924/0.6472, allocations: 1.036 MB / 0.6238 GB, free: 1.973 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003605/0.6475, allocations: 99.33 kB / 0.6239 GB, free: 1.883 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.653e-05/0.6476, allocations: 54.19 kB / 0.624 GB, free: 1.824 MB / 462.1 MB Notification: Performance of pre-optimization done (n=119): time 4.9e-06/0.6476, allocations: 0 / 0.624 GB, free: 1.824 MB / 462.1 MB Notification: Performance of matching and sorting (n=133): time 0.02979/0.6774, allocations: 9.068 MB / 0.6328 GB, free: 8.738 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001495/0.6775, allocations: 199.8 kB / 0.633 GB, free: 8.504 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008973/0.6865, allocations: 3.983 MB / 0.6369 GB, free: 4.539 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003496/0.6868, allocations: 41.7 kB / 0.6369 GB, free: 4.492 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003638/0.6905, allocations: 3.094 MB / 0.64 GB, free: 1.414 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001297/0.6918, allocations: 0.5649 MB / 0.6405 GB, free: 0.8555 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003224/0.695, allocations: 1.177 MB / 0.6417 GB, free: 15.67 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001587/0.6952, allocations: 301.1 kB / 0.642 GB, free: 15.38 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00349/0.6987, allocations: 1.702 MB / 0.6436 GB, free: 13.67 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008138/0.7068, allocations: 5.508 MB / 0.649 GB, free: 6.301 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01224/0.719, allocations: 7.865 MB / 0.6567 GB, free: 12.87 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001632/0.7192, allocations: 36 kB / 0.6567 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of matching and sorting (n=751) (initialization): time 0.01678/0.736, allocations: 7.104 MB / 0.6636 GB, free: 5.719 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001963/0.7362, allocations: 64 kB / 0.6637 GB, free: 5.656 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002509/0.7364, allocations: 138.2 kB / 0.6638 GB, free: 5.523 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001237/0.7377, allocations: 417.5 kB / 0.6642 GB, free: 5.113 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004772/0.7424, allocations: 1.322 MB / 0.6655 GB, free: 3.789 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004861/0.7473, allocations: 3.259 MB / 0.6687 GB, free: 432 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005779/0.7531, allocations: 303.7 kB / 0.669 GB, free: 128 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001618/0.7547, allocations: 368 kB / 0.6693 GB, free: 15.77 MB / 0.5137 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.005696/0.7604, allocations: 1.951 MB / 0.6713 GB, free: 13.8 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001013/0.7614, allocations: 349.6 kB / 0.6716 GB, free: 13.46 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004362/0.7658, allocations: 1.687 MB / 0.6732 GB, free: 11.76 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.783e-05/0.7658, allocations: 19.98 kB / 0.6733 GB, free: 11.74 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.68e-05/0.7658, allocations: 4 kB / 0.6733 GB, free: 11.73 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.974e-05/0.7658, allocations: 3.984 kB / 0.6733 GB, free: 11.73 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01564/0.7815, allocations: 5.413 MB / 0.6785 GB, free: 6.285 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.765e-05/0.7815, allocations: 0 / 0.6785 GB, free: 6.285 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001075/0.7826, allocations: 191.7 kB / 0.6787 GB, free: 6.098 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008751/0.7835, allocations: 228.6 kB / 0.6789 GB, free: 5.875 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002063/0.7837, allocations: 28.8 kB / 0.679 GB, free: 5.848 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003631/0.7873, allocations: 2.59 MB / 0.6815 GB, free: 3.145 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.837e-06/0.7873, allocations: 12.03 kB / 0.6815 GB, free: 3.133 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006787/0.7941, allocations: 3.551 MB / 0.685 GB, free: 15.53 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00199/0.7961, allocations: 481.5 kB / 0.6854 GB, free: 15.06 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001091/0.7972, allocations: 22.3 kB / 0.6855 GB, free: 15.04 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001969/0.7991, allocations: 60 kB / 0.6855 GB, free: 14.98 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002849/0.7994, allocations: 72.45 kB / 0.6856 GB, free: 14.91 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001434/0.7996, allocations: 40 kB / 0.6856 GB, free: 14.87 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00609/0.8057, allocations: 2.489 MB / 0.6881 GB, free: 12.4 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.71e-07/0.8057, allocations: 0 / 0.6881 GB, free: 12.4 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006219/0.8119, allocations: 0.8513 MB / 0.6889 GB, free: 11.55 MB / 0.5294 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.007161/0.819, allocations: 4.193 MB / 0.693 GB, free: 7.32 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.008768/0.8278, allocations: 3.968 MB / 0.6969 GB, free: 3.375 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.085e-05/0.8278, allocations: 0 / 0.6969 GB, free: 3.375 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0023/0.8301, allocations: 0.9436 MB / 0.6978 GB, free: 2.422 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00615/0.8363, allocations: 391.5 kB / 0.6982 GB, free: 2.043 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09714/0.9334, allocations: 40.38 MB / 0.7376 GB, free: 3.828 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006161/0.9396, allocations: 2.952 MB / 0.7405 GB, free: 0.8438 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.005455/0.945, allocations: 1.818 MB / 0.7423 GB, free: 15.02 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003761/0.9488, allocations: 1.651 MB / 0.7439 GB, free: 13.37 MB / 0.5919 GB Notification: Performance of SimCode: time 1.713e-06/0.9488, allocations: 0 / 0.7439 GB, free: 13.37 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3953/1.344, allocations: 62.92 MB / 0.8053 GB, free: 206.3 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.12/23.46, allocations: 12.61 kB / 0.8053 GB, free: 206.3 MB / 0.6075 GB " [Timeout remaining time 636] (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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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: 27.49903645098675]