Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.conf.json 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/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001164/0.001164, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.259/1.259, allocations: 226.7 MB / 245.5 MB, free: 6.977 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009942/0.0009941, allocations: 104.2 kB / 296.7 MB, free: 6.465 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008959/0.0008959, allocations: 51.92 kB / 356.6 MB, free: 10.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1939/0.1948, allocations: 50.46 MB / 407.1 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.02631/0.2212, allocations: 38.39 MB / 445.4 MB, free: 5.27 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0158/0.237, allocations: 8.693 MB / 454.1 MB, free: 12.55 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005983/0.243, allocations: 167.6 kB / 454.3 MB, free: 12.38 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004197/0.2473, allocations: 2.189 MB / 456.5 MB, free: 10.19 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004175/0.2515, allocations: 1.721 MB / 458.2 MB, free: 8.461 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001509/0.253, allocations: 0.6787 MB / 458.9 MB, free: 7.781 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.008047/0.261, allocations: 7.352 MB / 466.2 MB, free: 428 kB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004311/0.2654, allocations: 2.81 MB / 469.1 MB, free: 13.56 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00215/0.2676, allocations: 1.312 MB / 470.4 MB, free: 12.24 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00303/0.2706, allocations: 2.177 MB / 472.5 MB, free: 10.06 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007978/0.2714, allocations: 204 kB / 472.7 MB, free: 9.859 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002283/0.2737, allocations: 1.135 MB / 473.9 MB, free: 8.723 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001942/0.2757, allocations: 1.769 MB / 475.6 MB, free: 6.949 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002309/0.278, allocations: 1.972 MB / 477.6 MB, free: 4.965 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007228/0.2852, allocations: 6.394 MB / 484 MB, free: 14.55 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.2853, allocations: 0 / 484 MB, free: 14.55 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.2853, allocations: 3.938 kB / 484 MB, free: 14.55 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001508/0.2854, allocations: 0 / 484 MB, free: 14.55 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.00866/0.2941, allocations: 4.697 MB / 488.7 MB, free: 9.777 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.2942, allocations: 8.031 kB / 488.7 MB, free: 9.77 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02625/0.3204, allocations: 3.088 MB / 491.8 MB, free: 6.672 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007952/0.3284, allocations: 3.206 MB / 495 MB, free: 3.406 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001357/0.3286, allocations: 208.9 kB / 495.2 MB, free: 3.199 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005801/0.3292, allocations: 263.8 kB / 495.5 MB, free: 2.941 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01256/0.3417, allocations: 8.863 MB / 0.4925 GB, free: 9.43 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001011/0.3419, allocations: 51.58 kB / 0.4926 GB, free: 9.379 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003175/0.3422, allocations: 131.9 kB / 0.4927 GB, free: 9.25 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002853/0.345, allocations: 1.766 MB / 0.4944 GB, free: 7.48 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1759/0.521, allocations: 7.783 MB / 0.502 GB, free: 90.36 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03346/0.5545, allocations: 36.02 MB / 0.5372 GB, free: 64.27 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00626/0.5608, allocations: 3.815 MB / 0.5409 GB, free: 60.76 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001761/0.5626, allocations: 2.156 MB / 0.543 GB, free: 58.59 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000324/0.5629, allocations: 331.2 kB / 0.5433 GB, free: 58.22 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.613e-05/0.5629, allocations: 55.44 kB / 0.5434 GB, free: 58.16 MB / 378.7 MB Notification: Performance of pre-optimization done (n=160): time 3.957e-06/0.563, allocations: 0 / 0.5434 GB, free: 58.16 MB / 378.7 MB Notification: Performance of matching and sorting (n=190): time 0.04726/0.6102, allocations: 21.39 MB / 0.5643 GB, free: 36.66 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.452e-05/0.6103, allocations: 264.5 kB / 0.5645 GB, free: 36.35 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003589/0.6139, allocations: 3.931 MB / 0.5684 GB, free: 32.43 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001397/0.614, allocations: 53.7 kB / 0.5684 GB, free: 32.38 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001022/0.6151, allocations: 2.772 MB / 0.5711 GB, free: 29.61 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000413/0.6155, allocations: 0.7248 MB / 0.5718 GB, free: 28.89 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001124/0.6166, allocations: 1.172 MB / 0.573 GB, free: 27.71 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.155e-05/0.6167, allocations: 305.1 kB / 0.5733 GB, free: 27.41 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002418/0.6191, allocations: 2.385 MB / 0.5756 GB, free: 25.02 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003323/0.6224, allocations: 5.644 MB / 0.5811 GB, free: 17.75 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006287/0.6287, allocations: 8.569 MB / 0.5895 GB, free: 7.605 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.289e-05/0.6288, allocations: 32 kB / 0.5895 GB, free: 7.574 MB / 378.7 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01341/0.6422, allocations: 9.64 MB / 0.5989 GB, free: 13.92 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.25e-05/0.6423, allocations: 52 kB / 0.599 GB, free: 13.87 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.19e-05/0.6424, allocations: 116 kB / 0.5991 GB, free: 13.75 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005443/0.6478, allocations: 2.023 MB / 0.6011 GB, free: 11.73 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003672/0.6515, allocations: 1.279 MB / 0.6023 GB, free: 10.45 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01395/0.6655, allocations: 10.59 MB / 0.6127 GB, free: 15.73 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00373/0.6692, allocations: 343.4 kB / 0.613 GB, free: 15.39 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005031/0.6697, allocations: 340 kB / 0.6133 GB, free: 15.06 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 515 * Number of states: 0 () * Number of discrete variables: 30 (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 (688): * Single equations (assignments): 684 * 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 {(3,35,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002464/0.6722, allocations: 1.936 MB / 0.6152 GB, free: 13.11 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005091/0.6727, allocations: 347.6 kB / 0.6155 GB, free: 12.77 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009351/0.6821, allocations: 4.899 MB / 0.6203 GB, free: 7.852 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.544e-05/0.6821, allocations: 24 kB / 0.6203 GB, free: 7.828 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.096e-05/0.6821, allocations: 8 kB / 0.6203 GB, free: 7.82 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.721e-05/0.6822, allocations: 11.97 kB / 0.6204 GB, free: 7.809 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01715/0.6993, allocations: 10.03 MB / 0.6301 GB, free: 13.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.119e-05/0.6994, allocations: 9.203 kB / 0.6302 GB, free: 13.69 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001228/0.7006, allocations: 263.6 kB / 0.6304 GB, free: 13.43 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005185/0.7058, allocations: 1.846 MB / 0.6322 GB, free: 11.58 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001501/0.7059, allocations: 35.92 kB / 0.6322 GB, free: 11.54 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01261/0.7186, allocations: 9.695 MB / 0.6417 GB, free: 1.703 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/0.7186, allocations: 8.031 kB / 0.6417 GB, free: 1.695 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2638/0.9824, allocations: 59.72 MB / 0.7 GB, free: 145.5 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005324/0.9829, allocations: 407 kB / 0.7004 GB, free: 145.4 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003647/0.9833, allocations: 36.27 kB / 0.7005 GB, free: 145.4 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001517/0.9848, allocations: 133.4 kB / 0.7006 GB, free: 145.4 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003481/0.9852, allocations: 122 kB / 0.7007 GB, free: 145.3 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001307/0.9853, allocations: 47.06 kB / 0.7007 GB, free: 145.3 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002718/0.9881, allocations: 2.488 MB / 0.7032 GB, free: 144.4 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.9881, allocations: 2.156 kB / 0.7032 GB, free: 144.4 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004268/0.9923, allocations: 1.47 MB / 0.7046 GB, free: 142.9 MB / 458.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 (136): * Single equations (assignments): 132 * 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,33,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003317/0.9927, allocations: 170.8 kB / 0.7048 GB, free: 142.8 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006367/0.9991, allocations: 5.806 MB / 0.7104 GB, free: 137.8 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.9991, allocations: 4 kB / 0.7105 GB, free: 137.8 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002218/1.001, allocations: 2.089 MB / 0.7125 GB, free: 135.8 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002229/1.004, allocations: 442.3 kB / 0.7129 GB, free: 135.4 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0136/1.017, allocations: 12.89 MB / 0.7255 GB, free: 122.7 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002499/1.02, allocations: 3.156 MB / 0.7286 GB, free: 119.5 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003863/1.024, allocations: 1.854 MB / 0.7304 GB, free: 117.7 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007072/1.024, allocations: 247.4 kB / 0.7306 GB, free: 117.4 MB / 458.7 MB Notification: Performance of SimCode: time 7.51e-07/1.024, allocations: 0 / 0.7306 GB, free: 117.4 MB / 458.7 MB Notification: Performance of Templates: time 0.07238/1.097, allocations: 59.6 MB / 0.7888 GB, free: 58 MB / 458.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches