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.001279/0.001279, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.229/1.229, allocations: 227.2 MB / 245 MB, free: 7.598 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009438/0.0009438, allocations: 89 kB / 297.3 MB, free: 6.191 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002431/0.000243, allocations: 8 kB / 357.9 MB, free: 9.531 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2057/0.206, allocations: 51.49 MB / 409.4 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1064/0.3124, allocations: 94.37 MB / 0.492 GB, free: 12.2 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002567/0.3127, allocations: 89.67 kB / 0.4921 GB, free: 12.12 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3712/0.6839, allocations: 86.38 MB / 0.5764 GB, free: 33.65 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.685e-06/0.684, allocations: 0 / 0.5764 GB, free: 33.65 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000242/0.6843, allocations: 76 kB / 0.5765 GB, free: 33.57 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: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.01385/0.6981, allocations: 4.363 MB / 0.5808 GB, free: 29.14 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.458e-05/0.6982, allocations: 8.031 kB / 0.5808 GB, free: 29.13 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02315/0.7213, allocations: 6.602 MB / 0.5872 GB, free: 22.52 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01238/0.7337, allocations: 4.929 MB / 0.592 GB, free: 17.53 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002312/0.734, allocations: 267 kB / 0.5923 GB, free: 17.27 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001543/0.7356, allocations: 363.7 kB / 0.5926 GB, free: 16.91 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02009/0.7557, allocations: 9.102 MB / 0.6015 GB, free: 6.891 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000212/0.7559, allocations: 55.47 kB / 0.6016 GB, free: 6.836 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008123/0.7567, allocations: 175.9 kB / 0.6017 GB, free: 6.664 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001443/0.7582, allocations: 0.8962 MB / 0.6026 GB, free: 5.762 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01591/0.7741, allocations: 7.596 MB / 0.61 GB, free: 14.16 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04655/0.8207, allocations: 42.23 MB / 0.6513 GB, free: 2.531 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008156/0.8289, allocations: 3.77 MB / 0.655 GB, free: 14.61 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004379/0.8294, allocations: 332 kB / 0.6553 GB, free: 14.23 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.724e-05/0.8295, allocations: 55.5 kB / 0.6553 GB, free: 14.17 MB / 442.7 MB Notification: Performance of pre-optimization done (n=160): time 4.679e-06/0.8295, allocations: 0 / 0.6553 GB, free: 14.17 MB / 442.7 MB Notification: Performance of matching and sorting (n=189): time 0.2417/1.071, allocations: 19.39 MB / 0.6743 GB, free: 105 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.81e-05/1.071, allocations: 259.9 kB / 0.6745 GB, free: 104.7 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004599/1.076, allocations: 3.447 MB / 0.6779 GB, free: 104.4 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003921/1.076, allocations: 51.95 kB / 0.6779 GB, free: 104.4 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001791/1.078, allocations: 2.831 MB / 0.6807 GB, free: 103.1 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007613/1.079, allocations: 0.7191 MB / 0.6814 GB, free: 102.7 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000229/1.079, allocations: 109.5 kB / 0.6815 GB, free: 102.7 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002433/1.079, allocations: 0.5348 MB / 0.682 GB, free: 102.4 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002658/1.082, allocations: 2.078 MB / 0.684 GB, free: 102.4 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003691/1.086, allocations: 5.323 MB / 0.6892 GB, free: 98.17 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004004/1.09, allocations: 3.276 MB / 0.6924 GB, free: 98.15 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.065e-05/1.09, allocations: 40.05 kB / 0.6925 GB, free: 98.15 MB / 442.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.01194/1.102, allocations: 8.422 MB / 0.7007 GB, free: 97.19 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.517e-05/1.102, allocations: 53.16 kB / 0.7008 GB, free: 97.19 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.317e-05/1.102, allocations: 113.2 kB / 0.7009 GB, free: 97.19 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00321/1.105, allocations: 1.375 MB / 0.7022 GB, free: 96.95 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003222/1.108, allocations: 1.228 MB / 0.7034 GB, free: 96.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009547/1.118, allocations: 8.717 MB / 0.7119 GB, free: 92.66 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004374/1.122, allocations: 312.1 kB / 0.7122 GB, free: 92.56 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000806/1.123, allocations: 331.8 kB / 0.7125 GB, free: 92.52 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 519 * 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 (653): * Single equations (assignments): 649 * 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 {(2,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003548/1.127, allocations: 1.945 MB / 0.7144 GB, free: 91.6 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007258/1.127, allocations: 351.2 kB / 0.7148 GB, free: 91.41 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006751/1.134, allocations: 3.921 MB / 0.7186 GB, free: 90.01 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.938e-05/1.134, allocations: 18.19 kB / 0.7186 GB, free: 90.01 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.786e-05/1.134, allocations: 17.11 kB / 0.7186 GB, free: 90 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.706e-05/1.134, allocations: 7.688 kB / 0.7186 GB, free: 90 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01596/1.15, allocations: 8.898 MB / 0.7273 GB, free: 86.67 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.367e-05/1.15, allocations: 1.562 kB / 0.7273 GB, free: 86.67 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001142/1.151, allocations: 262.7 kB / 0.7276 GB, free: 86.65 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003114/1.155, allocations: 1.222 MB / 0.7288 GB, free: 86.41 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000191/1.155, allocations: 33.86 kB / 0.7288 GB, free: 86.39 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008723/1.164, allocations: 7.86 MB / 0.7365 GB, free: 80.2 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/1.164, allocations: 7.938 kB / 0.7365 GB, free: 80.19 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008762/1.172, allocations: 6.808 MB / 0.7431 GB, free: 74.32 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001258/1.174, allocations: 401 kB / 0.7435 GB, free: 73.92 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008054/1.174, allocations: 39.59 kB / 0.7435 GB, free: 73.89 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001833/1.176, allocations: 111.3 kB / 0.7437 GB, free: 73.82 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003105/1.177, allocations: 109.8 kB / 0.7438 GB, free: 73.75 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001387/1.177, allocations: 51.88 kB / 0.7438 GB, free: 73.7 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004238/1.181, allocations: 2.444 MB / 0.7462 GB, free: 71.68 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.61e-07/1.181, allocations: 0 / 0.7462 GB, free: 71.68 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005805/1.187, allocations: 1.008 MB / 0.7472 GB, free: 70.68 MB / 442.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 (135): * Single equations (assignments): 131 * 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.0006216/1.187, allocations: 176.3 kB / 0.7473 GB, free: 70.52 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00693/1.194, allocations: 5.178 MB / 0.7524 GB, free: 65.98 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.021e-06/1.194, allocations: 4 kB / 0.7524 GB, free: 65.98 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002703/1.197, allocations: 1.992 MB / 0.7544 GB, free: 64.25 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002617/1.2, allocations: 443.4 kB / 0.7548 GB, free: 63.88 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01681/1.217, allocations: 10.51 MB / 0.765 GB, free: 54.33 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00459/1.221, allocations: 3.17 MB / 0.7681 GB, free: 51.91 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004307/1.226, allocations: 1.823 MB / 0.7699 GB, free: 50.75 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007655/1.226, allocations: 238.7 kB / 0.7701 GB, free: 50.52 MB / 442.7 MB Notification: Performance of SimCode: time 6.51e-07/1.226, allocations: 0 / 0.7701 GB, free: 50.52 MB / 442.7 MB Notification: Performance of Templates: time 0.06014/1.287, allocations: 38.7 MB / 0.8079 GB, free: 13.89 MB / 442.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/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