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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001834/0.001834, allocations: 116.7 kB / 18.5 MB, free: 4.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002144/0.002144, allocations: 189.2 kB / 21.44 MB, free: 1.645 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.468/1.468, allocations: 225.6 MB / 249.8 MB, free: 3.613 MB / 190.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.2367/0.2367, allocations: 44.91 MB / 349.6 MB, free: 1.738 MB / 270.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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.001927/0.001927, allocations: 72.12 kB / 491.8 MB, free: 30.05 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1075, allocations: 64.25 MB / 0.543 GB, free: 4.027 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.0115/0.119, allocations: 9.299 MB / 0.5521 GB, free: 10.67 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.007233/0.1263, allocations: 3.605 MB / 0.5556 GB, free: 7.055 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001081/0.1273, allocations: 51.88 kB / 0.5556 GB, free: 7.004 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003736/0.1311, allocations: 1.958 MB / 0.5576 GB, free: 5.039 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00417/0.1352, allocations: 1.681 MB / 0.5592 GB, free: 3.352 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001464/0.1367, allocations: 0.5692 MB / 0.5598 GB, free: 2.781 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005534/0.1422, allocations: 3.704 MB / 0.5634 GB, free: 15.07 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002728/0.145, allocations: 2.109 MB / 0.5654 GB, free: 12.9 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001672/0.1466, allocations: 1.203 MB / 0.5666 GB, free: 11.7 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002382/0.149, allocations: 1.822 MB / 0.5684 GB, free: 9.867 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005131/0.1495, allocations: 248 kB / 0.5686 GB, free: 9.625 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001992/0.1515, allocations: 1.178 MB / 0.5698 GB, free: 8.445 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001688/0.1532, allocations: 1.62 MB / 0.5714 GB, free: 6.82 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002328/0.1555, allocations: 1.864 MB / 0.5732 GB, free: 4.945 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007998/0.1635, allocations: 6.14 MB / 0.5792 GB, free: 14.78 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.1636, allocations: 0 / 0.5792 GB, free: 14.78 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1636, allocations: 0 / 0.5792 GB, free: 14.78 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001183/0.1637, allocations: 0 / 0.5792 GB, free: 14.78 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: 1269 * Number of variables: 1269 Notification: Performance of Generate backend data structure: time 0.008819/0.1725, allocations: 4.202 MB / 0.5833 GB, free: 10.5 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.096e-05/0.1725, allocations: 12.03 kB / 0.5833 GB, free: 10.49 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008015/0.1733, allocations: 0.6002 MB / 0.5839 GB, free: 9.883 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07816/0.2515, allocations: 7.017 MB / 0.5907 GB, free: 2.855 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006974/0.2585, allocations: 2.624 MB / 0.5933 GB, free: 172 kB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001806/0.2587, allocations: 185 kB / 0.5935 GB, free: 15.98 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000795/0.2594, allocations: 247.8 kB / 0.5937 GB, free: 15.74 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01418/0.2736, allocations: 8.087 MB / 0.6016 GB, free: 7.016 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001165/0.2737, allocations: 39.64 kB / 0.6016 GB, free: 6.977 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003786/0.2741, allocations: 123.9 kB / 0.6018 GB, free: 6.855 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002879/0.277, allocations: 1.707 MB / 0.6034 GB, free: 5.148 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2806/0.5576, allocations: 6.768 MB / 0.61 GB, free: 53.82 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0389/0.5965, allocations: 32.1 MB / 0.6414 GB, free: 31.31 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004644/0.6012, allocations: 2.339 MB / 0.6437 GB, free: 29.82 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001473/0.6026, allocations: 0.9818 MB / 0.6446 GB, free: 29.3 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003438/0.603, allocations: 325.5 kB / 0.6449 GB, free: 28.98 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.238e-05/0.603, allocations: 43.16 kB / 0.645 GB, free: 28.94 MB / 462.1 MB Notification: Performance of pre-optimization done (n=104): time 4.037e-06/0.603, allocations: 0 / 0.645 GB, free: 28.94 MB / 462.1 MB Notification: Performance of matching and sorting (n=118): time 0.02226/0.6253, allocations: 8.665 MB / 0.6534 GB, free: 24.07 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001195/0.6254, allocations: 188.4 kB / 0.6536 GB, free: 23.85 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007251/0.6326, allocations: 3.831 MB / 0.6574 GB, free: 21.94 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003349/0.633, allocations: 44.73 kB / 0.6574 GB, free: 21.9 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002144/0.6351, allocations: 2.922 MB / 0.6603 GB, free: 19.41 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000606/0.6357, allocations: 0.5056 MB / 0.6607 GB, free: 19 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001437/0.6372, allocations: 1.115 MB / 0.6618 GB, free: 18.29 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 6.758e-05/0.6372, allocations: 309 kB / 0.6621 GB, free: 17.98 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001865/0.6391, allocations: 1.601 MB / 0.6637 GB, free: 16.38 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003221/0.6423, allocations: 5.212 MB / 0.6688 GB, free: 9.336 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006383/0.6487, allocations: 7.411 MB / 0.676 GB, free: 128 kB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.006e-05/0.6488, allocations: 36 kB / 0.6761 GB, free: 92 kB / 462.1 MB Notification: Performance of matching and sorting (n=707) (initialization): time 0.01428/0.6631, allocations: 6.713 MB / 0.6826 GB, free: 9.367 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001047/0.6632, allocations: 63.98 kB / 0.6827 GB, free: 9.305 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001837/0.6634, allocations: 129 kB / 0.6828 GB, free: 9.18 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001071/0.6644, allocations: 404.7 kB / 0.6832 GB, free: 8.781 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003937/0.6684, allocations: 1.244 MB / 0.6844 GB, free: 7.535 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004225/0.6726, allocations: 3.341 MB / 0.6877 GB, free: 4.059 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003889/0.6765, allocations: 291.6 kB / 0.6879 GB, free: 3.773 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008027/0.6773, allocations: 347.6 kB / 0.6883 GB, free: 3.438 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 586 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.arrowLine.twoHeadedArrow,distance2.arrow.headAtOrigin,distance1.arrow.arrowLine.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 (672): * Single equations (assignments): 668 * 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.003269/0.6806, allocations: 1.838 MB / 0.6901 GB, free: 1.586 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006831/0.6812, allocations: 325.8 kB / 0.6904 GB, free: 1.266 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00302/0.6843, allocations: 1.471 MB / 0.6918 GB, free: 15.79 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.848e-05/0.6843, allocations: 15.98 kB / 0.6918 GB, free: 15.77 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.039e-05/0.6843, allocations: 4 kB / 0.6918 GB, free: 15.77 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.789e-05/0.6843, allocations: 9.75 kB / 0.6918 GB, free: 15.76 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01083/0.6952, allocations: 4.959 MB / 0.6967 GB, free: 10.76 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.261e-05/0.6952, allocations: 4 kB / 0.6967 GB, free: 10.76 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008381/0.696, allocations: 159.8 kB / 0.6968 GB, free: 10.6 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007233/0.6967, allocations: 220.6 kB / 0.697 GB, free: 10.38 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001156/0.6968, allocations: 23.98 kB / 0.6971 GB, free: 10.36 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0035/0.7003, allocations: 2.705 MB / 0.6997 GB, free: 7.516 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/0.7004, allocations: 3.938 kB / 0.6997 GB, free: 7.512 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005368/0.7057, allocations: 3.295 MB / 0.7029 GB, free: 4.195 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001028/0.7067, allocations: 378.7 kB / 0.7033 GB, free: 3.805 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004404/0.7072, allocations: 16 kB / 0.7033 GB, free: 3.789 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001089/0.7083, allocations: 59.88 kB / 0.7034 GB, free: 3.73 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001904/0.7085, allocations: 64.48 kB / 0.7034 GB, free: 3.664 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.715e-05/0.7086, allocations: 39.98 kB / 0.7035 GB, free: 3.625 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004116/0.7127, allocations: 2.371 MB / 0.7058 GB, free: 1.27 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.7127, allocations: 0 / 0.7058 GB, free: 1.27 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004842/0.7175, allocations: 0.8043 MB / 0.7066 GB, free: 480 kB / 494.1 MB 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.006135/0.7236, allocations: 3.92 MB / 0.7104 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.007007/0.7307, allocations: 3.718 MB / 0.714 GB, free: 8.816 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.041e-06/0.7307, allocations: 0 / 0.714 GB, free: 8.816 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001647/0.7323, allocations: 0.8813 MB / 0.7149 GB, free: 7.922 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002544/0.7349, allocations: 401.6 kB / 0.7153 GB, free: 7.535 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06368/0.7985, allocations: 37.86 MB / 0.7522 GB, free: 12.26 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004243/0.8028, allocations: 2.809 MB / 0.755 GB, free: 9.43 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004296/0.8071, allocations: 1.729 MB / 0.7567 GB, free: 7.699 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002554/0.8096, allocations: 1.519 MB / 0.7582 GB, free: 6.18 MB / 0.545 GB Notification: Performance of SimCode: time 1.112e-06/0.8096, allocations: 4 kB / 0.7582 GB, free: 6.176 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1172/0.9269, allocations: 55.53 MB / 0.8124 GB, free: 14.98 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.03/25.96, allocations: 11.94 kB / 0.8124 GB, free: 14.96 MB / 0.6075 GB " [Timeout remaining time 634] (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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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.494784978684038]