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.001276/0.001276, allocations: 109.7 kB / 16.41 MB, free: 6.492 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.001236/0.001236, allocations: 185.5 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.532/1.532, 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.2359/0.2359, 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.002227/0.002227, allocations: 71.89 kB / 441.3 MB, free: 6.164 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.1189, 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.0131/0.1321, allocations: 10.02 MB / 0.4972 GB, free: 2.238 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.009763/0.1419, allocations: 3.692 MB / 0.5008 GB, free: 14.54 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002391/0.1443, allocations: 51.88 kB / 0.5008 GB, free: 14.48 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004889/0.1493, allocations: 1.97 MB / 0.5028 GB, free: 12.51 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005267/0.1546, allocations: 1.735 MB / 0.5045 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001654/0.1563, allocations: 0.5653 MB / 0.505 GB, free: 10.2 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00691/0.1632, allocations: 3.743 MB / 0.5087 GB, free: 6.445 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00428/0.1675, allocations: 2.55 MB / 0.5111 GB, free: 3.84 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002659/0.1702, allocations: 1.273 MB / 0.5124 GB, free: 2.562 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003381/0.1736, allocations: 1.826 MB / 0.5142 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001096/0.1747, allocations: 276 kB / 0.5144 GB, free: 472 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003124/0.1779, allocations: 1.151 MB / 0.5156 GB, free: 15.31 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002533/0.1804, allocations: 1.687 MB / 0.5172 GB, free: 13.62 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004368/0.1848, allocations: 1.996 MB / 0.5192 GB, free: 11.61 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01145/0.1963, allocations: 6.607 MB / 0.5256 GB, free: 4.977 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.174e-06/0.1963, allocations: 3.938 kB / 0.5256 GB, free: 4.973 MB / 414.1 MB Notification: Performance of FrontEnd: time 5.56e-06/0.1964, allocations: 0 / 0.5256 GB, free: 4.973 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002701/0.1966, allocations: 3.938 kB / 0.5256 GB, free: 4.969 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.01451/0.2112, allocations: 4.457 MB / 0.53 GB, free: 448 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.648e-05/0.2113, allocations: 15.89 kB / 0.53 GB, free: 432 kB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.2084/0.4196, allocations: 0.6328 MB / 0.5306 GB, free: 36.86 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09379/0.5135, allocations: 7.064 MB / 0.5375 GB, free: 36.63 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00651/0.52, allocations: 2.855 MB / 0.5403 GB, free: 36.18 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002169/0.5203, allocations: 201.2 kB / 0.5405 GB, free: 36.18 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001019/0.5213, allocations: 259.1 kB / 0.5407 GB, free: 36.17 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01477/0.5361, allocations: 8.694 MB / 0.5492 GB, free: 31.97 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001407/0.5362, allocations: 42.73 kB / 0.5493 GB, free: 31.95 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007528/0.537, allocations: 133.7 kB / 0.5494 GB, free: 31.89 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003032/0.54, allocations: 1.83 MB / 0.5512 GB, free: 31.18 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01224/0.5523, allocations: 7.332 MB / 0.5583 GB, free: 26.38 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03428/0.5866, allocations: 33.91 MB / 0.5915 GB, free: 7.754 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005329/0.592, allocations: 2.523 MB / 0.5939 GB, free: 5.078 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001668/0.5937, allocations: 1.124 MB / 0.595 GB, free: 3.945 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003997/0.5941, allocations: 327.8 kB / 0.5953 GB, free: 3.57 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.939e-05/0.5942, allocations: 51.12 kB / 0.5954 GB, free: 3.512 MB / 430.1 MB Notification: Performance of pre-optimization done (n=119): time 3.376e-06/0.5942, allocations: 336 / 0.5954 GB, free: 3.512 MB / 430.1 MB Notification: Performance of matching and sorting (n=133): time 0.02354/0.6177, allocations: 9.14 MB / 0.6043 GB, free: 10.39 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001325/0.6179, allocations: 206.5 kB / 0.6045 GB, free: 10.15 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00617/0.6241, allocations: 3.99 MB / 0.6084 GB, free: 6.176 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002588/0.6244, allocations: 41.7 kB / 0.6084 GB, free: 6.129 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002605/0.627, allocations: 3.091 MB / 0.6115 GB, free: 3.008 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008389/0.6278, allocations: 0.5623 MB / 0.612 GB, free: 2.441 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00192/0.6298, allocations: 1.175 MB / 0.6132 GB, free: 1.254 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001522/0.6299, allocations: 301.1 kB / 0.6134 GB, free: 0.957 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0033/0.6332, allocations: 1.705 MB / 0.6151 GB, free: 15.25 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007309/0.6406, allocations: 5.513 MB / 0.6205 GB, free: 7.809 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01054/0.6512, allocations: 7.852 MB / 0.6282 GB, free: 14.05 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001033/0.6513, allocations: 40 kB / 0.6282 GB, free: 14.01 MB / 478.1 MB Notification: Performance of matching and sorting (n=751) (initialization): time 0.01378/0.6651, allocations: 7.101 MB / 0.6351 GB, free: 6.902 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001107/0.6652, allocations: 67.94 kB / 0.6352 GB, free: 6.836 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001678/0.6654, allocations: 136 kB / 0.6353 GB, free: 6.703 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00101/0.6664, allocations: 413.1 kB / 0.6357 GB, free: 6.297 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004313/0.6708, allocations: 1.326 MB / 0.637 GB, free: 4.969 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004389/0.6752, allocations: 3.376 MB / 0.6403 GB, free: 1.453 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004273/0.6795, allocations: 307.5 kB / 0.6406 GB, free: 1.152 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007647/0.6803, allocations: 368 kB / 0.641 GB, free: 0.793 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.003286/0.6836, allocations: 1.939 MB / 0.6428 GB, free: 14.84 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006486/0.6842, allocations: 353.6 kB / 0.6432 GB, free: 14.49 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003332/0.6876, allocations: 1.699 MB / 0.6448 GB, free: 12.77 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-05/0.6876, allocations: 16 kB / 0.6449 GB, free: 12.76 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.348e-06/0.6876, allocations: 4 kB / 0.6449 GB, free: 12.75 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.207e-05/0.6876, allocations: 3.984 kB / 0.6449 GB, free: 12.75 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009849/0.6975, allocations: 5.44 MB / 0.6502 GB, free: 7.227 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.09e-05/0.6975, allocations: 4 kB / 0.6502 GB, free: 7.223 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009109/0.6984, allocations: 179.8 kB / 0.6504 GB, free: 7.047 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007309/0.6992, allocations: 232.7 kB / 0.6506 GB, free: 6.816 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.553e-05/0.6993, allocations: 20 kB / 0.6506 GB, free: 6.797 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003395/0.7027, allocations: 2.703 MB / 0.6532 GB, free: 3.953 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/0.7027, allocations: 4 kB / 0.6532 GB, free: 3.949 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005733/0.7085, allocations: 3.559 MB / 0.6567 GB, free: 360 kB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001329/0.7098, allocations: 0.5456 MB / 0.6572 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004376/0.7103, allocations: 19.94 kB / 0.6573 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001112/0.7114, allocations: 67.98 kB / 0.6573 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002019/0.7116, allocations: 72.39 kB / 0.6574 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.788e-05/0.7117, allocations: 43.73 kB / 0.6574 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003945/0.7157, allocations: 2.485 MB / 0.6599 GB, free: 13.12 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.1e-07/0.7157, allocations: 0 / 0.6599 GB, free: 13.12 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005068/0.7208, allocations: 0.8476 MB / 0.6607 GB, free: 12.27 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.00625/0.727, allocations: 4.191 MB / 0.6648 GB, free: 8.039 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.007296/0.7344, allocations: 4.11 MB / 0.6688 GB, free: 3.938 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 7.474e-06/0.7344, allocations: 0 / 0.6688 GB, free: 3.938 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001672/0.7361, allocations: 1.013 MB / 0.6698 GB, free: 2.914 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002474/0.7386, allocations: 402.8 kB / 0.6702 GB, free: 2.527 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07141/0.81, allocations: 40.31 MB / 0.7095 GB, free: 4.359 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005876/0.8159, allocations: 2.952 MB / 0.7124 GB, free: 1.379 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005023/0.821, allocations: 1.814 MB / 0.7142 GB, free: 15.55 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003197/0.8242, allocations: 1.651 MB / 0.7158 GB, free: 13.9 MB / 0.5606 GB Notification: Performance of SimCode: time 1.383e-06/0.8242, allocations: 0 / 0.7158 GB, free: 13.9 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3406/1.165, allocations: 57.82 MB / 0.7723 GB, free: 186.9 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.97/21.13, allocations: 10.59 kB / 0.7723 GB, free: 186.8 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 & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.csv --start-time 0 --stop-time 0.5 --timeout 50 --relative-tolerance 1e-10 --interface-type ModelExchange --solver CVode --output-interval 0.0002 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.csv","/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