Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.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: translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001563/0.001563, allocations: 117 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001885/0.001885, allocations: 204.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.351/1.351, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2018/0.2018, allocations: 46.11 MB / 344.9 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00139/0.00139, allocations: 72.45 kB / 419 MB, free: 19.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1016, allocations: 62.46 MB / 481.5 MB, free: 4.531 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.009767/0.1114, allocations: 9.034 MB / 490.5 MB, free: 11.46 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006106/0.1175, allocations: 3.574 MB / 494.1 MB, free: 7.871 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005758/0.1181, allocations: 51.88 kB / 494.1 MB, free: 7.82 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003351/0.1215, allocations: 1.908 MB / 496 MB, free: 5.906 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003182/0.1247, allocations: 1.579 MB / 497.6 MB, free: 4.324 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001291/0.126, allocations: 0.5614 MB / 498.2 MB, free: 3.762 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004687/0.1307, allocations: 3.658 MB / 0.4901 GB, free: 100 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002469/0.1332, allocations: 2.413 MB / 0.4924 GB, free: 13.63 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001581/0.1348, allocations: 1.168 MB / 0.4936 GB, free: 12.46 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001919/0.1367, allocations: 1.635 MB / 0.4952 GB, free: 10.82 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000461/0.1372, allocations: 240 kB / 0.4954 GB, free: 10.58 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001728/0.1389, allocations: 1.108 MB / 0.4965 GB, free: 9.473 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001319/0.1403, allocations: 1.508 MB / 0.4979 GB, free: 7.961 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00144/0.1417, allocations: 1.716 MB / 0.4996 GB, free: 6.234 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004743/0.1465, allocations: 5.692 MB / 0.5052 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.1465, allocations: 0 / 0.5052 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.956e-06/0.1465, allocations: 4 kB / 0.5052 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.902e-05/0.1466, allocations: 0 / 0.5052 GB, free: 0.5195 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: 1211 * Number of variables: 1211 Notification: Performance of Generate backend data structure: time 0.1766/0.3231, allocations: 3.826 MB / 0.5089 GB, free: 39.69 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.419e-05/0.3232, allocations: 9.656 kB / 0.5089 GB, free: 39.69 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01437/0.3375, allocations: 2.348 MB / 0.5112 GB, free: 39.39 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00522/0.3428, allocations: 2.242 MB / 0.5134 GB, free: 38.32 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.475e-05/0.3429, allocations: 177.5 kB / 0.5136 GB, free: 38.26 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004656/0.3434, allocations: 235.6 kB / 0.5138 GB, free: 38.21 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01101/0.3544, allocations: 7.793 MB / 0.5214 GB, free: 34.3 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000137/0.3546, allocations: 46.52 kB / 0.5215 GB, free: 34.27 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004387/0.355, allocations: 117.9 kB / 0.5216 GB, free: 34.19 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00232/0.3573, allocations: 1.582 MB / 0.5231 GB, free: 33.57 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009723/0.3671, allocations: 6.583 MB / 0.5295 GB, free: 29.72 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0288/0.3959, allocations: 31.62 MB / 0.5604 GB, free: 13.16 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00452/0.4005, allocations: 2.486 MB / 0.5629 GB, free: 10.53 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001364/0.4018, allocations: 1.128 MB / 0.564 GB, free: 9.391 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003465/0.4022, allocations: 323.9 kB / 0.5643 GB, free: 9.02 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.376e-05/0.4023, allocations: 45.47 kB / 0.5643 GB, free: 8.969 MB / 398.1 MB Notification: Performance of pre-optimization done (n=104): time 3.757e-06/0.4023, allocations: 4 kB / 0.5643 GB, free: 8.965 MB / 398.1 MB Notification: Performance of matching and sorting (n=118): time 0.02199/0.4243, allocations: 9.132 MB / 0.5732 GB, free: 15.72 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.432e-05/0.4244, allocations: 200.4 kB / 0.5734 GB, free: 15.48 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004871/0.4293, allocations: 3.747 MB / 0.5771 GB, free: 11.74 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001076/0.4294, allocations: 42.73 kB / 0.5771 GB, free: 11.7 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001822/0.4312, allocations: 2.7 MB / 0.5798 GB, free: 8.957 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004796/0.4317, allocations: 498 kB / 0.5802 GB, free: 8.465 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001341/0.4331, allocations: 1.122 MB / 0.5813 GB, free: 7.332 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.662e-05/0.4332, allocations: 305.1 kB / 0.5816 GB, free: 7.031 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002351/0.4355, allocations: 1.689 MB / 0.5833 GB, free: 5.336 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005565/0.4411, allocations: 5.263 MB / 0.5884 GB, free: 14.27 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007913/0.449, allocations: 7.51 MB / 0.5957 GB, free: 4.988 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.733e-05/0.4491, allocations: 36 kB / 0.5958 GB, free: 4.953 MB / 430.1 MB Notification: Performance of matching and sorting (n=717) (initialization): time 0.0118/0.4609, allocations: 7.124 MB / 0.6027 GB, free: 13.82 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.61e-05/0.461, allocations: 60.28 kB / 0.6028 GB, free: 13.76 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000156/0.4612, allocations: 124 kB / 0.6029 GB, free: 13.64 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001578/0.4628, allocations: 0.6587 MB / 0.6036 GB, free: 12.98 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003548/0.4664, allocations: 1.259 MB / 0.6048 GB, free: 11.71 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004877/0.4712, allocations: 4.07 MB / 0.6088 GB, free: 7.504 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003347/0.4746, allocations: 297.8 kB / 0.609 GB, free: 7.215 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005185/0.4751, allocations: 348 kB / 0.6094 GB, free: 6.875 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 577 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.twoHeadedArrow,distance2.arrow.headAtOrigin,distance1.arrow.twoHeadedArrow,distance1.arrow.headAtOrigin,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 (682): * Single equations (assignments): 678 * 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 {(2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002511/0.4777, allocations: 1.775 MB / 0.6111 GB, free: 5.086 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005738/0.4782, allocations: 300.1 kB / 0.6114 GB, free: 4.789 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003299/0.4815, allocations: 1.836 MB / 0.6132 GB, free: 2.941 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.176e-05/0.4816, allocations: 16 kB / 0.6132 GB, free: 2.926 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.065e-05/0.4816, allocations: 4 kB / 0.6132 GB, free: 2.922 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.604e-05/0.4816, allocations: 15.91 kB / 0.6132 GB, free: 2.906 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009204/0.4908, allocations: 5.204 MB / 0.6183 GB, free: 13.62 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.049e-05/0.4909, allocations: 7.984 kB / 0.6183 GB, free: 13.62 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007647/0.4916, allocations: 155.8 kB / 0.6185 GB, free: 13.46 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001272/0.4929, allocations: 484.3 kB / 0.6189 GB, free: 12.99 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.618e-05/0.493, allocations: 27.92 kB / 0.6189 GB, free: 12.96 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003826/0.4968, allocations: 3.435 MB / 0.6223 GB, free: 9.391 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/0.4969, allocations: 3.938 kB / 0.6223 GB, free: 9.387 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005172/0.502, allocations: 3.728 MB / 0.6259 GB, free: 5.633 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001075/0.5031, allocations: 361 kB / 0.6263 GB, free: 5.258 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007876/0.5039, allocations: 24.61 kB / 0.6263 GB, free: 5.234 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001446/0.5054, allocations: 59.92 kB / 0.6264 GB, free: 5.176 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002227/0.5056, allocations: 60.48 kB / 0.6264 GB, free: 5.117 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.445e-05/0.5057, allocations: 32 kB / 0.6265 GB, free: 5.086 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004819/0.5105, allocations: 2.334 MB / 0.6287 GB, free: 2.766 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.5106, allocations: 0 / 0.6287 GB, free: 2.766 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004265/0.5148, allocations: 0.7969 MB / 0.6295 GB, free: 1.969 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (88): * Single equations (assignments): 84 * 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.0003915/0.5152, allocations: 151 kB / 0.6297 GB, free: 1.812 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006588/0.5218, allocations: 4.014 MB / 0.6336 GB, free: 13.82 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.5219, allocations: 4 kB / 0.6336 GB, free: 13.81 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001336/0.5232, allocations: 1.002 MB / 0.6346 GB, free: 12.8 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002524/0.5257, allocations: 362.4 kB / 0.6349 GB, free: 12.45 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01215/0.5379, allocations: 7.124 MB / 0.6419 GB, free: 5.285 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003054/0.541, allocations: 2.712 MB / 0.6445 GB, free: 2.539 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003633/0.5446, allocations: 1.699 MB / 0.6462 GB, free: 0.8359 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005597/0.5452, allocations: 199.4 kB / 0.6464 GB, free: 0.6445 MB / 478.1 MB Notification: Performance of SimCode: time 1.974e-06/0.5452, allocations: 0 / 0.6464 GB, free: 0.6445 MB / 478.1 MB Notification: Performance of Templates: time 0.04741/0.5926, allocations: 24.04 MB / 0.6698 GB, free: 8.676 MB / 0.4981 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches