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.001647/0.001647, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.002058/0.002058, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.558/1.558, allocations: 230.6 MB / 254.1 MB, free: 15.1 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.2356/0.2356, allocations: 46.92 MB / 357.1 MB, free: 10.43 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.002061/0.002061, allocations: 72.06 kB / 0.4909 GB, free: 8.078 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1182, allocations: 65.99 MB / 0.5554 GB, free: 5.961 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.011/0.1292, allocations: 8.953 MB / 0.5641 GB, free: 12.96 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.007432/0.1366, allocations: 3.567 MB / 0.5676 GB, free: 9.383 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001193/0.1378, allocations: 59.75 kB / 0.5677 GB, free: 9.324 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003868/0.1417, allocations: 1.693 MB / 0.5693 GB, free: 7.625 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004083/0.1457, allocations: 1.576 MB / 0.5708 GB, free: 6.043 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001455/0.1472, allocations: 0.5536 MB / 0.5714 GB, free: 5.488 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.005577/0.1528, allocations: 3.579 MB / 0.5749 GB, free: 1.902 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003131/0.1559, allocations: 1.865 MB / 0.5767 GB, free: 15.98 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002317/0.1582, allocations: 1.121 MB / 0.5778 GB, free: 14.86 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00287/0.1611, allocations: 1.667 MB / 0.5794 GB, free: 13.19 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007891/0.1619, allocations: 220 kB / 0.5796 GB, free: 12.97 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002469/0.1643, allocations: 1.135 MB / 0.5807 GB, free: 11.84 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002082/0.1664, allocations: 1.453 MB / 0.5822 GB, free: 10.38 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00296/0.1694, allocations: 1.681 MB / 0.5838 GB, free: 8.688 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009413/0.1788, allocations: 5.572 MB / 0.5892 GB, free: 3.094 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.1788, allocations: 0 / 0.5892 GB, free: 3.094 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.1788, allocations: 4 kB / 0.5893 GB, free: 3.09 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001943/0.179, allocations: 0 / 0.5893 GB, free: 3.09 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: 1141 * Number of variables: 1141 Notification: Performance of Generate backend data structure: time 0.2676/0.4466, allocations: 3.874 MB / 0.593 GB, free: 32.68 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/0.4466, allocations: 8.938 kB / 0.593 GB, free: 32.68 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009812/0.4476, allocations: 0.5419 MB / 0.5936 GB, free: 32.61 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09575/0.5434, allocations: 6.947 MB / 0.6004 GB, free: 32.34 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006409/0.5498, allocations: 2.4 MB / 0.6027 GB, free: 31.72 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000186/0.5499, allocations: 166.3 kB / 0.6029 GB, free: 31.67 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009732/0.5509, allocations: 227.6 kB / 0.6031 GB, free: 31.61 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01479/0.5657, allocations: 7.335 MB / 0.6102 GB, free: 27.84 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001929/0.5659, allocations: 41.78 kB / 0.6103 GB, free: 27.81 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007867/0.5667, allocations: 107.3 kB / 0.6104 GB, free: 27.77 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002901/0.5696, allocations: 1.541 MB / 0.6119 GB, free: 27.17 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01147/0.5811, allocations: 6.191 MB / 0.6179 GB, free: 24.14 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0305/0.6116, allocations: 29.91 MB / 0.6471 GB, free: 9.527 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005031/0.6166, allocations: 2.101 MB / 0.6492 GB, free: 7.277 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001633/0.6182, allocations: 0.9865 MB / 0.6502 GB, free: 6.281 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004555/0.6187, allocations: 327.5 kB / 0.6505 GB, free: 5.906 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.894e-05/0.6187, allocations: 39 kB / 0.6505 GB, free: 5.859 MB / 462.1 MB Notification: Performance of pre-optimization done (n=108): time 4.228e-06/0.6187, allocations: 0 / 0.6505 GB, free: 5.859 MB / 462.1 MB Notification: Performance of matching and sorting (n=132): time 0.0386/0.6573, allocations: 11.05 MB / 0.6613 GB, free: 10.74 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001426/0.6575, allocations: 192.6 kB / 0.6615 GB, free: 10.51 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007899/0.6654, allocations: 3.618 MB / 0.665 GB, free: 6.891 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003095/0.6657, allocations: 45.7 kB / 0.6651 GB, free: 6.84 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002906/0.6686, allocations: 2.667 MB / 0.6677 GB, free: 4.145 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000905/0.6695, allocations: 0.5506 MB / 0.6682 GB, free: 3.59 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002651/0.6721, allocations: 1.056 MB / 0.6692 GB, free: 2.523 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.6723, allocations: 304.4 kB / 0.6695 GB, free: 2.227 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003288/0.6756, allocations: 1.626 MB / 0.6711 GB, free: 0.5938 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006574/0.6821, allocations: 4.969 MB / 0.676 GB, free: 9.938 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009998/0.6921, allocations: 7.177 MB / 0.683 GB, free: 1.102 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001664/0.6923, allocations: 32 kB / 0.683 GB, free: 1.07 MB / 494.1 MB Notification: Performance of matching and sorting (n=675) (initialization): time 0.01419/0.7065, allocations: 6.571 MB / 0.6894 GB, free: 10.49 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001543/0.7066, allocations: 56 kB / 0.6895 GB, free: 10.44 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000217/0.7069, allocations: 120 kB / 0.6896 GB, free: 10.32 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001228/0.7081, allocations: 397 kB / 0.69 GB, free: 9.93 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004204/0.7123, allocations: 1.189 MB / 0.6911 GB, free: 8.738 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004656/0.717, allocations: 3.325 MB / 0.6944 GB, free: 5.277 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004003/0.721, allocations: 279.6 kB / 0.6946 GB, free: 5.004 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009461/0.7219, allocations: 324 kB / 0.695 GB, free: 4.688 MB / 0.4981 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.003561/0.7255, allocations: 1.699 MB / 0.6966 GB, free: 2.977 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009076/0.7264, allocations: 322.7 kB / 0.6969 GB, free: 2.66 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004116/0.7305, allocations: 1.71 MB / 0.6986 GB, free: 0.9375 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-05/0.7305, allocations: 20 kB / 0.6986 GB, free: 0.918 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.695e-05/0.7305, allocations: 7.984 kB / 0.6986 GB, free: 0.9102 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.979e-05/0.7306, allocations: 3.984 kB / 0.6986 GB, free: 0.9062 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0117/0.7423, allocations: 5.239 MB / 0.7037 GB, free: 11.57 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.611e-05/0.7423, allocations: 4 kB / 0.7037 GB, free: 11.57 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001137/0.7434, allocations: 191.7 kB / 0.7039 GB, free: 11.38 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008513/0.7443, allocations: 236.9 kB / 0.7041 GB, free: 11.15 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001737/0.7444, allocations: 27.92 kB / 0.7042 GB, free: 11.12 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003534/0.748, allocations: 2.684 MB / 0.7068 GB, free: 8.293 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.748, allocations: 4.031 kB / 0.7068 GB, free: 8.289 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006649/0.7546, allocations: 3.732 MB / 0.7104 GB, free: 4.52 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009623/0.7556, allocations: 370.9 kB / 0.7108 GB, free: 4.137 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006943/0.7563, allocations: 24 kB / 0.7108 GB, free: 4.113 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001597/0.7579, allocations: 63.98 kB / 0.7109 GB, free: 4.051 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002899/0.7582, allocations: 72.5 kB / 0.711 GB, free: 3.98 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001542/0.7583, allocations: 35.98 kB / 0.711 GB, free: 3.945 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.00487/0.7632, allocations: 2.265 MB / 0.7132 GB, free: 1.691 MB / 0.5137 GB Notification: Performance of sort global known variables: time 4.81e-07/0.7632, allocations: 3.938 kB / 0.7132 GB, free: 1.688 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004775/0.768, allocations: 0.7616 MB / 0.7139 GB, free: 0.9258 MB / 0.5137 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.007316/0.7753, allocations: 4.349 MB / 0.7182 GB, free: 12.54 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007673/0.783, allocations: 3.8 MB / 0.7219 GB, free: 8.75 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.077e-06/0.783, allocations: 0 / 0.7219 GB, free: 8.75 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001808/0.7848, allocations: 1.003 MB / 0.7229 GB, free: 7.734 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003119/0.7879, allocations: 363.8 kB / 0.7232 GB, free: 7.383 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06817/0.8561, allocations: 36.55 MB / 0.7589 GB, free: 13.81 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003965/0.86, allocations: 2.639 MB / 0.7615 GB, free: 11.14 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.00439/0.8644, allocations: 1.698 MB / 0.7632 GB, free: 9.438 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00268/0.8671, allocations: 1.401 MB / 0.7645 GB, free: 8.035 MB / 0.5762 GB Notification: Performance of SimCode: time 1.373e-06/0.8671, allocations: 0 / 0.7645 GB, free: 8.035 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1206/0.9877, allocations: 53.73 MB / 0.817 GB, free: 2.578 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.26/25.25, allocations: 10.81 kB / 0.817 GB, free: 2.57 MB / 0.6231 GB " [Timeout remaining time 635] (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: 28.78903958108276]