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.001797/0.001797, allocations: 111.7 kB / 19.69 MB, free: 2.188 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.002193/0.002193, allocations: 217.7 kB / 23.01 MB, free: 5 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.507/1.507, allocations: 207.6 MB / 233.8 MB, free: 10 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.2395/0.2395, allocations: 44.24 MB / 330.3 MB, free: 9.535 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.002378/0.002378, allocations: 74.56 kB / 467.5 MB, free: 4.527 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1366/0.139, allocations: 61.04 MB / 0.5161 GB, free: 7.344 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01397/0.153, allocations: 10.09 MB / 0.526 GB, free: 13.2 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01073/0.1637, allocations: 3.743 MB / 0.5297 GB, free: 9.445 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002823/0.1665, allocations: 59.75 kB / 0.5297 GB, free: 9.387 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005335/0.1719, allocations: 1.993 MB / 0.5317 GB, free: 7.387 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005421/0.1773, allocations: 1.79 MB / 0.5334 GB, free: 5.59 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00184/0.1791, allocations: 0.5692 MB / 0.534 GB, free: 5.02 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00637/0.1855, allocations: 3.743 MB / 0.5376 GB, free: 1.266 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2838/0.4693, allocations: 2.15 MB / 0.5397 GB, free: 10.83 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003557/0.4728, allocations: 1.303 MB / 0.541 GB, free: 10.75 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005684/0.4785, allocations: 1.983 MB / 0.5429 GB, free: 10.55 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001724/0.4802, allocations: 274.5 kB / 0.5432 GB, free: 10.55 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003528/0.4838, allocations: 1.187 MB / 0.5443 GB, free: 10.55 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003109/0.4869, allocations: 1.74 MB / 0.546 GB, free: 10.34 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004664/0.4915, allocations: 2.005 MB / 0.548 GB, free: 9.629 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01248/0.504, allocations: 6.603 MB / 0.5544 GB, free: 8.422 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.965e-06/0.504, allocations: 3.828 kB / 0.5545 GB, free: 8.422 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.765e-06/0.504, allocations: 0 / 0.5545 GB, free: 8.422 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002952/0.5043, allocations: 0 / 0.5545 GB, free: 8.422 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.01826/0.5226, allocations: 4.384 MB / 0.5587 GB, free: 6.031 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.81e-05/0.5226, allocations: 9.156 kB / 0.5587 GB, free: 6.031 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002923/0.5256, allocations: 0.644 MB / 0.5594 GB, free: 5.746 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08469/0.6102, allocations: 7.061 MB / 0.5663 GB, free: 4.262 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008541/0.6188, allocations: 2.792 MB / 0.569 GB, free: 2.727 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002372/0.619, allocations: 195.8 kB / 0.5692 GB, free: 2.668 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001403/0.6204, allocations: 259.4 kB / 0.5694 GB, free: 2.613 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01865/0.6391, allocations: 8.692 MB / 0.5779 GB, free: 13.38 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002104/0.6393, allocations: 43.72 kB / 0.578 GB, free: 13.37 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001166/0.6404, allocations: 128.6 kB / 0.5781 GB, free: 13.32 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003326/0.6438, allocations: 1.833 MB / 0.5799 GB, free: 12.62 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0162/0.66, allocations: 7.343 MB / 0.587 GB, free: 7.402 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06103/0.721, allocations: 33.75 MB / 0.62 GB, free: 5.098 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005892/0.7269, allocations: 2.002 MB / 0.622 GB, free: 3.078 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001997/0.7289, allocations: 1.032 MB / 0.623 GB, free: 2.039 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004562/0.7293, allocations: 102.8 kB / 0.6231 GB, free: 1.945 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.766e-05/0.7294, allocations: 50.52 kB / 0.6231 GB, free: 1.891 MB / 462.1 MB Notification: Performance of pre-optimization done (n=119): time 5.34e-06/0.7294, allocations: 0 / 0.6231 GB, free: 1.891 MB / 462.1 MB Notification: Performance of matching and sorting (n=133): time 0.03027/0.7597, allocations: 9.065 MB / 0.632 GB, free: 8.809 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001551/0.7598, allocations: 200.2 kB / 0.6322 GB, free: 8.574 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01116/0.771, allocations: 3.99 MB / 0.6361 GB, free: 4.602 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004901/0.7715, allocations: 45.61 kB / 0.6361 GB, free: 4.555 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00417/0.7757, allocations: 3.089 MB / 0.6391 GB, free: 1.48 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001214/0.7769, allocations: 0.5648 MB / 0.6397 GB, free: 0.9219 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004451/0.7813, allocations: 1.172 MB / 0.6408 GB, free: 15.74 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001606/0.7815, allocations: 305.1 kB / 0.6411 GB, free: 15.44 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004123/0.7856, allocations: 1.698 MB / 0.6428 GB, free: 13.74 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008495/0.7941, allocations: 5.509 MB / 0.6481 GB, free: 6.371 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01171/0.8058, allocations: 7.857 MB / 0.6558 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001633/0.806, allocations: 40 kB / 0.6558 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of matching and sorting (n=751) (initialization): time 0.01696/0.8229, allocations: 7.104 MB / 0.6628 GB, free: 5.777 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002004/0.8231, allocations: 67.97 kB / 0.6629 GB, free: 5.715 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002914/0.8234, allocations: 140 kB / 0.663 GB, free: 5.578 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001309/0.8247, allocations: 412.6 kB / 0.6634 GB, free: 5.172 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005289/0.83, allocations: 1.326 MB / 0.6647 GB, free: 3.844 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005089/0.8351, allocations: 3.258 MB / 0.6679 GB, free: 488 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005676/0.8408, allocations: 308.9 kB / 0.6681 GB, free: 180 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001629/0.8424, allocations: 368 kB / 0.6685 GB, free: 15.82 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.006196/0.8486, allocations: 1.939 MB / 0.6704 GB, free: 13.87 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001019/0.8496, allocations: 349.6 kB / 0.6707 GB, free: 13.52 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004757/0.8544, allocations: 1.691 MB / 0.6724 GB, free: 11.82 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.375e-05/0.8544, allocations: 26.12 kB / 0.6724 GB, free: 11.79 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.803e-05/0.8545, allocations: 4 kB / 0.6724 GB, free: 11.79 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.784e-05/0.8545, allocations: 3.984 kB / 0.6724 GB, free: 11.79 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01812/0.8726, allocations: 5.412 MB / 0.6777 GB, free: 6.34 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-05/0.8726, allocations: 11.98 kB / 0.6777 GB, free: 6.328 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001105/0.8737, allocations: 179.7 kB / 0.6779 GB, free: 6.152 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008209/0.8746, allocations: 224.7 kB / 0.6781 GB, free: 5.93 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000241/0.8748, allocations: 24 kB / 0.6781 GB, free: 5.906 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003602/0.8784, allocations: 2.599 MB / 0.6807 GB, free: 3.195 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/0.8784, allocations: 0 / 0.6807 GB, free: 3.195 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007021/0.8854, allocations: 3.567 MB / 0.6841 GB, free: 15.58 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002163/0.8876, allocations: 477.4 kB / 0.6846 GB, free: 15.11 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001195/0.8888, allocations: 20 kB / 0.6846 GB, free: 15.09 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002121/0.8909, allocations: 55.94 kB / 0.6847 GB, free: 15.04 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004372/0.8914, allocations: 83.09 kB / 0.6847 GB, free: 14.96 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002148/0.8916, allocations: 39.98 kB / 0.6848 GB, free: 14.92 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006969/0.8985, allocations: 2.485 MB / 0.6872 GB, free: 12.45 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.91e-07/0.8985, allocations: 0 / 0.6872 GB, free: 12.45 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006767/0.9053, allocations: 0.8437 MB / 0.688 GB, free: 11.61 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.007781/0.9131, allocations: 4.195 MB / 0.6921 GB, free: 7.375 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01253/0.9256, allocations: 3.957 MB / 0.696 GB, free: 3.441 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.648e-06/0.9256, allocations: 4.25 kB / 0.696 GB, free: 3.438 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002069/0.9277, allocations: 0.9431 MB / 0.6969 GB, free: 2.488 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003907/0.9316, allocations: 400.1 kB / 0.6973 GB, free: 2.102 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09561/1.027, allocations: 40.38 MB / 0.7367 GB, free: 3.895 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008563/1.036, allocations: 2.96 MB / 0.7396 GB, free: 0.9023 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.006656/1.042, allocations: 1.811 MB / 0.7414 GB, free: 15.08 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004213/1.047, allocations: 1.655 MB / 0.743 GB, free: 13.43 MB / 0.5919 GB Notification: Performance of SimCode: time 2.545e-06/1.047, allocations: 0 / 0.743 GB, free: 13.43 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4432/1.49, allocations: 62.89 MB / 0.8044 GB, free: 206.2 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.95/22.44, allocations: 6.656 kB / 0.8044 GB, free: 206.2 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: 25.928787192096934]