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.001768/0.001768, allocations: 106.1 kB / 16.4 MB, free: 6.512 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.001906/0.001906, allocations: 188.2 kB / 17.34 MB, free: 5.738 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.438/1.438, allocations: 205.1 MB / 223.2 MB, free: 12.23 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.2254/0.2254, allocations: 43.53 MB / 314.1 MB, free: 468 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.002255/0.002255, allocations: 73.47 kB / 441.3 MB, free: 6.184 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1132, allocations: 57.79 MB / 499.1 MB, free: 12.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01255/0.1258, allocations: 10 MB / 0.4972 GB, free: 2.27 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008001/0.1339, allocations: 3.703 MB / 0.5008 GB, free: 14.55 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002149/0.1361, allocations: 51.88 kB / 0.5008 GB, free: 14.5 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004656/0.1408, allocations: 1.958 MB / 0.5027 GB, free: 12.54 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004981/0.1458, allocations: 1.739 MB / 0.5044 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001769/0.1476, allocations: 0.5692 MB / 0.505 GB, free: 10.22 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006285/0.1539, allocations: 3.747 MB / 0.5087 GB, free: 6.465 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004002/0.1579, allocations: 2.542 MB / 0.5111 GB, free: 3.867 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002601/0.1606, allocations: 1.273 MB / 0.5124 GB, free: 2.59 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003042/0.1636, allocations: 1.822 MB / 0.5142 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001008/0.1647, allocations: 276 kB / 0.5144 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002771/0.1675, allocations: 1.155 MB / 0.5156 GB, free: 15.34 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002297/0.1698, allocations: 1.691 MB / 0.5172 GB, free: 13.64 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003502/0.1733, allocations: 1.992 MB / 0.5192 GB, free: 11.64 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009862/0.1832, allocations: 6.607 MB / 0.5256 GB, free: 5.004 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.181e-05/0.1833, allocations: 3.984 kB / 0.5256 GB, free: 5 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.435e-06/0.1833, allocations: 3.938 kB / 0.5256 GB, free: 4.996 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002655/0.1836, allocations: 3.938 kB / 0.5256 GB, free: 4.992 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.01253/0.1961, allocations: 4.453 MB / 0.53 GB, free: 476 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.75e-05/0.1961, allocations: 11.89 kB / 0.53 GB, free: 464 kB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.2111/0.4073, allocations: 0.6383 MB / 0.5306 GB, free: 36.89 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09632/0.5036, allocations: 7.061 MB / 0.5375 GB, free: 36.66 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006941/0.5106, allocations: 2.859 MB / 0.5403 GB, free: 36.21 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001984/0.5108, allocations: 196.9 kB / 0.5405 GB, free: 36.21 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001059/0.5119, allocations: 259.9 kB / 0.5407 GB, free: 36.2 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01424/0.5262, allocations: 8.689 MB / 0.5492 GB, free: 32.02 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001393/0.5263, allocations: 48.12 kB / 0.5493 GB, free: 31.99 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006792/0.527, allocations: 130.6 kB / 0.5494 GB, free: 31.94 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003/0.53, allocations: 1.833 MB / 0.5512 GB, free: 31.22 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01197/0.542, allocations: 7.338 MB / 0.5583 GB, free: 26.38 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03891/0.581, allocations: 33.91 MB / 0.5914 GB, free: 7.773 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00561/0.5866, allocations: 2.522 MB / 0.5939 GB, free: 5.098 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001901/0.5886, allocations: 1.125 MB / 0.595 GB, free: 3.965 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004828/0.5891, allocations: 327.8 kB / 0.5953 GB, free: 3.59 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.222e-05/0.5892, allocations: 53.55 kB / 0.5954 GB, free: 3.531 MB / 430.1 MB Notification: Performance of pre-optimization done (n=119): time 9.128e-06/0.5892, allocations: 0 / 0.5954 GB, free: 3.531 MB / 430.1 MB Notification: Performance of matching and sorting (n=133): time 0.02781/0.617, allocations: 9.149 MB / 0.6043 GB, free: 10.4 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000176/0.6173, allocations: 200.5 kB / 0.6045 GB, free: 10.16 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008029/0.6253, allocations: 3.99 MB / 0.6084 GB, free: 6.191 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002552/0.6256, allocations: 43.67 kB / 0.6084 GB, free: 6.145 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002775/0.6284, allocations: 3.091 MB / 0.6115 GB, free: 3.023 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007756/0.6292, allocations: 0.5662 MB / 0.612 GB, free: 2.453 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00212/0.6313, allocations: 1.175 MB / 0.6132 GB, free: 1.266 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001331/0.6315, allocations: 301.1 kB / 0.6134 GB, free: 0.9688 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003036/0.6345, allocations: 1.702 MB / 0.6151 GB, free: 15.26 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006472/0.641, allocations: 5.513 MB / 0.6205 GB, free: 7.824 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01075/0.6518, allocations: 7.852 MB / 0.6282 GB, free: 14.07 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001465/0.652, allocations: 36 kB / 0.6282 GB, free: 14.03 MB / 478.1 MB Notification: Performance of matching and sorting (n=751) (initialization): time 0.01487/0.6669, allocations: 7.105 MB / 0.6351 GB, free: 6.918 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001653/0.6671, allocations: 63.94 kB / 0.6352 GB, free: 6.855 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002215/0.6673, allocations: 136 kB / 0.6353 GB, free: 6.723 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001157/0.6685, allocations: 417.4 kB / 0.6357 GB, free: 6.312 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004598/0.6731, allocations: 1.326 MB / 0.637 GB, free: 4.984 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004819/0.6779, allocations: 3.377 MB / 0.6403 GB, free: 1.465 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004907/0.6829, allocations: 307.6 kB / 0.6406 GB, free: 1.164 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001057/0.684, allocations: 368 kB / 0.641 GB, free: 0.8047 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.003905/0.6879, allocations: 1.947 MB / 0.6429 GB, free: 14.84 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008255/0.6887, allocations: 345.7 kB / 0.6432 GB, free: 14.5 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003851/0.6926, allocations: 1.695 MB / 0.6448 GB, free: 12.79 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.902e-05/0.6927, allocations: 16 kB / 0.6449 GB, free: 12.77 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.692e-05/0.6927, allocations: 7.938 kB / 0.6449 GB, free: 12.77 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.404e-05/0.6927, allocations: 3.984 kB / 0.6449 GB, free: 12.76 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01303/0.7058, allocations: 5.436 MB / 0.6502 GB, free: 7.242 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.641e-05/0.7058, allocations: 4 kB / 0.6502 GB, free: 7.238 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001023/0.7069, allocations: 183.7 kB / 0.6504 GB, free: 7.059 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008032/0.7077, allocations: 228.8 kB / 0.6506 GB, free: 6.832 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001936/0.7079, allocations: 23.98 kB / 0.6506 GB, free: 6.809 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003476/0.7114, allocations: 2.699 MB / 0.6532 GB, free: 3.969 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.124e-06/0.7114, allocations: 4 kB / 0.6532 GB, free: 3.965 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00643/0.7179, allocations: 3.563 MB / 0.6567 GB, free: 376 kB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001635/0.7195, allocations: 0.5379 MB / 0.6572 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009048/0.7205, allocations: 23.94 kB / 0.6573 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001742/0.7222, allocations: 67.91 kB / 0.6573 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002934/0.7226, allocations: 80.41 kB / 0.6574 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001425/0.7227, allocations: 39.94 kB / 0.6574 GB, free: 15.6 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.005283/0.728, allocations: 2.489 MB / 0.6599 GB, free: 13.13 MB / 0.4981 GB Notification: Performance of sort global known variables: time 5.91e-07/0.728, allocations: 0 / 0.6599 GB, free: 13.13 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005375/0.7334, allocations: 0.8437 MB / 0.6607 GB, free: 12.29 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.007132/0.7406, allocations: 4.184 MB / 0.6648 GB, free: 8.059 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00789/0.7485, allocations: 4.115 MB / 0.6688 GB, free: 3.953 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.045e-05/0.7486, allocations: 7.938 kB / 0.6688 GB, free: 3.945 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001775/0.7503, allocations: 1.002 MB / 0.6698 GB, free: 2.934 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003216/0.7536, allocations: 408.3 kB / 0.6702 GB, free: 2.547 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07249/0.8261, allocations: 40.31 MB / 0.7095 GB, free: 4.379 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005137/0.8313, allocations: 2.952 MB / 0.7124 GB, free: 1.398 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004946/0.8363, allocations: 1.818 MB / 0.7142 GB, free: 15.57 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003353/0.8396, allocations: 1.655 MB / 0.7158 GB, free: 13.91 MB / 0.5606 GB Notification: Performance of SimCode: time 1.283e-06/0.8397, allocations: 0 / 0.7158 GB, free: 13.91 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4064/1.246, allocations: 57.81 MB / 0.7723 GB, free: 187.1 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.33/20.58, allocations: 4 kB / 0.7723 GB, free: 187.1 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