Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001104/0.001105, allocations: 103.6 kB / 16.4 MB, free: 6.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001111/0.001111, allocations: 189.5 kB / 17.34 MB, free: 5.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.358/1.358, allocations: 205.1 MB / 223.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1988/0.1988, allocations: 43.52 MB / 314.1 MB, free: 460 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001618/0.001618, allocations: 69.47 kB / 441.3 MB, free: 6.172 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1091, allocations: 57.79 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01188/0.121, allocations: 10.01 MB / 0.4972 GB, free: 2.242 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008239/0.1293, allocations: 3.707 MB / 0.5008 GB, free: 14.52 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00158/0.1309, allocations: 51.88 kB / 0.5008 GB, free: 14.47 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004246/0.1352, allocations: 1.946 MB / 0.5027 GB, free: 12.52 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004866/0.1401, allocations: 1.739 MB / 0.5044 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00167/0.1418, allocations: 0.5653 MB / 0.505 GB, free: 10.21 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005906/0.1478, allocations: 3.747 MB / 0.5086 GB, free: 6.449 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004302/0.1521, allocations: 2.554 MB / 0.5111 GB, free: 3.84 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002651/0.1548, allocations: 1.277 MB / 0.5124 GB, free: 2.559 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003166/0.158, allocations: 1.83 MB / 0.5142 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001081/0.1591, allocations: 276 kB / 0.5144 GB, free: 464 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003006/0.1621, allocations: 1.151 MB / 0.5156 GB, free: 15.3 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002344/0.1645, allocations: 1.691 MB / 0.5172 GB, free: 13.61 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003478/0.168, allocations: 2.008 MB / 0.5192 GB, free: 11.59 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008992/0.177, allocations: 6.575 MB / 0.5256 GB, free: 4.988 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.177, allocations: 3.938 kB / 0.5256 GB, free: 4.984 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.177, allocations: 0 / 0.5256 GB, free: 4.984 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001986/0.1773, allocations: 0 / 0.5256 GB, free: 4.984 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1367 * Number of variables: 1367 Notification: Performance of Generate backend data structure: time 0.01134/0.1886, allocations: 4.351 MB / 0.5298 GB, free: 0.5664 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/0.1887, allocations: 11.89 kB / 0.5299 GB, free: 0.5547 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.1986/0.3872, allocations: 0.6364 MB / 0.5305 GB, free: 36.93 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09237/0.4797, allocations: 7.035 MB / 0.5374 GB, free: 36.71 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007959/0.4876, allocations: 2.848 MB / 0.5401 GB, free: 36.08 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002196/0.4879, allocations: 194.5 kB / 0.5403 GB, free: 36.07 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001081/0.489, allocations: 261 kB / 0.5406 GB, free: 36.07 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01916/0.5082, allocations: 8.697 MB / 0.5491 GB, free: 31.96 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001582/0.5084, allocations: 36.31 kB / 0.5491 GB, free: 31.95 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006935/0.5091, allocations: 132.8 kB / 0.5492 GB, free: 31.89 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004703/0.5138, allocations: 1.831 MB / 0.551 GB, free: 31.18 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01866/0.5325, allocations: 7.344 MB / 0.5582 GB, free: 26.43 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04186/0.5744, allocations: 33.83 MB / 0.5912 GB, free: 7.699 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004937/0.5794, allocations: 2.519 MB / 0.5937 GB, free: 5.027 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001538/0.581, allocations: 1.122 MB / 0.5948 GB, free: 3.895 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004198/0.5814, allocations: 339.7 kB / 0.5951 GB, free: 3.508 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.915e-05/0.5815, allocations: 47.45 kB / 0.5951 GB, free: 3.453 MB / 430.1 MB Notification: Performance of pre-optimization done (n=119): time 5.42e-06/0.5815, allocations: 0 / 0.5951 GB, free: 3.453 MB / 430.1 MB Notification: Performance of matching and sorting (n=133): time 0.02272/0.6042, allocations: 8.939 MB / 0.6039 GB, free: 10.42 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001262/0.6044, allocations: 198.5 kB / 0.6041 GB, free: 10.19 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00569/0.6101, allocations: 3.982 MB / 0.608 GB, free: 6.223 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002048/0.6103, allocations: 41.7 kB / 0.608 GB, free: 6.176 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002269/0.6126, allocations: 2.976 MB / 0.6109 GB, free: 3.156 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006884/0.6133, allocations: 0.5365 MB / 0.6114 GB, free: 2.613 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001664/0.615, allocations: 1.17 MB / 0.6126 GB, free: 1.43 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001133/0.6151, allocations: 301.1 kB / 0.6129 GB, free: 1.133 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002733/0.6178, allocations: 1.694 MB / 0.6145 GB, free: 15.43 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005551/0.6234, allocations: 5.521 MB / 0.6199 GB, free: 7.984 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008865/0.6323, allocations: 7.852 MB / 0.6276 GB, free: 14.23 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001107/0.6325, allocations: 40 kB / 0.6276 GB, free: 14.19 MB / 478.1 MB Notification: Performance of matching and sorting (n=751) (initialization): time 0.01263/0.6451, allocations: 7.088 MB / 0.6345 GB, free: 7.09 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000136/0.6453, allocations: 67.94 kB / 0.6346 GB, free: 7.023 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001847/0.6455, allocations: 136 kB / 0.6347 GB, free: 6.891 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001035/0.6465, allocations: 416.8 kB / 0.6351 GB, free: 6.48 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004045/0.6506, allocations: 1.326 MB / 0.6364 GB, free: 5.152 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004247/0.6548, allocations: 3.354 MB / 0.6397 GB, free: 1.66 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004055/0.6589, allocations: 307.6 kB / 0.64 GB, free: 1.359 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001008/0.66, allocations: 375.9 kB / 0.6403 GB, free: 0.9961 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 619 * Number of states: 0 () * Number of discrete variables: 31 (LessEqualThreshold1.y,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 (716): * Single equations (assignments): 712 * 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.003442/0.6634, allocations: 1.935 MB / 0.6422 GB, free: 15.05 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007186/0.6642, allocations: 335.6 kB / 0.6425 GB, free: 14.71 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003405/0.6676, allocations: 1.71 MB / 0.6442 GB, free: 12.98 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.749e-05/0.6676, allocations: 16 kB / 0.6442 GB, free: 12.97 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.939e-06/0.6677, allocations: 0 / 0.6442 GB, free: 12.97 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.897e-05/0.6677, allocations: 7.984 kB / 0.6442 GB, free: 12.96 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01153/0.6792, allocations: 5.423 MB / 0.6495 GB, free: 7.457 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.368e-05/0.6793, allocations: 4 kB / 0.6495 GB, free: 7.453 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009377/0.6802, allocations: 179.8 kB / 0.6497 GB, free: 7.277 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006897/0.6809, allocations: 228.7 kB / 0.6499 GB, free: 7.051 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001146/0.6811, allocations: 23.98 kB / 0.65 GB, free: 7.027 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00311/0.6842, allocations: 2.711 MB / 0.6526 GB, free: 4.176 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.6842, allocations: 0 / 0.6526 GB, free: 4.176 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005288/0.6895, allocations: 3.549 MB / 0.6561 GB, free: 0.5859 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001468/0.691, allocations: 0.5317 MB / 0.6566 GB, free: 32 kB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005825/0.6916, allocations: 20 kB / 0.6566 GB, free: 12 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00127/0.6929, allocations: 55.94 kB / 0.6567 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002175/0.6931, allocations: 76.47 kB / 0.6567 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001019/0.6932, allocations: 43.92 kB / 0.6568 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.004197/0.6974, allocations: 2.481 MB / 0.6592 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.2e-07/0.6974, allocations: 0 / 0.6592 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004227/0.7017, allocations: 0.8464 MB / 0.66 GB, free: 12.54 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (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.00567/0.7073, allocations: 4.172 MB / 0.6641 GB, free: 8.32 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.007103/0.7145, allocations: 4.104 MB / 0.6681 GB, free: 4.227 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 7.784e-06/0.7145, allocations: 3.938 kB / 0.6681 GB, free: 4.223 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001596/0.7161, allocations: 1.013 MB / 0.6691 GB, free: 3.199 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002808/0.7189, allocations: 403.2 kB / 0.6695 GB, free: 2.812 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06525/0.7842, allocations: 40.16 MB / 0.7087 GB, free: 4.809 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004872/0.7891, allocations: 2.952 MB / 0.7116 GB, free: 1.828 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004491/0.7937, allocations: 1.822 MB / 0.7134 GB, free: 15.99 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002551/0.7962, allocations: 1.651 MB / 0.715 GB, free: 14.34 MB / 0.5606 GB Notification: Performance of SimCode: time 1.112e-06/0.7962, allocations: 0 / 0.715 GB, free: 14.34 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3291/1.125, allocations: 58.66 MB / 0.7723 GB, free: 187.2 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.31/20.43, allocations: 7.25 kB / 0.7723 GB, free: 187.2 MB / 0.5762 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-10 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches