Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.Distance,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance",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.001527/0.001527, allocations: 106.2 kB / 17.21 MB, free: 6.289 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.001149/0.001149, allocations: 194 kB / 18.12 MB, free: 5.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.325/1.325, allocations: 222.9 MB / 241.8 MB, free: 15.36 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2283/0.2283, allocations: 44.18 MB / 336.1 MB, free: 2.965 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 65.23 kB / 407.8 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1126, allocations: 60.84 MB / 468.6 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.03394/0.1466, allocations: 33.51 MB / 0.4904 GB, free: 13.07 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01628/0.1629, allocations: 7.669 MB / 0.4979 GB, free: 5.371 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005716/0.1687, allocations: 147.6 kB / 0.498 GB, free: 5.227 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003524/0.1722, allocations: 1.648 MB / 0.4996 GB, free: 3.574 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003906/0.1762, allocations: 1.48 MB / 0.5011 GB, free: 2.09 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001385/0.1776, allocations: 0.507 MB / 0.5016 GB, free: 1.582 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2354/0.413, allocations: 5.078 MB / 0.5065 GB, free: 10.87 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003462/0.4165, allocations: 2.186 MB / 0.5086 GB, free: 10.62 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002075/0.4186, allocations: 0.9858 MB / 0.5096 GB, free: 10.62 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002984/0.4216, allocations: 1.682 MB / 0.5113 GB, free: 10.54 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006534/0.4223, allocations: 153.7 kB / 0.5114 GB, free: 10.54 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002659/0.4249, allocations: 1.123 MB / 0.5125 GB, free: 10.53 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001683/0.4266, allocations: 1.403 MB / 0.5139 GB, free: 10.38 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00184/0.4285, allocations: 1.661 MB / 0.5155 GB, free: 9.758 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006474/0.435, allocations: 5.458 MB / 0.5208 GB, free: 9.039 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.052e-06/0.435, allocations: 0 / 0.5208 GB, free: 9.039 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.435, allocations: 3.75 kB / 0.5208 GB, free: 9.039 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001788/0.4352, allocations: 0 / 0.5208 GB, free: 9.039 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: 1170 * Number of variables: 1170 Notification: Performance of Generate backend data structure: time 0.01142/0.4466, allocations: 3.87 MB / 0.5246 GB, free: 7.082 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.249e-05/0.4467, allocations: 10.16 kB / 0.5246 GB, free: 7.082 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001033/0.4477, allocations: 0.5546 MB / 0.5252 GB, free: 6.906 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07616/0.5239, allocations: 6.953 MB / 0.5319 GB, free: 4.426 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006657/0.5306, allocations: 2.483 MB / 0.5344 GB, free: 3.117 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.344e-05/0.5307, allocations: 164.5 kB / 0.5345 GB, free: 3.066 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005093/0.5313, allocations: 223.2 kB / 0.5347 GB, free: 3.016 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01088/0.5422, allocations: 7.53 MB / 0.5421 GB, free: 12.47 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.756e-05/0.5423, allocations: 37.91 kB / 0.5421 GB, free: 12.45 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003066/0.5426, allocations: 110.2 kB / 0.5422 GB, free: 12.37 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003662/0.5463, allocations: 1.604 MB / 0.5438 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01186/0.5581, allocations: 6.339 MB / 0.55 GB, free: 4.605 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03679/0.5949, allocations: 30.35 MB / 0.5796 GB, free: 5.691 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004715/0.5997, allocations: 2.174 MB / 0.5818 GB, free: 3.379 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00152/0.6013, allocations: 1.071 MB / 0.5828 GB, free: 2.297 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004058/0.6017, allocations: 316.4 kB / 0.5831 GB, free: 1.938 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.317e-05/0.6017, allocations: 58.02 kB / 0.5832 GB, free: 1.875 MB / 430.1 MB Notification: Performance of pre-optimization done (n=108): time 6.271e-06/0.6018, allocations: 112 / 0.5832 GB, free: 1.875 MB / 430.1 MB Notification: Performance of matching and sorting (n=132): time 0.03544/0.6372, allocations: 10.92 MB / 0.5938 GB, free: 6.871 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001129/0.6373, allocations: 196.6 kB / 0.594 GB, free: 6.637 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007497/0.6449, allocations: 3.665 MB / 0.5976 GB, free: 2.977 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002986/0.6452, allocations: 49.69 kB / 0.5976 GB, free: 2.922 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002351/0.6476, allocations: 2.608 MB / 0.6002 GB, free: 324 kB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007336/0.6483, allocations: 0.5274 MB / 0.6007 GB, free: 15.79 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002378/0.6507, allocations: 1.05 MB / 0.6017 GB, free: 14.73 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001206/0.6508, allocations: 309 kB / 0.602 GB, free: 14.43 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003064/0.6539, allocations: 1.63 MB / 0.6036 GB, free: 12.79 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005443/0.6594, allocations: 4.993 MB / 0.6085 GB, free: 6.164 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008221/0.6676, allocations: 7.204 MB / 0.6155 GB, free: 13.79 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001057/0.6677, allocations: 32 kB / 0.6156 GB, free: 13.75 MB / 478.1 MB Notification: Performance of matching and sorting (n=678) (initialization): time 0.01244/0.6802, allocations: 6.587 MB / 0.622 GB, free: 7.77 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001288/0.6803, allocations: 56 kB / 0.622 GB, free: 7.715 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002304/0.6806, allocations: 128.1 kB / 0.6222 GB, free: 7.59 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001105/0.6817, allocations: 396.6 kB / 0.6225 GB, free: 7.199 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003866/0.6856, allocations: 1.193 MB / 0.6237 GB, free: 6.004 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003886/0.6895, allocations: 3.073 MB / 0.6267 GB, free: 2.801 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00416/0.6936, allocations: 279.9 kB / 0.627 GB, free: 2.527 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007717/0.6944, allocations: 331.9 kB / 0.6273 GB, free: 2.203 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 542 * Number of states: 0 () * Number of discrete variables: 29 (Distance1.arrow.arrowLine.twoHeadedArrow,Distance1.arrow.headAtOrigin,BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Distance1.arrowColor[3],Distance1.arrowColor[2],Distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (643): * Single equations (assignments): 639 * 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.003769/0.6982, allocations: 1.732 MB / 0.629 GB, free: 468 kB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000879/0.6991, allocations: 304 kB / 0.6293 GB, free: 160 kB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004037/0.7032, allocations: 1.726 MB / 0.631 GB, free: 14.42 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.101e-05/0.7032, allocations: 16 kB / 0.631 GB, free: 14.4 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.596e-05/0.7032, allocations: 7.938 kB / 0.631 GB, free: 14.39 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.587e-05/0.7033, allocations: 3.984 kB / 0.631 GB, free: 14.39 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01587/0.7191, allocations: 5.362 MB / 0.6362 GB, free: 8.965 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.501e-05/0.7192, allocations: 0 / 0.6362 GB, free: 8.965 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001044/0.7202, allocations: 195.7 kB / 0.6364 GB, free: 8.773 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00082/0.7211, allocations: 232.6 kB / 0.6366 GB, free: 8.543 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000151/0.7213, allocations: 20 kB / 0.6366 GB, free: 8.523 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003028/0.7243, allocations: 2.511 MB / 0.6391 GB, free: 5.875 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.149e-06/0.7243, allocations: 4.031 kB / 0.6391 GB, free: 5.871 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005952/0.7303, allocations: 3.715 MB / 0.6427 GB, free: 2.137 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001217/0.7315, allocations: 361 kB / 0.6431 GB, free: 1.762 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008662/0.7324, allocations: 23.98 kB / 0.6431 GB, free: 1.738 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001691/0.7341, allocations: 64.2 kB / 0.6432 GB, free: 1.676 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002292/0.7344, allocations: 76.5 kB / 0.6432 GB, free: 1.602 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001066/0.7345, allocations: 39.98 kB / 0.6433 GB, free: 1.562 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.005258/0.7397, allocations: 2.297 MB / 0.6455 GB, free: 15.28 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.91e-07/0.7398, allocations: 0 / 0.6455 GB, free: 15.28 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005925/0.7457, allocations: 0.7844 MB / 0.6463 GB, free: 14.5 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * 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.006613/0.7523, allocations: 4.336 MB / 0.6505 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.006951/0.7593, allocations: 3.92 MB / 0.6543 GB, free: 6.211 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.451e-06/0.7593, allocations: 0 / 0.6543 GB, free: 6.211 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001567/0.7609, allocations: 1.076 MB / 0.6554 GB, free: 5.129 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004069/0.765, allocations: 364.6 kB / 0.6557 GB, free: 4.773 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08194/0.847, allocations: 42.45 MB / 0.6972 GB, free: 3.73 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005415/0.8524, allocations: 2.68 MB / 0.6998 GB, free: 1.027 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.2259/1.078, allocations: 1.676 MB / 0.7015 GB, free: 208 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002844/1.081, allocations: 1.442 MB / 0.7029 GB, free: 208 MB / 0.545 GB Notification: Performance of SimCode: time 8.72e-07/1.081, allocations: 0.5625 kB / 0.7029 GB, free: 208 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0824/1.164, allocations: 56.78 MB / 0.7583 GB, free: 169.7 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001747/1.164, allocations: 228 kB / 0.7585 GB, free: 169.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.483/4.647, allocations: 0 / 0.7585 GB, free: 169.4 MB / 0.545 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches