Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008212/0.0008213, allocations: 89.09 kB / 17.34 MB, free: 6.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001046/0.001046, allocations: 197.8 kB / 18.27 MB, free: 5.484 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.301/1.301, allocations: 227.7 MB / 246.8 MB, free: 11.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2047/0.2047, allocations: 46.19 MB / 345.2 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002748/0.0002748, allocations: 8 kB / 419.6 MB, free: 19.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.1171, allocations: 63.55 MB / 483.2 MB, free: 4.102 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.02636/0.1435, allocations: 28.84 MB / 0.5 GB, free: 7.145 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01385/0.1574, allocations: 6.941 MB / 0.5068 GB, free: 184 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00436/0.1618, allocations: 123.7 kB / 0.5069 GB, free: 60 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2274/0.3892, allocations: 327.7 kB / 0.5072 GB, free: 9.938 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005642/0.3949, allocations: 1.453 MB / 0.5086 GB, free: 9.91 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001915/0.3969, allocations: 0.507 MB / 0.5091 GB, free: 9.895 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008386/0.4053, allocations: 5.038 MB / 0.514 GB, free: 9.879 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004955/0.4103, allocations: 2.934 MB / 0.5169 GB, free: 9.488 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001789/0.4121, allocations: 0.8398 MB / 0.5177 GB, free: 9.488 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002403/0.4145, allocations: 1.511 MB / 0.5192 GB, free: 9.398 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004483/0.415, allocations: 106.9 kB / 0.5193 GB, free: 9.395 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002557/0.4175, allocations: 1.049 MB / 0.5203 GB, free: 9.387 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001513/0.4191, allocations: 1.293 MB / 0.5216 GB, free: 9.238 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001541/0.4206, allocations: 1.553 MB / 0.5231 GB, free: 8.602 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00527/0.4259, allocations: 5.193 MB / 0.5282 GB, free: 5.922 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.062e-06/0.4259, allocations: 0 / 0.5282 GB, free: 5.922 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.4259, allocations: 3.938 kB / 0.5282 GB, free: 5.918 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001248/0.4261, allocations: 0 / 0.5282 GB, free: 5.918 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: 1141 * Number of variables: 1141 Notification: Performance of Generate backend data structure: time 0.007968/0.434, allocations: 3.132 MB / 0.5312 GB, free: 3.926 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.79e-05/0.4341, allocations: 9.156 kB / 0.5313 GB, free: 3.926 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001221/0.4353, allocations: 0.5428 MB / 0.5318 GB, free: 3.754 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09038/0.5257, allocations: 7.116 MB / 0.5387 GB, free: 1.281 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006133/0.5319, allocations: 2.359 MB / 0.541 GB, free: 15.48 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002041/0.5321, allocations: 164.6 kB / 0.5412 GB, free: 15.35 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001218/0.5333, allocations: 223.4 kB / 0.5414 GB, free: 15.16 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01371/0.5471, allocations: 7.353 MB / 0.5486 GB, free: 7.34 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001137/0.5472, allocations: 37.16 kB / 0.5486 GB, free: 7.32 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003268/0.5476, allocations: 112.8 kB / 0.5487 GB, free: 7.242 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002732/0.5503, allocations: 1.549 MB / 0.5502 GB, free: 5.723 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01142/0.5617, allocations: 6.189 MB / 0.5563 GB, free: 15.68 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03646/0.5982, allocations: 30 MB / 0.5856 GB, free: 1.125 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004728/0.603, allocations: 2.174 MB / 0.5877 GB, free: 14.81 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001498/0.6045, allocations: 1.077 MB / 0.5888 GB, free: 13.73 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003892/0.605, allocations: 327.2 kB / 0.5891 GB, free: 13.36 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.199e-05/0.605, allocations: 41.44 kB / 0.5891 GB, free: 13.31 MB / 446.1 MB Notification: Performance of pre-optimization done (n=108): time 4.99e-06/0.605, allocations: 3.984 kB / 0.5891 GB, free: 13.31 MB / 446.1 MB Notification: Performance of matching and sorting (n=132): time 0.03551/0.6406, allocations: 10.9 MB / 0.5998 GB, free: 2.324 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001022/0.6407, allocations: 198.8 kB / 0.5999 GB, free: 2.09 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006781/0.6475, allocations: 3.608 MB / 0.6035 GB, free: 14.48 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002817/0.6478, allocations: 44.05 kB / 0.6035 GB, free: 14.44 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002141/0.65, allocations: 2.564 MB / 0.606 GB, free: 11.88 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007695/0.6508, allocations: 0.5338 MB / 0.6065 GB, free: 11.35 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009202/0.6517, allocations: 445.3 kB / 0.607 GB, free: 10.91 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.56e-05/0.6518, allocations: 305.1 kB / 0.6073 GB, free: 10.61 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002852/0.6547, allocations: 1.626 MB / 0.6088 GB, free: 8.973 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005497/0.6602, allocations: 4.975 MB / 0.6137 GB, free: 2.371 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008686/0.6689, allocations: 7.167 MB / 0.6207 GB, free: 9.781 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001445/0.6691, allocations: 32 kB / 0.6207 GB, free: 9.75 MB / 478.1 MB Notification: Performance of matching and sorting (n=675) (initialization): time 0.01341/0.6825, allocations: 6.558 MB / 0.6271 GB, free: 3.188 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001129/0.6826, allocations: 60.06 kB / 0.6272 GB, free: 3.129 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000207/0.6829, allocations: 120 kB / 0.6273 GB, free: 3.012 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001002/0.6839, allocations: 404.5 kB / 0.6277 GB, free: 2.613 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00376/0.6876, allocations: 1.189 MB / 0.6289 GB, free: 1.422 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00382/0.6915, allocations: 3.062 MB / 0.6318 GB, free: 14.23 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004128/0.6956, allocations: 290.4 kB / 0.6321 GB, free: 13.95 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007939/0.6964, allocations: 324 kB / 0.6324 GB, free: 13.63 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 539 * Number of states: 0 () * Number of discrete variables: 29 (Distance1.arrow.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 (640): * Single equations (assignments): 636 * 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.003662/0.7001, allocations: 1.693 MB / 0.6341 GB, free: 11.92 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007107/0.7008, allocations: 300.1 kB / 0.6344 GB, free: 11.62 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003526/0.7044, allocations: 1.721 MB / 0.636 GB, free: 9.891 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.065e-05/0.7044, allocations: 19.98 kB / 0.6361 GB, free: 9.871 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.388e-05/0.7044, allocations: 4.109 kB / 0.6361 GB, free: 9.867 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.274e-05/0.7045, allocations: 7.922 kB / 0.6361 GB, free: 9.859 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01118/0.7156, allocations: 5.305 MB / 0.6413 GB, free: 4.492 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.65e-05/0.7157, allocations: 7.984 kB / 0.6413 GB, free: 4.484 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001032/0.7167, allocations: 191.7 kB / 0.6414 GB, free: 4.297 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000761/0.7175, allocations: 228.7 kB / 0.6417 GB, free: 4.07 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001399/0.7177, allocations: 31.86 kB / 0.6417 GB, free: 4.039 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003085/0.7208, allocations: 2.507 MB / 0.6441 GB, free: 1.395 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.018e-06/0.7208, allocations: 4.031 kB / 0.6441 GB, free: 1.391 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006219/0.727, allocations: 3.709 MB / 0.6478 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001072/0.7281, allocations: 365 kB / 0.6481 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000706/0.7288, allocations: 24 kB / 0.6481 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001607/0.7305, allocations: 63.91 kB / 0.6482 GB, free: 13.19 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002134/0.7307, allocations: 72.62 kB / 0.6483 GB, free: 13.12 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.986e-05/0.7308, allocations: 32 kB / 0.6483 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.005537/0.7363, allocations: 2.265 MB / 0.6505 GB, free: 10.84 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.41e-07/0.7364, allocations: 0 / 0.6505 GB, free: 10.84 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005097/0.7415, allocations: 0.7558 MB / 0.6513 GB, free: 10.08 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.006337/0.7478, allocations: 4.344 MB / 0.6555 GB, free: 5.699 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00689/0.7547, allocations: 3.904 MB / 0.6593 GB, free: 1.805 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 7.104e-06/0.7548, allocations: 0 / 0.6593 GB, free: 1.805 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001659/0.7564, allocations: 1.069 MB / 0.6604 GB, free: 0.7266 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003688/0.7601, allocations: 356.2 kB / 0.6607 GB, free: 392 kB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07501/0.8352, allocations: 42.03 MB / 0.7017 GB, free: 15.8 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003993/0.8392, allocations: 2.639 MB / 0.7043 GB, free: 13.13 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004704/0.8439, allocations: 1.667 MB / 0.7059 GB, free: 11.45 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002817/0.8468, allocations: 1.405 MB / 0.7073 GB, free: 10.05 MB / 0.5606 GB Notification: Performance of SimCode: time 9.52e-07/0.8468, allocations: 3.938 kB / 0.7073 GB, free: 10.04 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3125/1.159, allocations: 55.51 MB / 0.7615 GB, free: 186.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001413/1.159, allocations: 227 kB / 0.7617 GB, free: 186.3 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.336/4.496, allocations: 3.938 kB / 0.7617 GB, free: 186.3 MB / 0.5606 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches