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.001746/0.001746, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.001964/0.001964, allocations: 215.7 kB / 23.75 MB, free: 4.668 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.524/1.524, allocations: 230.6 MB / 257.5 MB, free: 8.004 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.2309/0.2309, allocations: 44.92 MB / 358.8 MB, free: 6.262 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",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.002332/0.002332, allocations: 67.91 kB / 0.4931 GB, free: 10.7 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3393/0.3416, allocations: 65.46 MB / 0.557 GB, free: 7.527 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01217/0.3538, allocations: 9.132 MB / 0.5659 GB, free: 14.6 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.008589/0.3624, allocations: 3.61 MB / 0.5695 GB, free: 10.98 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00195/0.3643, allocations: 63.69 kB / 0.5695 GB, free: 10.92 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004539/0.3689, allocations: 1.939 MB / 0.5714 GB, free: 8.973 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005866/0.3747, allocations: 1.611 MB / 0.573 GB, free: 7.355 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001972/0.3767, allocations: 0.577 MB / 0.5736 GB, free: 6.777 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006757/0.3835, allocations: 3.666 MB / 0.5771 GB, free: 3.105 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002874/0.3863, allocations: 1.998 MB / 0.5791 GB, free: 1.047 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001822/0.3882, allocations: 1.176 MB / 0.5802 GB, free: 15.87 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002529/0.3907, allocations: 1.779 MB / 0.582 GB, free: 14.08 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005498/0.3912, allocations: 240 kB / 0.5822 GB, free: 13.85 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00204/0.3933, allocations: 1.155 MB / 0.5833 GB, free: 12.69 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001583/0.3949, allocations: 1.554 MB / 0.5848 GB, free: 11.13 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001895/0.3968, allocations: 1.782 MB / 0.5866 GB, free: 9.34 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006696/0.4034, allocations: 5.879 MB / 0.5923 GB, free: 3.438 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.4035, allocations: 0 / 0.5923 GB, free: 3.438 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.4035, allocations: 0 / 0.5923 GB, free: 3.438 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001194/0.4036, allocations: 0 / 0.5923 GB, free: 3.438 MB / 430.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.0095/0.4131, allocations: 3.983 MB / 0.5962 GB, free: 15.4 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.651e-05/0.4131, allocations: 12.03 kB / 0.5962 GB, free: 15.39 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008067/0.4139, allocations: 0.5753 MB / 0.5968 GB, free: 14.8 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08559/0.4995, allocations: 6.966 MB / 0.6036 GB, free: 7.824 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006822/0.5063, allocations: 2.4 MB / 0.6059 GB, free: 5.387 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002012/0.5065, allocations: 180.8 kB / 0.6061 GB, free: 5.207 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009932/0.5075, allocations: 239.8 kB / 0.6063 GB, free: 4.973 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0135/0.521, allocations: 7.712 MB / 0.6139 GB, free: 12.61 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001145/0.5211, allocations: 43.62 kB / 0.6139 GB, free: 12.56 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003848/0.5215, allocations: 115.9 kB / 0.614 GB, free: 12.45 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002771/0.5243, allocations: 1.593 MB / 0.6156 GB, free: 10.85 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01263/0.5369, allocations: 6.46 MB / 0.6219 GB, free: 4.383 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04257/0.5795, allocations: 31.24 MB / 0.6524 GB, free: 4.16 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00491/0.5844, allocations: 1.904 MB / 0.6543 GB, free: 2.219 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001621/0.586, allocations: 0.9794 MB / 0.6552 GB, free: 1.227 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000323/0.5864, allocations: 95.92 kB / 0.6553 GB, free: 1.133 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.836e-05/0.5864, allocations: 38.56 kB / 0.6553 GB, free: 1.086 MB / 494.1 MB Notification: Performance of pre-optimization done (n=104): time 4.248e-06/0.5864, allocations: 0 / 0.6553 GB, free: 1.086 MB / 494.1 MB Notification: Performance of matching and sorting (n=118): time 0.02234/0.6087, allocations: 8.387 MB / 0.6635 GB, free: 8.641 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001511/0.6089, allocations: 188.4 kB / 0.6637 GB, free: 8.414 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005871/0.6148, allocations: 3.773 MB / 0.6674 GB, free: 4.648 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002144/0.615, allocations: 41.7 kB / 0.6674 GB, free: 4.602 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.00263/0.6176, allocations: 2.83 MB / 0.6702 GB, free: 1.742 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008256/0.6184, allocations: 0.5041 MB / 0.6707 GB, free: 1.234 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00174/0.6202, allocations: 1.099 MB / 0.6718 GB, free: 128 kB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0002168/0.6204, allocations: 301.1 kB / 0.672 GB, free: 15.83 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002733/0.6231, allocations: 1.588 MB / 0.6736 GB, free: 14.23 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006337/0.6295, allocations: 5.141 MB / 0.6786 GB, free: 7.289 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009936/0.6394, allocations: 7.326 MB / 0.6858 GB, free: 14.19 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001116/0.6395, allocations: 40 kB / 0.6858 GB, free: 14.15 MB / 0.5294 GB Notification: Performance of matching and sorting (n=698) (initialization): time 0.01317/0.6527, allocations: 6.635 MB / 0.6923 GB, free: 7.508 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.516e-05/0.6528, allocations: 60 kB / 0.6923 GB, free: 7.449 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001675/0.6529, allocations: 128.9 kB / 0.6925 GB, free: 7.324 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001021/0.654, allocations: 400.6 kB / 0.6929 GB, free: 6.93 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003893/0.6578, allocations: 1.224 MB / 0.694 GB, free: 5.703 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004385/0.6622, allocations: 3.233 MB / 0.6972 GB, free: 2.359 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003816/0.666, allocations: 287.6 kB / 0.6975 GB, free: 2.078 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008154/0.6669, allocations: 340 kB / 0.6978 GB, free: 1.746 MB / 0.5294 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.003249/0.6701, allocations: 1.789 MB / 0.6995 GB, free: 15.95 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006613/0.6708, allocations: 321.8 kB / 0.6999 GB, free: 15.63 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002949/0.6737, allocations: 1.469 MB / 0.7013 GB, free: 14.15 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.493e-05/0.6738, allocations: 12 kB / 0.7013 GB, free: 14.14 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.257e-05/0.6738, allocations: 7.938 kB / 0.7013 GB, free: 14.13 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.531e-05/0.6738, allocations: 3.984 kB / 0.7013 GB, free: 14.13 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01038/0.6842, allocations: 4.818 MB / 0.706 GB, free: 9.25 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-05/0.6842, allocations: 0 / 0.706 GB, free: 9.25 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008421/0.685, allocations: 155.8 kB / 0.7062 GB, free: 9.098 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007309/0.6858, allocations: 232.5 kB / 0.7064 GB, free: 8.867 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001242/0.6859, allocations: 20 kB / 0.7064 GB, free: 8.848 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003506/0.6894, allocations: 2.592 MB / 0.7089 GB, free: 6.141 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.432e-06/0.6894, allocations: 8.016 kB / 0.7089 GB, free: 6.133 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005296/0.6947, allocations: 3.294 MB / 0.7122 GB, free: 2.809 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008805/0.6956, allocations: 301.6 kB / 0.7125 GB, free: 2.512 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004777/0.696, allocations: 16 kB / 0.7125 GB, free: 2.496 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001077/0.6971, allocations: 51.94 kB / 0.7125 GB, free: 2.445 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002061/0.6973, allocations: 68.31 kB / 0.7126 GB, free: 2.379 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.825e-05/0.6974, allocations: 32 kB / 0.7126 GB, free: 2.348 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004409/0.7018, allocations: 2.343 MB / 0.7149 GB, free: 20 kB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7018, allocations: 0 / 0.7149 GB, free: 20 kB / 0.545 GB Notification: Performance of remove unused functions: time 0.004887/0.7067, allocations: 0.7734 MB / 0.7157 GB, free: 15.24 MB / 0.5606 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.005933/0.7127, allocations: 3.906 MB / 0.7195 GB, free: 11.31 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.007071/0.7197, allocations: 3.675 MB / 0.7231 GB, free: 7.648 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/0.7197, allocations: 3.938 kB / 0.7231 GB, free: 7.645 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.00158/0.7213, allocations: 0.8999 MB / 0.7239 GB, free: 6.734 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002374/0.7237, allocations: 372.2 kB / 0.7243 GB, free: 6.367 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2782/1.002, allocations: 37.27 MB / 0.7607 GB, free: 134.1 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002091/1.004, allocations: 2.713 MB / 0.7633 GB, free: 131.3 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003076/1.007, allocations: 1.708 MB / 0.765 GB, free: 129.6 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001535/1.009, allocations: 1.452 MB / 0.7664 GB, free: 128.2 MB / 0.5606 GB Notification: Performance of SimCode: time 9.62e-07/1.009, allocations: 0 / 0.7664 GB, free: 128.2 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1199/1.129, allocations: 58.88 MB / 0.8239 GB, free: 69.72 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.24/26.37, allocations: 2.406 kB / 0.8239 GB, free: 69.72 MB / 0.5606 GB " [Timeout remaining time 633] (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: 29.93301270599477]