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.000958/0.000958, allocations: 102.8 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009723/0.0009724, allocations: 184.2 kB / 16.92 MB, free: 6.918 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.376/1.376, allocations: 205.4 MB / 223.1 MB, free: 5.531 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3345/0.3345, allocations: 43.57 MB / 315 MB, free: 8.996 MB / 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.000499/0.000499, allocations: 16 kB / 384.7 MB, free: 7.781 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.1095, allocations: 58.86 MB / 443.5 MB, free: 12.82 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.2209/0.3305, allocations: 40.37 MB / 483.9 MB, free: 24.45 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01733/0.3478, allocations: 8.905 MB / 492.8 MB, free: 19.73 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006297/0.3542, allocations: 167.3 kB / 493 MB, free: 19.71 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001075/0.3553, allocations: 368.6 kB / 493.3 MB, free: 19.57 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003324/0.3586, allocations: 1.646 MB / 495 MB, free: 18.86 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009251/0.3595, allocations: 0.5202 MB / 495.5 MB, free: 18.65 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004617/0.3642, allocations: 5.384 MB / 0.4891 GB, free: 17.07 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00424/0.3684, allocations: 3.385 MB / 0.4925 GB, free: 15.69 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001778/0.3702, allocations: 0.9781 MB / 0.4934 GB, free: 15.32 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002515/0.3727, allocations: 1.772 MB / 0.4951 GB, free: 14.77 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004341/0.3732, allocations: 127.6 kB / 0.4953 GB, free: 14.77 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001995/0.3752, allocations: 1.07 MB / 0.4963 GB, free: 14.51 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001593/0.3768, allocations: 1.555 MB / 0.4978 GB, free: 14.04 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001574/0.3784, allocations: 1.835 MB / 0.4996 GB, free: 12.76 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009049/0.3874, allocations: 6.12 MB / 0.5056 GB, free: 10.67 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.261e-06/0.3875, allocations: 1.344 kB / 0.5056 GB, free: 10.67 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.3875, allocations: 0 / 0.5056 GB, free: 10.67 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000235/0.3877, allocations: 0 / 0.5056 GB, free: 10.67 MB / 382.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.01022/0.398, allocations: 3.571 MB / 0.5091 GB, free: 8.109 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.991e-05/0.398, allocations: 9.219 kB / 0.5091 GB, free: 8.109 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001867/0.3999, allocations: 0.6416 MB / 0.5097 GB, free: 7.66 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08885/0.4888, allocations: 7.234 MB / 0.5168 GB, free: 4.844 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00557/0.4944, allocations: 2.822 MB / 0.5195 GB, free: 1.957 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001002/0.4945, allocations: 193.3 kB / 0.5197 GB, free: 1.766 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000568/0.4951, allocations: 259.7 kB / 0.52 GB, free: 1.512 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01271/0.5078, allocations: 8.698 MB / 0.5285 GB, free: 8.16 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.823e-05/0.5079, allocations: 47.58 kB / 0.5285 GB, free: 8.113 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003702/0.5083, allocations: 127.8 kB / 0.5286 GB, free: 7.988 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002987/0.5113, allocations: 1.833 MB / 0.5304 GB, free: 6.152 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01254/0.5239, allocations: 7.362 MB / 0.5376 GB, free: 14.78 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04018/0.5641, allocations: 34.01 MB / 0.5708 GB, free: 11.77 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005165/0.5693, allocations: 2.538 MB / 0.5733 GB, free: 9.078 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001528/0.5708, allocations: 1.126 MB / 0.5744 GB, free: 7.941 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004237/0.5713, allocations: 331.7 kB / 0.5747 GB, free: 7.562 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.306e-05/0.5713, allocations: 43.12 kB / 0.5748 GB, free: 7.512 MB / 446.1 MB Notification: Performance of pre-optimization done (n=119): time 3.947e-06/0.5713, allocations: 0 / 0.5748 GB, free: 7.512 MB / 446.1 MB Notification: Performance of matching and sorting (n=133): time 0.02177/0.5931, allocations: 8.943 MB / 0.5835 GB, free: 14.47 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001031/0.5933, allocations: 196.6 kB / 0.5837 GB, free: 14.24 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006148/0.5994, allocations: 3.978 MB / 0.5876 GB, free: 10.28 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002542/0.5997, allocations: 45.7 kB / 0.5876 GB, free: 10.23 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002273/0.602, allocations: 2.968 MB / 0.5905 GB, free: 7.215 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007376/0.6027, allocations: 0.5442 MB / 0.591 GB, free: 6.664 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006224/0.6034, allocations: 494.7 kB / 0.5915 GB, free: 6.172 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001169/0.6035, allocations: 301.1 kB / 0.5918 GB, free: 5.875 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002715/0.6062, allocations: 1.694 MB / 0.5935 GB, free: 4.176 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005426/0.6116, allocations: 5.521 MB / 0.5988 GB, free: 12.73 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009073/0.6208, allocations: 7.839 MB / 0.6065 GB, free: 2.984 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001004/0.6209, allocations: 40 kB / 0.6065 GB, free: 2.945 MB / 478.1 MB Notification: Performance of matching and sorting (n=751) (initialization): time 0.01396/0.6349, allocations: 7.1 MB / 0.6135 GB, free: 11.84 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.984e-05/0.635, allocations: 64 kB / 0.6135 GB, free: 11.78 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001721/0.6352, allocations: 136.1 kB / 0.6137 GB, free: 11.64 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009625/0.6362, allocations: 426 kB / 0.6141 GB, free: 11.23 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004357/0.6405, allocations: 1.326 MB / 0.6154 GB, free: 9.898 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003813/0.6444, allocations: 3.123 MB / 0.6184 GB, free: 6.645 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00448/0.6489, allocations: 315.5 kB / 0.6187 GB, free: 6.336 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007248/0.6496, allocations: 364 kB / 0.6191 GB, free: 5.98 MB / 494.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.003371/0.653, allocations: 1.935 MB / 0.621 GB, free: 4.031 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005315/0.6535, allocations: 331.7 kB / 0.6213 GB, free: 3.703 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00304/0.6566, allocations: 1.695 MB / 0.6229 GB, free: 1.988 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.316e-05/0.6566, allocations: 16 kB / 0.6229 GB, free: 1.973 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/0.6566, allocations: 4 kB / 0.6229 GB, free: 1.969 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.226e-05/0.6567, allocations: 7.969 kB / 0.6229 GB, free: 1.961 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009138/0.6658, allocations: 5.459 MB / 0.6283 GB, free: 12.42 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.247e-05/0.6658, allocations: 4 kB / 0.6283 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008886/0.6667, allocations: 183.8 kB / 0.6285 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007088/0.6675, allocations: 232.7 kB / 0.6287 GB, free: 12 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.139e-05/0.6676, allocations: 20 kB / 0.6287 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002815/0.6704, allocations: 2.526 MB / 0.6312 GB, free: 9.32 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.6704, allocations: 4 kB / 0.6312 GB, free: 9.316 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005009/0.6754, allocations: 3.537 MB / 0.6346 GB, free: 5.742 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001394/0.6768, allocations: 0.5318 MB / 0.6351 GB, free: 5.188 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004842/0.6773, allocations: 27.94 kB / 0.6352 GB, free: 5.16 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001133/0.6785, allocations: 59.94 kB / 0.6352 GB, free: 5.102 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002037/0.6787, allocations: 72.47 kB / 0.6353 GB, free: 5.031 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000112/0.6788, allocations: 43.97 kB / 0.6353 GB, free: 4.988 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.004502/0.6833, allocations: 2.485 MB / 0.6378 GB, free: 2.523 MB / 0.4981 GB Notification: Performance of sort global known variables: time 4.31e-07/0.6833, allocations: 0 / 0.6378 GB, free: 2.523 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005114/0.6885, allocations: 0.8476 MB / 0.6386 GB, free: 1.676 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.1919/0.8804, allocations: 4.169 MB / 0.6427 GB, free: 153.4 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.006189/0.8866, allocations: 4.082 MB / 0.6467 GB, free: 153 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.76e-06/0.8866, allocations: 2.938 kB / 0.6467 GB, free: 153 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.00141/0.8881, allocations: 1.012 MB / 0.6476 GB, free: 152.9 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003833/0.8919, allocations: 365.8 kB / 0.648 GB, free: 152.9 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06932/0.9613, allocations: 46.94 MB / 0.6938 GB, free: 117.5 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005365/0.9667, allocations: 2.962 MB / 0.6967 GB, free: 116.3 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.005694/0.9724, allocations: 1.8 MB / 0.6985 GB, free: 116.1 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002789/0.9752, allocations: 1.656 MB / 0.7001 GB, free: 114.8 MB / 0.4981 GB Notification: Performance of SimCode: time 1.383e-06/0.9752, allocations: 0 / 0.7001 GB, free: 114.8 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07783/1.053, allocations: 59.93 MB / 0.7586 GB, free: 64.95 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001488/1.053, allocations: 212.3 kB / 0.7588 GB, free: 64.7 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.451/4.504, allocations: 0 / 0.7588 GB, free: 64.7 MB / 0.4981 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","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches