Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001964/0.001964, allocations: 113 kB / 18.49 MB, free: 4.598 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.002316/0.002316, allocations: 213.4 kB / 21.45 MB, free: 1.652 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.514/1.514, allocations: 230.6 MB / 254.8 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2213/0.2213, allocations: 44.9 MB / 355.8 MB, free: 12.32 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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_0_0_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 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.002009/0.002009, allocations: 71.91 kB / 0.4885 GB, free: 11.69 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1175, allocations: 65.42 MB / 0.5524 GB, free: 10.15 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01184/0.1294, allocations: 9.091 MB / 0.5613 GB, free: 1.012 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.008292/0.1376, allocations: 3.592 MB / 0.5648 GB, free: 13.41 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001477/0.1391, allocations: 67.69 kB / 0.5649 GB, free: 13.34 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004302/0.1434, allocations: 1.931 MB / 0.5668 GB, free: 11.4 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004571/0.148, allocations: 1.611 MB / 0.5683 GB, free: 9.785 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001628/0.1496, allocations: 0.5653 MB / 0.5689 GB, free: 9.219 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.005956/0.1556, allocations: 3.661 MB / 0.5725 GB, free: 5.551 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003252/0.1588, allocations: 2.073 MB / 0.5745 GB, free: 3.422 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002293/0.1611, allocations: 1.18 MB / 0.5756 GB, free: 2.238 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002942/0.1641, allocations: 1.776 MB / 0.5774 GB, free: 468 kB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007522/0.1648, allocations: 240 kB / 0.5776 GB, free: 228 kB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002366/0.1672, allocations: 1.158 MB / 0.5787 GB, free: 15.06 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001978/0.1692, allocations: 1.55 MB / 0.5803 GB, free: 13.51 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002411/0.1716, allocations: 1.775 MB / 0.582 GB, free: 11.72 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008271/0.1798, allocations: 5.883 MB / 0.5877 GB, free: 5.816 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.1798, allocations: 0 / 0.5877 GB, free: 5.816 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.1799, allocations: 4 kB / 0.5877 GB, free: 5.812 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001939/0.18, allocations: 3.984 kB / 0.5877 GB, free: 5.809 MB / 446.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.01185/0.1919, allocations: 4.054 MB / 0.5917 GB, free: 1.68 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.269e-05/0.192, allocations: 8.031 kB / 0.5917 GB, free: 1.672 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.000132/0.1921, allocations: 80.78 kB / 0.5918 GB, free: 1.59 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00111/0.1932, allocations: 0.5792 MB / 0.5923 GB, free: 1 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3543/0.5475, allocations: 6.956 MB / 0.5991 GB, free: 35.77 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005973/0.5535, allocations: 2.469 MB / 0.6016 GB, free: 35.28 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002235/0.5537, allocations: 180.6 kB / 0.6017 GB, free: 35.22 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009131/0.5546, allocations: 236.5 kB / 0.6019 GB, free: 35.17 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01445/0.5691, allocations: 7.728 MB / 0.6095 GB, free: 31.36 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001306/0.5692, allocations: 41.38 kB / 0.6095 GB, free: 31.34 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004056/0.5696, allocations: 117.6 kB / 0.6096 GB, free: 31.29 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002604/0.5722, allocations: 1.586 MB / 0.6112 GB, free: 31.01 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0113/0.5835, allocations: 6.46 MB / 0.6175 GB, free: 28.17 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02829/0.6118, allocations: 31.36 MB / 0.6481 GB, free: 12.45 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004983/0.6168, allocations: 2.346 MB / 0.6504 GB, free: 9.957 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001458/0.6183, allocations: 0.9767 MB / 0.6514 GB, free: 8.969 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003795/0.6186, allocations: 323.1 kB / 0.6517 GB, free: 8.598 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.5e-05/0.6187, allocations: 58.42 kB / 0.6517 GB, free: 8.531 MB / 462.1 MB Notification: Performance of pre-optimization done (n=104): time 3.246e-06/0.6187, allocations: 112 / 0.6517 GB, free: 8.531 MB / 462.1 MB Notification: Performance of matching and sorting (n=118): time 0.02353/0.6422, allocations: 8.547 MB / 0.6601 GB, free: 15.98 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000134/0.6424, allocations: 188.5 kB / 0.6603 GB, free: 15.76 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006114/0.6485, allocations: 3.77 MB / 0.6639 GB, free: 12 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002621/0.6487, allocations: 41.7 kB / 0.664 GB, free: 11.95 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002741/0.6515, allocations: 2.83 MB / 0.6667 GB, free: 9.094 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000849/0.6523, allocations: 0.5041 MB / 0.6672 GB, free: 8.586 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001955/0.6543, allocations: 1.099 MB / 0.6683 GB, free: 7.477 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.6544, allocations: 301.1 kB / 0.6686 GB, free: 7.18 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002846/0.6573, allocations: 1.588 MB / 0.6702 GB, free: 5.586 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006851/0.6641, allocations: 5.141 MB / 0.6752 GB, free: 14.64 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009847/0.674, allocations: 7.324 MB / 0.6823 GB, free: 5.543 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000102/0.6741, allocations: 38.94 kB / 0.6824 GB, free: 5.508 MB / 494.1 MB Notification: Performance of matching and sorting (n=698) (initialization): time 0.01236/0.6864, allocations: 6.647 MB / 0.6889 GB, free: 14.85 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.98e-05/0.6865, allocations: 60 kB / 0.6889 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001408/0.6867, allocations: 128 kB / 0.689 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009816/0.6877, allocations: 400.9 kB / 0.6894 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003691/0.6913, allocations: 1.224 MB / 0.6906 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004199/0.6955, allocations: 3.334 MB / 0.6939 GB, free: 9.574 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003447/0.699, allocations: 283.7 kB / 0.6941 GB, free: 9.297 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005498/0.6995, allocations: 348 kB / 0.6945 GB, free: 8.957 MB / 0.4981 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.002728/0.7023, allocations: 1.771 MB / 0.6962 GB, free: 7.172 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005783/0.7029, allocations: 329.8 kB / 0.6965 GB, free: 6.848 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002915/0.7058, allocations: 1.466 MB / 0.6979 GB, free: 5.379 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.574e-05/0.7058, allocations: 16.78 kB / 0.698 GB, free: 5.363 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.326e-06/0.7058, allocations: 4 kB / 0.698 GB, free: 5.359 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.139e-05/0.7058, allocations: 3.984 kB / 0.698 GB, free: 5.355 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009148/0.715, allocations: 4.839 MB / 0.7027 GB, free: 456 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.395e-06/0.715, allocations: 0 / 0.7027 GB, free: 456 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000833/0.7158, allocations: 159.8 kB / 0.7028 GB, free: 296 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007116/0.7165, allocations: 221 kB / 0.7031 GB, free: 72 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001186/0.7166, allocations: 20 kB / 0.7031 GB, free: 52 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003424/0.7201, allocations: 2.703 MB / 0.7057 GB, free: 13.21 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.7201, allocations: 3.984 kB / 0.7057 GB, free: 13.2 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005215/0.7253, allocations: 3.3 MB / 0.7089 GB, free: 9.883 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008772/0.7262, allocations: 370.8 kB / 0.7093 GB, free: 9.5 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003745/0.7265, allocations: 20.06 kB / 0.7093 GB, free: 9.48 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001049/0.7276, allocations: 51.94 kB / 0.7094 GB, free: 9.43 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001784/0.7278, allocations: 60.42 kB / 0.7094 GB, free: 9.371 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.623e-05/0.7278, allocations: 35.98 kB / 0.7095 GB, free: 9.336 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.00415/0.732, allocations: 2.343 MB / 0.7117 GB, free: 7.008 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.81e-07/0.732, allocations: 0 / 0.7117 GB, free: 7.008 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.00439/0.7364, allocations: 0.7655 MB / 0.7125 GB, free: 6.242 MB / 0.5137 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.005788/0.7422, allocations: 3.926 MB / 0.7163 GB, free: 2.285 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.006939/0.7491, allocations: 3.683 MB / 0.7199 GB, free: 14.61 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/0.7491, allocations: 0 / 0.7199 GB, free: 14.61 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001621/0.7507, allocations: 0.8841 MB / 0.7208 GB, free: 13.71 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002541/0.7533, allocations: 374 kB / 0.7211 GB, free: 13.35 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06025/0.8135, allocations: 37.21 MB / 0.7575 GB, free: 2.77 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003519/0.817, allocations: 2.72 MB / 0.7601 GB, free: 24 kB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.00405/0.8211, allocations: 1.708 MB / 0.7618 GB, free: 14.31 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002385/0.8235, allocations: 1.452 MB / 0.7632 GB, free: 12.86 MB / 0.5762 GB Notification: Performance of SimCode: time 9.62e-07/0.8235, allocations: 0 / 0.7632 GB, free: 12.86 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1104/0.9339, allocations: 54.57 MB / 0.8165 GB, free: 6.59 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.34/24.27, allocations: 12 kB / 0.8165 GB, free: 6.578 MB / 0.6231 GB " [Timeout remaining time 636] (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance2_fmu --startTime=0 --stopTime=0.5 --stepSize=9.996e-05 --timeout=50 --tolerance=1e-10 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 28.298944448004477]