Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.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.001828/0.001828, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.002281/0.002281, allocations: 204.9 kB / 23.73 MB, free: 4.379 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.482/1.482, allocations: 230.6 MB / 257.5 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2424/0.2424, allocations: 46.96 MB / 360.9 MB, free: 4.031 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.Distance,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002004/0.002004, allocations: 71.89 kB / 0.4961 GB, free: 7.723 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3455/0.3475, allocations: 66.03 MB / 0.5606 GB, free: 4.223 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01057/0.3581, allocations: 7.922 MB / 0.5683 GB, free: 12.26 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.007242/0.3653, allocations: 3.364 MB / 0.5716 GB, free: 8.887 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001199/0.3665, allocations: 55.75 kB / 0.5717 GB, free: 8.832 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003465/0.37, allocations: 1.643 MB / 0.5733 GB, free: 7.184 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004731/0.3747, allocations: 1.58 MB / 0.5748 GB, free: 5.602 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001348/0.376, allocations: 0.5653 MB / 0.5754 GB, free: 5.035 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005182/0.3812, allocations: 3.576 MB / 0.5788 GB, free: 1.449 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00261/0.3838, allocations: 1.821 MB / 0.5806 GB, free: 15.57 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001952/0.3858, allocations: 1.117 MB / 0.5817 GB, free: 14.45 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002619/0.3884, allocations: 1.67 MB / 0.5833 GB, free: 12.77 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005794/0.389, allocations: 220 kB / 0.5836 GB, free: 12.56 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001911/0.3909, allocations: 1.01 MB / 0.5845 GB, free: 11.55 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001515/0.3924, allocations: 1.449 MB / 0.586 GB, free: 10.09 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001718/0.3941, allocations: 1.242 MB / 0.5872 GB, free: 8.844 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00848/0.4026, allocations: 5.595 MB / 0.5926 GB, free: 3.227 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.375e-05/0.4026, allocations: 0 / 0.5926 GB, free: 3.227 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.656e-06/0.4026, allocations: 0 / 0.5926 GB, free: 3.227 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.000265/0.4029, allocations: 0 / 0.5926 GB, free: 3.227 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: 1141 * Number of variables: 1141 Notification: Performance of Generate backend data structure: time 0.01086/0.4137, allocations: 3.81 MB / 0.5964 GB, free: 15.36 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.916e-05/0.4138, allocations: 11.97 kB / 0.5964 GB, free: 15.35 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000889/0.4147, allocations: 0.5423 MB / 0.5969 GB, free: 14.79 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07659/0.4913, allocations: 6.939 MB / 0.6037 GB, free: 7.844 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006341/0.4976, allocations: 2.341 MB / 0.606 GB, free: 5.465 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001442/0.4978, allocations: 160.5 kB / 0.6061 GB, free: 5.305 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006886/0.4985, allocations: 227.8 kB / 0.6063 GB, free: 5.082 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01254/0.511, allocations: 7.386 MB / 0.6135 GB, free: 13.05 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001115/0.5111, allocations: 47.62 kB / 0.6136 GB, free: 13.01 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003286/0.5114, allocations: 107.9 kB / 0.6137 GB, free: 12.9 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002675/0.5141, allocations: 1.539 MB / 0.6152 GB, free: 11.36 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01211/0.5262, allocations: 6.174 MB / 0.6212 GB, free: 5.176 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03897/0.5652, allocations: 28.74 MB / 0.6493 GB, free: 7.52 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004412/0.5696, allocations: 1.646 MB / 0.6509 GB, free: 5.836 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001654/0.5713, allocations: 0.9846 MB / 0.6519 GB, free: 4.844 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003362/0.5716, allocations: 92.3 kB / 0.6519 GB, free: 4.754 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.9e-05/0.5716, allocations: 46.94 kB / 0.652 GB, free: 4.699 MB / 494.1 MB Notification: Performance of pre-optimization done (n=108): time 4.368e-06/0.5716, allocations: 0 / 0.652 GB, free: 4.699 MB / 494.1 MB Notification: Performance of matching and sorting (n=132): time 0.03527/0.6069, allocations: 10.95 MB / 0.6627 GB, free: 9.684 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001293/0.607, allocations: 196.5 kB / 0.6629 GB, free: 9.449 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005442/0.6125, allocations: 3.811 MB / 0.6666 GB, free: 5.637 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002688/0.6128, allocations: 49.7 kB / 0.6666 GB, free: 5.582 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.00218/0.6149, allocations: 2.667 MB / 0.6692 GB, free: 2.887 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007256/0.6157, allocations: 0.5468 MB / 0.6698 GB, free: 2.336 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001573/0.6172, allocations: 1.056 MB / 0.6708 GB, free: 1.27 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001412/0.6174, allocations: 305.1 kB / 0.6711 GB, free: 0.9688 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002719/0.6201, allocations: 1.626 MB / 0.6727 GB, free: 15.33 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005587/0.6257, allocations: 5.016 MB / 0.6776 GB, free: 8.617 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009688/0.6354, allocations: 7.166 MB / 0.6846 GB, free: 15.79 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000153/0.6355, allocations: 32 kB / 0.6846 GB, free: 15.76 MB / 0.5294 GB Notification: Performance of matching and sorting (n=675) (initialization): time 0.01347/0.649, allocations: 6.576 MB / 0.691 GB, free: 9.172 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.186e-05/0.6491, allocations: 58.5 kB / 0.6911 GB, free: 9.117 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001452/0.6492, allocations: 116 kB / 0.6912 GB, free: 9.004 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001002/0.6502, allocations: 404.9 kB / 0.6916 GB, free: 8.605 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004052/0.6543, allocations: 1.181 MB / 0.6927 GB, free: 7.422 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004116/0.6584, allocations: 3.198 MB / 0.6959 GB, free: 4.113 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003801/0.6622, allocations: 291.5 kB / 0.6961 GB, free: 3.828 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007475/0.6629, allocations: 320 kB / 0.6964 GB, free: 3.516 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 539 * Number of states: 0 () * Number of discrete variables: 29 (Distance1.arrow.twoHeadedArrow,Distance1.arrow.headAtOrigin,BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Distance1.arrowColor[3],Distance1.arrowColor[2],Distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (640): * Single equations (assignments): 636 * 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.002881/0.6658, allocations: 1.697 MB / 0.6981 GB, free: 1.805 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006618/0.6665, allocations: 313.9 kB / 0.6984 GB, free: 1.496 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003282/0.6698, allocations: 1.71 MB / 0.7001 GB, free: 15.77 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.231e-05/0.6698, allocations: 27.86 kB / 0.7001 GB, free: 15.75 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.002e-05/0.6698, allocations: 7.938 kB / 0.7001 GB, free: 15.74 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.791e-05/0.6698, allocations: 11.97 kB / 0.7001 GB, free: 15.73 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01028/0.6801, allocations: 4.92 MB / 0.7049 GB, free: 10.74 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-05/0.6801, allocations: 0 / 0.7049 GB, free: 10.74 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001042/0.6812, allocations: 187.8 kB / 0.7051 GB, free: 10.55 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007331/0.6819, allocations: 228.7 kB / 0.7053 GB, free: 10.33 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001098/0.682, allocations: 27.92 kB / 0.7053 GB, free: 10.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003152/0.6852, allocations: 2.569 MB / 0.7079 GB, free: 7.617 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.283e-06/0.6852, allocations: 7.875 kB / 0.7079 GB, free: 7.609 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005822/0.691, allocations: 3.725 MB / 0.7115 GB, free: 3.852 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001023/0.692, allocations: 301.7 kB / 0.7118 GB, free: 3.555 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003588/0.6924, allocations: 24.11 kB / 0.7118 GB, free: 3.531 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001093/0.6935, allocations: 67.92 kB / 0.7119 GB, free: 3.465 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002022/0.6937, allocations: 72.45 kB / 0.7119 GB, free: 3.395 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.826e-05/0.6938, allocations: 39.98 kB / 0.712 GB, free: 3.355 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003685/0.6975, allocations: 2.265 MB / 0.7142 GB, free: 1.102 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6975, allocations: 0 / 0.7142 GB, free: 1.102 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004374/0.7018, allocations: 0.7577 MB / 0.7149 GB, free: 352 kB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * 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.006301/0.7081, allocations: 4.358 MB / 0.7192 GB, free: 11.94 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.006975/0.7151, allocations: 3.782 MB / 0.7229 GB, free: 8.172 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 9.508e-06/0.7151, allocations: 5.125 kB / 0.7229 GB, free: 8.168 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001633/0.7167, allocations: 0.9939 MB / 0.7239 GB, free: 7.156 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002506/0.7192, allocations: 371.3 kB / 0.7242 GB, free: 6.793 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3069/1.026, allocations: 36.6 MB / 0.76 GB, free: 132.6 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001894/1.028, allocations: 2.076 MB / 0.762 GB, free: 130.5 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003024/1.031, allocations: 1.699 MB / 0.7636 GB, free: 128.9 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001436/1.032, allocations: 1.397 MB / 0.765 GB, free: 127.5 MB / 0.5606 GB Notification: Performance of SimCode: time 1.944e-06/1.032, allocations: 4 kB / 0.765 GB, free: 127.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09504/1.128, allocations: 55.9 MB / 0.8196 GB, free: 72.31 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.18/16.31, allocations: 0 / 0.8196 GB, free: 72.31 MB / 0.5606 GB " [Timeout remaining time 644] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_MultiBody_Sensors_Distance_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.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: 19.789191782998387]