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.001249/0.001249, allocations: 97.72 kB / 17 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001722/0.001722, allocations: 191.1 kB / 17.9 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.503/1.503, allocations: 227.7 MB / 246.4 MB, free: 9.801 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2291/0.2291, allocations: 46.2 MB / 344.8 MB, free: 11.29 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000289/0.000289, allocations: 12 kB / 418.8 MB, free: 20.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1446/0.1449, allocations: 63.56 MB / 482.4 MB, free: 4.484 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.03041/0.1754, allocations: 30.13 MB / 0.5005 GB, free: 6.262 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3008/0.4761, allocations: 7.1 MB / 0.5075 GB, free: 9.965 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005769/0.482, allocations: 142.4 kB / 0.5076 GB, free: 9.965 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004404/0.4864, allocations: 1.543 MB / 0.5091 GB, free: 9.965 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01403/0.5004, allocations: 4.726 MB / 0.5137 GB, free: 9.719 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00262/0.5031, allocations: 499.4 kB / 0.5142 GB, free: 9.707 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.04092/0.544, allocations: 31.64 MB / 0.5451 GB, free: 14.41 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005056/0.5491, allocations: 2.913 MB / 0.5479 GB, free: 12.31 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002229/0.5514, allocations: 0.9713 MB / 0.5489 GB, free: 11.5 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002398/0.5538, allocations: 1.559 MB / 0.5504 GB, free: 10.18 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004615/0.5543, allocations: 108 kB / 0.5505 GB, free: 10.07 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001931/0.5562, allocations: 0.9023 MB / 0.5514 GB, free: 9.32 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001579/0.5578, allocations: 1.346 MB / 0.5527 GB, free: 8.207 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001026/0.5589, allocations: 0.6546 MB / 0.5533 GB, free: 7.848 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005231/0.5641, allocations: 4.319 MB / 0.5576 GB, free: 4.086 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.354e-06/0.5641, allocations: 0 / 0.5576 GB, free: 4.086 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.5641, allocations: 0 / 0.5576 GB, free: 4.086 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001583/0.5643, allocations: 0 / 0.5576 GB, free: 4.086 MB / 398.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.007843/0.5722, allocations: 3.198 MB / 0.5607 GB, free: 1.098 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.495e-05/0.5722, allocations: 8.031 kB / 0.5607 GB, free: 1.09 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01316/0.5854, allocations: 2.418 MB / 0.563 GB, free: 14.74 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00542/0.5908, allocations: 2.182 MB / 0.5652 GB, free: 13.01 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001456/0.591, allocations: 175.9 kB / 0.5653 GB, free: 12.91 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006259/0.5916, allocations: 238 kB / 0.5656 GB, free: 12.76 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01298/0.6046, allocations: 7.782 MB / 0.5732 GB, free: 6.41 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001052/0.6048, allocations: 39.59 kB / 0.5732 GB, free: 6.371 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003101/0.6051, allocations: 113.7 kB / 0.5733 GB, free: 6.336 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002522/0.6076, allocations: 1.585 MB / 0.5749 GB, free: 5 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01234/0.62, allocations: 6.574 MB / 0.5813 GB, free: 14.96 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03724/0.6573, allocations: 31.77 MB / 0.6123 GB, free: 14.38 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004636/0.6619, allocations: 2.47 MB / 0.6147 GB, free: 11.77 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001475/0.6635, allocations: 1.128 MB / 0.6158 GB, free: 10.62 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003694/0.6638, allocations: 323.7 kB / 0.6161 GB, free: 10.26 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.95e-05/0.6639, allocations: 42.56 kB / 0.6162 GB, free: 10.21 MB / 462.1 MB Notification: Performance of pre-optimization done (n=104): time 3.517e-06/0.6639, allocations: 0 / 0.6162 GB, free: 10.21 MB / 462.1 MB Notification: Performance of matching and sorting (n=118): time 0.02382/0.6877, allocations: 9.108 MB / 0.6251 GB, free: 0.9961 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001192/0.6879, allocations: 200.4 kB / 0.6253 GB, free: 0.7578 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005438/0.6933, allocations: 3.733 MB / 0.6289 GB, free: 13.04 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000221/0.6936, allocations: 41.7 kB / 0.6289 GB, free: 12.99 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001993/0.6956, allocations: 2.701 MB / 0.6316 GB, free: 10.31 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005971/0.6962, allocations: 495.4 kB / 0.6321 GB, free: 9.828 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002103/0.6964, allocations: 115.8 kB / 0.6322 GB, free: 9.719 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0003171/0.6967, allocations: 0.5335 MB / 0.6327 GB, free: 9.18 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002555/0.6993, allocations: 1.67 MB / 0.6343 GB, free: 7.504 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00503/0.7043, allocations: 5.24 MB / 0.6394 GB, free: 476 kB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004167/0.7085, allocations: 2.903 MB / 0.6423 GB, free: 13.57 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.634e-05/0.7086, allocations: 37.75 kB / 0.6423 GB, free: 13.53 MB / 494.1 MB Notification: Performance of matching and sorting (n=717) (initialization): time 0.01374/0.7223, allocations: 7.071 MB / 0.6492 GB, free: 6.453 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.989e-05/0.7225, allocations: 62.38 kB / 0.6493 GB, free: 6.395 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000137/0.7226, allocations: 132 kB / 0.6494 GB, free: 6.266 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001576/0.7242, allocations: 0.6623 MB / 0.65 GB, free: 5.602 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003893/0.7281, allocations: 1.255 MB / 0.6513 GB, free: 4.344 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004549/0.7327, allocations: 3.787 MB / 0.655 GB, free: 436 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004087/0.7368, allocations: 302.1 kB / 0.6553 GB, free: 136 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007491/0.7376, allocations: 347.9 kB / 0.6556 GB, free: 15.79 MB / 0.4981 GB 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003134/0.7407, allocations: 1.779 MB / 0.6573 GB, free: 14 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000615/0.7413, allocations: 306.2 kB / 0.6576 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003394/0.7447, allocations: 1.833 MB / 0.6594 GB, free: 11.85 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.696e-05/0.7448, allocations: 16 kB / 0.6594 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.144e-05/0.7448, allocations: 3.984 kB / 0.6594 GB, free: 11.83 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.357e-05/0.7448, allocations: 7.984 kB / 0.6594 GB, free: 11.82 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01234/0.7571, allocations: 5.222 MB / 0.6645 GB, free: 6.562 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.24e-05/0.7573, allocations: 0 / 0.6645 GB, free: 6.562 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008444/0.7581, allocations: 155.8 kB / 0.6647 GB, free: 6.41 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001377/0.7595, allocations: 488.3 kB / 0.6651 GB, free: 5.93 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001241/0.7597, allocations: 23.98 kB / 0.6652 GB, free: 5.906 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004048/0.7637, allocations: 3.214 MB / 0.6683 GB, free: 2.559 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.7637, allocations: 6.031 kB / 0.6683 GB, free: 2.555 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005895/0.7696, allocations: 3.72 MB / 0.6719 GB, free: 14.82 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001178/0.7709, allocations: 373 kB / 0.6723 GB, free: 14.43 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007425/0.7716, allocations: 16 kB / 0.6723 GB, free: 14.41 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001433/0.7731, allocations: 59.92 kB / 0.6724 GB, free: 14.36 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002084/0.7733, allocations: 64.38 kB / 0.6724 GB, free: 14.29 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.134e-05/0.7734, allocations: 35.98 kB / 0.6725 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.00533/0.7787, allocations: 2.318 MB / 0.6747 GB, free: 11.95 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2e-07/0.7787, allocations: 0 / 0.6747 GB, free: 11.95 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.005403/0.7841, allocations: 0.793 MB / 0.6755 GB, free: 11.16 MB / 0.5137 GB 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004217/0.7846, allocations: 142.5 kB / 0.6756 GB, free: 11.01 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007234/0.7918, allocations: 3.986 MB / 0.6795 GB, free: 7.035 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 8.896e-06/0.7919, allocations: 4 kB / 0.6795 GB, free: 7.031 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001455/0.7933, allocations: 0.9955 MB / 0.6805 GB, free: 6.031 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002792/0.7961, allocations: 339.7 kB / 0.6808 GB, free: 5.699 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01615/0.8123, allocations: 8.419 MB / 0.6891 GB, free: 13.24 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00474/0.8171, allocations: 2.716 MB / 0.6917 GB, free: 10.5 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.00719/0.8243, allocations: 1.699 MB / 0.6934 GB, free: 8.801 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009026/0.8253, allocations: 203.4 kB / 0.6936 GB, free: 8.602 MB / 0.5294 GB Notification: Performance of SimCode: time 1.202e-06/0.8253, allocations: 0 / 0.6936 GB, free: 8.602 MB / 0.5294 GB Notification: Performance of Templates: time 0.3433/1.169, allocations: 26.8 MB / 0.7197 GB, free: 190.2 MB / 0.545 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches