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.002011/0.002011, allocations: 114 kB / 19.58 MB, free: 2.285 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.001815/0.001815, allocations: 207.8 kB / 22.87 MB, free: 5.645 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.473/1.473, allocations: 207.6 MB / 233.6 MB, free: 9.988 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.2353/0.2353, allocations: 44.23 MB / 330.1 MB, free: 9.562 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="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.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.002273/0.002273, allocations: 71.89 kB / 467.2 MB, free: 4.648 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1166, allocations: 61.04 MB / 0.5158 GB, free: 7.469 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01214/0.1287, allocations: 10.01 MB / 0.5256 GB, free: 13.41 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.008173/0.1369, allocations: 3.723 MB / 0.5292 GB, free: 9.672 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00132/0.1382, allocations: 63.69 kB / 0.5293 GB, free: 9.609 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003916/0.1421, allocations: 1.985 MB / 0.5312 GB, free: 7.617 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004521/0.1467, allocations: 1.794 MB / 0.533 GB, free: 5.816 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001295/0.1479, allocations: 0.5731 MB / 0.5336 GB, free: 5.242 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00514/0.1531, allocations: 3.747 MB / 0.5372 GB, free: 1.484 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2349/0.388, allocations: 2.145 MB / 0.5393 GB, free: 10.81 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003262/0.3912, allocations: 1.302 MB / 0.5406 GB, free: 10.75 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004553/0.3958, allocations: 1.984 MB / 0.5425 GB, free: 10.54 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001582/0.3974, allocations: 274.8 kB / 0.5428 GB, free: 10.54 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002954/0.4003, allocations: 1.064 MB / 0.5438 GB, free: 10.54 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00255/0.4029, allocations: 1.745 MB / 0.5455 GB, free: 10.33 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00378/0.4067, allocations: 2.003 MB / 0.5475 GB, free: 9.621 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01011/0.4168, allocations: 6.631 MB / 0.554 GB, free: 8.445 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.4168, allocations: 1.062 kB / 0.554 GB, free: 8.445 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.4168, allocations: 0 / 0.554 GB, free: 8.445 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000217/0.417, allocations: 0 / 0.554 GB, free: 8.445 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.01336/0.4303, allocations: 4.379 MB / 0.5582 GB, free: 6.059 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.083e-05/0.4304, allocations: 9.312 kB / 0.5582 GB, free: 6.059 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001244/0.4316, allocations: 0.6481 MB / 0.5589 GB, free: 5.77 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0778/0.5094, allocations: 7.055 MB / 0.5658 GB, free: 4.387 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006792/0.5162, allocations: 2.803 MB / 0.5685 GB, free: 2.852 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001619/0.5164, allocations: 198.4 kB / 0.5687 GB, free: 2.793 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009771/0.5174, allocations: 259.9 kB / 0.5689 GB, free: 2.734 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01529/0.5326, allocations: 8.747 MB / 0.5775 GB, free: 13.44 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000117/0.5328, allocations: 42.08 kB / 0.5775 GB, free: 13.43 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004509/0.5332, allocations: 123.5 kB / 0.5776 GB, free: 13.38 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002839/0.536, allocations: 1.835 MB / 0.5794 GB, free: 12.69 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01461/0.5507, allocations: 7.335 MB / 0.5866 GB, free: 7.543 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05128/0.6019, allocations: 33.65 MB / 0.6195 GB, free: 5.348 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005598/0.6075, allocations: 1.985 MB / 0.6214 GB, free: 3.336 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001958/0.6095, allocations: 1.043 MB / 0.6224 GB, free: 2.289 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003425/0.6098, allocations: 102.2 kB / 0.6225 GB, free: 2.195 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.589e-05/0.6099, allocations: 43.06 kB / 0.6226 GB, free: 2.145 MB / 462.1 MB Notification: Performance of pre-optimization done (n=119): time 5.79e-06/0.6099, allocations: 0 / 0.6226 GB, free: 2.145 MB / 462.1 MB Notification: Performance of matching and sorting (n=133): time 0.02695/0.6369, allocations: 9.121 MB / 0.6315 GB, free: 9.016 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000144/0.637, allocations: 192.6 kB / 0.6316 GB, free: 8.785 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0088/0.6458, allocations: 3.99 MB / 0.6355 GB, free: 4.816 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002646/0.6461, allocations: 45.7 kB / 0.6356 GB, free: 4.766 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003127/0.6492, allocations: 3.089 MB / 0.6386 GB, free: 1.695 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009685/0.6502, allocations: 0.5642 MB / 0.6392 GB, free: 1.137 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002804/0.653, allocations: 1.174 MB / 0.6403 GB, free: 15.95 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001836/0.6531, allocations: 309.1 kB / 0.6406 GB, free: 15.64 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005006/0.6582, allocations: 1.694 MB / 0.6423 GB, free: 13.95 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01072/0.6689, allocations: 5.562 MB / 0.6477 GB, free: 6.516 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01321/0.6821, allocations: 7.854 MB / 0.6554 GB, free: 13.1 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001528/0.6822, allocations: 36 kB / 0.6554 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of matching and sorting (n=751) (initialization): time 0.0176/0.6998, allocations: 7.115 MB / 0.6623 GB, free: 5.945 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001757/0.7, allocations: 64 kB / 0.6624 GB, free: 5.883 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002568/0.7003, allocations: 136 kB / 0.6625 GB, free: 5.75 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001266/0.7015, allocations: 421.5 kB / 0.6629 GB, free: 5.34 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004833/0.7064, allocations: 1.326 MB / 0.6642 GB, free: 4.012 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00456/0.7109, allocations: 3.251 MB / 0.6674 GB, free: 0.6484 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00464/0.7156, allocations: 303 kB / 0.6677 GB, free: 364 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001273/0.7168, allocations: 372 kB / 0.668 GB, free: 15.99 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.004609/0.7214, allocations: 1.947 MB / 0.6699 GB, free: 14.04 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008494/0.7223, allocations: 349.6 kB / 0.6703 GB, free: 13.69 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003829/0.7261, allocations: 1.691 MB / 0.6719 GB, free: 11.98 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.493e-05/0.7262, allocations: 16 kB / 0.6719 GB, free: 11.97 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/0.7262, allocations: 0 / 0.6719 GB, free: 11.97 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.92e-05/0.7262, allocations: 7.984 kB / 0.6719 GB, free: 11.96 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01422/0.7404, allocations: 5.406 MB / 0.6772 GB, free: 6.52 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.438e-05/0.7404, allocations: 4 kB / 0.6772 GB, free: 6.516 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001011/0.7414, allocations: 183.8 kB / 0.6774 GB, free: 6.336 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007456/0.7422, allocations: 228.7 kB / 0.6776 GB, free: 6.109 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001747/0.7424, allocations: 24 kB / 0.6776 GB, free: 6.086 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003682/0.746, allocations: 2.607 MB / 0.6802 GB, free: 3.367 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.563e-06/0.746, allocations: 5.562 kB / 0.6802 GB, free: 3.363 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006164/0.7522, allocations: 3.551 MB / 0.6837 GB, free: 15.76 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001485/0.7537, allocations: 477.5 kB / 0.6841 GB, free: 15.29 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007933/0.7545, allocations: 28 kB / 0.6842 GB, free: 15.27 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001515/0.756, allocations: 52.56 kB / 0.6842 GB, free: 15.21 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002229/0.7562, allocations: 80.39 kB / 0.6843 GB, free: 15.14 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001088/0.7563, allocations: 39.98 kB / 0.6843 GB, free: 15.1 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005276/0.7616, allocations: 2.485 MB / 0.6867 GB, free: 12.63 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.01e-07/0.7616, allocations: 0 / 0.6867 GB, free: 12.63 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006085/0.7677, allocations: 0.8576 MB / 0.6876 GB, free: 11.78 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.006621/0.7743, allocations: 4.188 MB / 0.6917 GB, free: 7.551 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007608/0.7819, allocations: 3.952 MB / 0.6955 GB, free: 3.617 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/0.7819, allocations: 0 / 0.6955 GB, free: 3.617 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001662/0.7836, allocations: 0.9446 MB / 0.6965 GB, free: 2.664 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003088/0.7867, allocations: 401.3 kB / 0.6968 GB, free: 2.277 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07664/0.8633, allocations: 40.38 MB / 0.7363 GB, free: 4.07 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005735/0.8691, allocations: 2.411 MB / 0.7386 GB, free: 1.629 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.005218/0.8743, allocations: 1.815 MB / 0.7404 GB, free: 15.8 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003781/0.8781, allocations: 1.651 MB / 0.742 GB, free: 14.15 MB / 0.5919 GB Notification: Performance of SimCode: time 1.553e-06/0.8781, allocations: 0 / 0.742 GB, free: 14.15 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3718/1.25, allocations: 62.9 MB / 0.8034 GB, free: 207.4 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.33/22.58, allocations: 7.656 kB / 0.8034 GB, free: 207.4 MB / 0.6075 GB " [Timeout remaining time 637] (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: 26.072547249030322]