Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00163/0.001631, allocations: 183.8 kB / 18.04 MB, free: 3.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.404/1.404, allocations: 205.4 MB / 224.2 MB, free: 9.012 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007985/0.0007987, allocations: 85.05 kB / 272.5 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002969/0.000297, allocations: 12 kB / 329.4 MB, free: 15.26 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2145/0.2148, allocations: 47.58 MB / 377 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1063/0.3212, allocations: 97.86 MB / 474.9 MB, free: 14.64 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002078/0.3214, allocations: 91.95 kB / 475 MB, free: 14.55 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3538/0.6753, allocations: 93.36 MB / 0.555 GB, free: 62.78 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.285e-06/0.6753, allocations: 0 / 0.555 GB, free: 62.78 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002711/0.6756, allocations: 84 kB / 0.5551 GB, free: 62.7 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1556 * Number of variables: 1556 Notification: Performance of Generate backend data structure: time 0.01401/0.6896, allocations: 4.747 MB / 0.5597 GB, free: 57.87 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.196e-05/0.6897, allocations: 8.031 kB / 0.5598 GB, free: 57.86 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01968/0.7094, allocations: 5.087 MB / 0.5647 GB, free: 52.76 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01014/0.7196, allocations: 5.049 MB / 0.5697 GB, free: 47.65 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002654/0.7199, allocations: 329 kB / 0.57 GB, free: 47.33 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001723/0.7216, allocations: 448.1 kB / 0.5704 GB, free: 46.89 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01949/0.7411, allocations: 10.46 MB / 0.5806 GB, free: 35.47 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002865/0.7415, allocations: 67.55 kB / 0.5807 GB, free: 35.4 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001479/0.743, allocations: 211.8 kB / 0.5809 GB, free: 35.2 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001323/0.7443, allocations: 1.015 MB / 0.5819 GB, free: 34.18 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01541/0.7597, allocations: 8.59 MB / 0.5902 GB, free: 25.57 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05118/0.8109, allocations: 46.14 MB / 0.6353 GB, free: 9.984 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008881/0.8199, allocations: 3.925 MB / 0.6391 GB, free: 5.906 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002668/0.8226, allocations: 2.04 MB / 0.6411 GB, free: 3.859 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000679/0.8233, allocations: 0.6555 MB / 0.6418 GB, free: 3.094 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.53e-05/0.8233, allocations: 51.56 kB / 0.6418 GB, free: 3.035 MB / 410.7 MB Notification: Performance of pre-optimization done (n=175): time 4.438e-06/0.8233, allocations: 3.938 kB / 0.6418 GB, free: 3.031 MB / 410.7 MB Notification: Performance of matching and sorting (n=210): time 0.2237/1.047, allocations: 20.64 MB / 0.662 GB, free: 91.65 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.634e-05/1.047, allocations: 255 kB / 0.6622 GB, free: 91.37 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00577/1.053, allocations: 4.224 MB / 0.6664 GB, free: 90.98 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003089/1.053, allocations: 57.45 kB / 0.6664 GB, free: 90.95 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001535/1.055, allocations: 3.261 MB / 0.6696 GB, free: 89.27 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006281/1.055, allocations: 0.7924 MB / 0.6704 GB, free: 88.82 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002321/1.056, allocations: 116.3 kB / 0.6705 GB, free: 88.82 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002356/1.056, allocations: 0.5614 MB / 0.671 GB, free: 88.5 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002681/1.059, allocations: 2.253 MB / 0.6732 GB, free: 88.48 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00374/1.062, allocations: 5.832 MB / 0.6789 GB, free: 83.62 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007047/1.069, allocations: 8.794 MB / 0.6875 GB, free: 77.05 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.826e-05/1.07, allocations: 34.53 kB / 0.6875 GB, free: 77.05 MB / 410.7 MB Notification: Performance of matching and sorting (n=785) (initialization): time 0.01425/1.084, allocations: 9.553 MB / 0.6969 GB, free: 73.55 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.265e-05/1.084, allocations: 56.75 kB / 0.6969 GB, free: 73.55 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001038/1.084, allocations: 124.5 kB / 0.697 GB, free: 73.55 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004712/1.089, allocations: 1.972 MB / 0.699 GB, free: 73.18 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003415/1.092, allocations: 1.303 MB / 0.7002 GB, free: 73.02 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01588/1.108, allocations: 15.01 MB / 0.7149 GB, free: 61.52 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004305/1.112, allocations: 342.6 kB / 0.7152 GB, free: 61.23 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005389/1.113, allocations: 364.7 kB / 0.7156 GB, free: 60.88 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 569 * Number of states: 0 () * Number of discrete variables: 33 (freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],boxBody2.color[3],boxBody2.color[2],boxBody2.color[1],boxBody2.body.sphereColor[3],boxBody2.body.sphereColor[2],boxBody2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],boxBody1.color[3],boxBody1.color[2],boxBody1.color[1],boxBody1.body.sphereColor[3],boxBody1.body.sphereColor[2],boxBody1.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 (697): * Single equations (assignments): 691 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,88.9%) 35,(3,100.0%) 11} * Non-linear torn systems: 1 {2 13} Notification: Performance of prepare postOptimizeDAE: time 0.003059/1.116, allocations: 2.233 MB / 0.7178 GB, free: 58.91 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005742/1.117, allocations: 386.9 kB / 0.7181 GB, free: 58.53 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006463/1.123, allocations: 4.198 MB / 0.7222 GB, free: 55.17 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.486e-05/1.123, allocations: 31.77 kB / 0.7223 GB, free: 55.14 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.283e-05/1.123, allocations: 8 kB / 0.7223 GB, free: 55.14 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.661e-05/1.123, allocations: 10.08 kB / 0.7223 GB, free: 55.14 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01382/1.137, allocations: 10.01 MB / 0.732 GB, free: 46.98 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.528e-06/1.137, allocations: 4 kB / 0.7321 GB, free: 46.97 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001259/1.138, allocations: 299.7 kB / 0.7323 GB, free: 46.73 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002941/1.141, allocations: 1.224 MB / 0.7335 GB, free: 45.88 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001441/1.141, allocations: 39.83 kB / 0.7336 GB, free: 45.84 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00827/1.15, allocations: 7.558 MB / 0.741 GB, free: 39.25 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/1.15, allocations: 3.938 kB / 0.741 GB, free: 39.25 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009157/1.159, allocations: 7.103 MB / 0.7479 GB, free: 33.15 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001616/1.161, allocations: 0.7259 MB / 0.7486 GB, free: 32.47 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004529/1.161, allocations: 36.55 kB / 0.7486 GB, free: 32.43 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001453/1.162, allocations: 116.8 kB / 0.7487 GB, free: 32.36 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000349/1.163, allocations: 127.7 kB / 0.7489 GB, free: 32.25 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001299/1.163, allocations: 56 kB / 0.7489 GB, free: 32.19 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003483/1.166, allocations: 2.653 MB / 0.7515 GB, free: 29.54 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.11e-07/1.166, allocations: 3.281 kB / 0.7515 GB, free: 29.54 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004928/1.171, allocations: 1.138 MB / 0.7526 GB, free: 28.4 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.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 (157): * Single equations (assignments): 153 * 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 {(4,87.5%) 31} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004031/1.172, allocations: 186.6 kB / 0.7528 GB, free: 28.22 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007468/1.179, allocations: 6.02 MB / 0.7587 GB, free: 22.19 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/1.179, allocations: 2.078 kB / 0.7587 GB, free: 22.19 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002745/1.182, allocations: 2.105 MB / 0.7607 GB, free: 20.07 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003681/1.186, allocations: 0.5514 MB / 0.7613 GB, free: 19.54 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01665/1.202, allocations: 12.21 MB / 0.7732 GB, free: 7.324 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003448/1.206, allocations: 3.536 MB / 0.7767 GB, free: 3.781 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.004493/1.21, allocations: 1.936 MB / 0.7785 GB, free: 1.855 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007079/1.211, allocations: 259.4 kB / 0.7788 GB, free: 1.602 MB / 410.7 MB Notification: Performance of SimCode: time 8.82e-07/1.211, allocations: 0 / 0.7788 GB, free: 1.602 MB / 410.7 MB Notification: Performance of Templates: time 0.2489/1.46, allocations: 46.06 MB / 0.8238 GB, free: 109.4 MB / 442.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulumInitTip/DoublePendulumInitTip.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches