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.001161/0.001161, allocations: 116.4 kB / 18.46 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00127/0.00127, allocations: 211.9 kB / 19.41 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.275/1.275, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1903/0.1903, allocations: 46.11 MB / 344.9 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001235, allocations: 79.88 kB / 482 MB, free: 4.059 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2689/0.2701, allocations: 62.44 MB / 0.5317 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.008919/0.2791, allocations: 9.047 MB / 0.5405 GB, free: 6.508 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.006167/0.2853, allocations: 3.57 MB / 0.544 GB, free: 3.742 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001096/0.2864, allocations: 49.19 kB / 0.544 GB, free: 3.734 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003226/0.2896, allocations: 1.914 MB / 0.5459 GB, free: 2.445 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003205/0.2929, allocations: 1.608 MB / 0.5475 GB, free: 1.332 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0011/0.294, allocations: 0.5706 MB / 0.548 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004104/0.2981, allocations: 3.653 MB / 0.5516 GB, free: 13.25 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002254/0.3004, allocations: 2.434 MB / 0.554 GB, free: 10.76 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001224/0.3016, allocations: 1.156 MB / 0.5551 GB, free: 9.598 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001624/0.3033, allocations: 1.639 MB / 0.5567 GB, free: 7.953 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003835/0.3036, allocations: 244 kB / 0.5569 GB, free: 7.715 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001536/0.3052, allocations: 1.12 MB / 0.558 GB, free: 6.594 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001126/0.3063, allocations: 1.512 MB / 0.5595 GB, free: 5.078 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001376/0.3077, allocations: 1.712 MB / 0.5612 GB, free: 3.355 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004802/0.3125, allocations: 5.688 MB / 0.5667 GB, free: 13.65 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.3126, allocations: 0 / 0.5667 GB, free: 13.65 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3126, allocations: 0 / 0.5667 GB, free: 13.65 MB / 430.1 MB Notification: Performance of Transformations before backend: time 7.154e-05/0.3126, allocations: 0 / 0.5667 GB, free: 13.65 MB / 430.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.005817/0.3185, allocations: 3.826 MB / 0.5705 GB, free: 9.754 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.383e-05/0.3185, allocations: 8.031 kB / 0.5705 GB, free: 9.746 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01337/0.3319, allocations: 2.352 MB / 0.5728 GB, free: 7.387 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004205/0.3361, allocations: 2.252 MB / 0.575 GB, free: 5.082 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001221/0.3363, allocations: 176.8 kB / 0.5751 GB, free: 4.906 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004812/0.3368, allocations: 239.9 kB / 0.5754 GB, free: 4.672 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009413/0.3462, allocations: 7.783 MB / 0.583 GB, free: 12.24 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.194e-05/0.3463, allocations: 43.58 kB / 0.583 GB, free: 12.2 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002869/0.3466, allocations: 119.9 kB / 0.5831 GB, free: 12.08 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00215/0.3487, allocations: 1.582 MB / 0.5847 GB, free: 10.5 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009943/0.3587, allocations: 6.59 MB / 0.5911 GB, free: 3.895 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0331/0.3918, allocations: 31.61 MB / 0.622 GB, free: 3.301 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004554/0.3964, allocations: 2.478 MB / 0.6244 GB, free: 0.6758 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001401/0.3979, allocations: 1.123 MB / 0.6255 GB, free: 15.54 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003317/0.3982, allocations: 339.2 kB / 0.6258 GB, free: 15.16 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.371e-05/0.3982, allocations: 46.56 kB / 0.6258 GB, free: 15.1 MB / 494.1 MB Notification: Performance of pre-optimization done (n=104): time 3.587e-06/0.3983, allocations: 0 / 0.6258 GB, free: 15.1 MB / 494.1 MB Notification: Performance of matching and sorting (n=118): time 0.02045/0.4187, allocations: 9.133 MB / 0.6348 GB, free: 5.855 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.436e-05/0.4188, allocations: 192.4 kB / 0.635 GB, free: 5.621 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00487/0.4237, allocations: 3.751 MB / 0.6386 GB, free: 1.875 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002243/0.424, allocations: 41.7 kB / 0.6387 GB, free: 1.828 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002047/0.426, allocations: 2.696 MB / 0.6413 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006296/0.4267, allocations: 0.4941 MB / 0.6418 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001465/0.4282, allocations: 1.118 MB / 0.6429 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001023/0.4283, allocations: 309 kB / 0.6432 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0025/0.4308, allocations: 1.689 MB / 0.6448 GB, free: 11.46 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00509/0.4359, allocations: 5.259 MB / 0.6499 GB, free: 4.402 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008488/0.4444, allocations: 7.503 MB / 0.6573 GB, free: 11.12 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.547e-05/0.4445, allocations: 36 kB / 0.6573 GB, free: 11.09 MB / 0.5138 GB Notification: Performance of matching and sorting (n=717) (initialization): time 0.01164/0.4562, allocations: 7.127 MB / 0.6643 GB, free: 3.957 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 7.7e-05/0.4563, allocations: 63.94 kB / 0.6643 GB, free: 3.895 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001224/0.4564, allocations: 128.2 kB / 0.6644 GB, free: 3.77 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001456/0.4579, allocations: 0.6564 MB / 0.6651 GB, free: 3.109 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003366/0.4613, allocations: 1.251 MB / 0.6663 GB, free: 1.855 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004421/0.4657, allocations: 4.083 MB / 0.6703 GB, free: 13.63 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003293/0.469, allocations: 295.9 kB / 0.6706 GB, free: 13.34 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004945/0.4695, allocations: 348 kB / 0.6709 GB, free: 13 MB / 0.5294 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 (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.002447/0.472, allocations: 1.775 MB / 0.6726 GB, free: 11.22 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005042/0.4725, allocations: 300.1 kB / 0.6729 GB, free: 10.92 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003221/0.4757, allocations: 1.844 MB / 0.6747 GB, free: 9.062 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-05/0.4758, allocations: 12 kB / 0.6747 GB, free: 9.051 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.204e-05/0.4758, allocations: 7.984 kB / 0.6748 GB, free: 9.043 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.185e-05/0.4758, allocations: 7.984 kB / 0.6748 GB, free: 9.035 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008271/0.4841, allocations: 5.204 MB / 0.6798 GB, free: 3.762 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.219e-05/0.4841, allocations: 7.938 kB / 0.6798 GB, free: 3.754 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007338/0.4849, allocations: 155.8 kB / 0.68 GB, free: 3.602 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001226/0.4861, allocations: 484.2 kB / 0.6805 GB, free: 3.125 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.577e-05/0.4862, allocations: 36 kB / 0.6805 GB, free: 3.09 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003862/0.4901, allocations: 3.418 MB / 0.6838 GB, free: 15.52 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.4901, allocations: 4.312 kB / 0.6838 GB, free: 15.52 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005319/0.4954, allocations: 3.737 MB / 0.6875 GB, free: 11.76 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008294/0.4963, allocations: 357 kB / 0.6878 GB, free: 11.39 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004644/0.4967, allocations: 27.88 kB / 0.6879 GB, free: 11.36 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001033/0.4978, allocations: 55.92 kB / 0.6879 GB, free: 11.3 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001634/0.498, allocations: 60.48 kB / 0.688 GB, free: 11.25 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.338e-05/0.498, allocations: 39.89 kB / 0.688 GB, free: 11.21 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003353/0.5014, allocations: 2.33 MB / 0.6903 GB, free: 8.895 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5014, allocations: 3.938 kB / 0.6903 GB, free: 8.891 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00415/0.5056, allocations: 0.793 MB / 0.6911 GB, free: 8.098 MB / 0.545 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 (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.000433/0.506, allocations: 151 kB / 0.6912 GB, free: 7.941 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.006547/0.5126, allocations: 4.025 MB / 0.6951 GB, free: 3.93 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.216e-06/0.5126, allocations: 0 / 0.6951 GB, free: 3.93 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001451/0.5141, allocations: 0.9983 MB / 0.6961 GB, free: 2.922 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002398/0.5165, allocations: 355.9 kB / 0.6964 GB, free: 2.57 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01205/0.5286, allocations: 7.462 MB / 0.7037 GB, free: 11.05 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002585/0.5312, allocations: 2.712 MB / 0.7064 GB, free: 8.316 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007035/0.5319, allocations: 247.4 kB / 0.7066 GB, free: 8.078 MB / 0.5606 GB Notification: Performance of SimCode: time 6.91e-07/0.5319, allocations: 0 / 0.7066 GB, free: 8.078 MB / 0.5606 GB Notification: Performance of Templates: time 0.2863/0.8182, allocations: 62.02 MB / 0.7672 GB, free: 151.5 MB / 0.5763 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/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