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.001381/0.001381, allocations: 196.9 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.343/1.343, allocations: 225.4 MB / 240.1 MB, free: 15.04 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008627/0.0008628, allocations: 88.44 kB / 292.1 MB, free: 5.984 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.954e-05/2.957e-05, allocations: 8 kB / 350.5 MB, free: 2.527 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09664/0.09668, allocations: 51.49 MB / 402 MB, free: 15 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3915/0.4883, allocations: 94.31 MB / 496.3 MB, free: 11.39 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002783/0.4886, allocations: 88.53 kB / 496.4 MB, free: 11.34 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2216/0.7102, allocations: 86.39 MB / 0.5692 GB, free: 6.098 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.7103, allocations: 4 kB / 0.5692 GB, free: 6.094 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002504/0.7105, allocations: 68 kB / 0.5692 GB, free: 6.027 MB / 442.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.01491/0.7254, allocations: 3.999 MB / 0.5731 GB, free: 1.973 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.892e-05/0.7255, allocations: 12.03 kB / 0.5731 GB, free: 1.961 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3085/1.034, allocations: 6.615 MB / 0.5796 GB, free: 80.95 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01242/1.047, allocations: 4.884 MB / 0.5844 GB, free: 80.6 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003502/1.047, allocations: 262.9 kB / 0.5846 GB, free: 80.59 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001883/1.049, allocations: 364.8 kB / 0.585 GB, free: 80.58 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01668/1.065, allocations: 9.039 MB / 0.5938 GB, free: 78.16 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001959/1.066, allocations: 56.81 kB / 0.5938 GB, free: 78.16 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005533/1.066, allocations: 176.2 kB / 0.594 GB, free: 78.16 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001144/1.067, allocations: 0.8898 MB / 0.5949 GB, free: 78.15 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0138/1.081, allocations: 7.485 MB / 0.6022 GB, free: 78.13 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04805/1.129, allocations: 42.24 MB / 0.6434 GB, free: 50.08 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009397/1.139, allocations: 3.721 MB / 0.6471 GB, free: 48.55 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002216/1.141, allocations: 1.956 MB / 0.649 GB, free: 47.73 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004093/1.142, allocations: 322.8 kB / 0.6493 GB, free: 47.44 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.742e-05/1.142, allocations: 57.09 kB / 0.6494 GB, free: 47.38 MB / 442.7 MB Notification: Performance of pre-optimization done (n=160): time 4.719e-06/1.142, allocations: 0 / 0.6494 GB, free: 47.38 MB / 442.7 MB Notification: Performance of matching and sorting (n=189): time 0.04556/1.187, allocations: 17.12 MB / 0.6661 GB, free: 41.54 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.613e-05/1.187, allocations: 261.5 kB / 0.6663 GB, free: 41.25 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005265/1.193, allocations: 3.408 MB / 0.6697 GB, free: 39.96 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004661/1.193, allocations: 52.45 kB / 0.6697 GB, free: 39.91 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001625/1.195, allocations: 2.836 MB / 0.6725 GB, free: 37.72 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008476/1.196, allocations: 0.7145 MB / 0.6732 GB, free: 37.2 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002639/1.196, allocations: 111.3 kB / 0.6733 GB, free: 37.11 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000245/1.196, allocations: 0.5328 MB / 0.6738 GB, free: 36.71 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002607/1.199, allocations: 2.047 MB / 0.6758 GB, free: 36.02 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003588/1.202, allocations: 5.279 MB / 0.6809 GB, free: 30.86 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004292/1.207, allocations: 3.269 MB / 0.6841 GB, free: 29.64 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.913e-05/1.207, allocations: 33.12 kB / 0.6842 GB, free: 29.64 MB / 442.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.01469/1.221, allocations: 8.335 MB / 0.6923 GB, free: 26.7 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.629e-05/1.222, allocations: 55.53 kB / 0.6924 GB, free: 26.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001364/1.222, allocations: 114.5 kB / 0.6925 GB, free: 26.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003426/1.225, allocations: 1.378 MB / 0.6938 GB, free: 26.46 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003965/1.229, allocations: 1.227 MB / 0.695 GB, free: 26.15 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01025/1.239, allocations: 8.4 MB / 0.7032 GB, free: 18.78 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005194/1.245, allocations: 322.5 kB / 0.7035 GB, free: 18.5 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001122/1.246, allocations: 332.2 kB / 0.7038 GB, free: 18.19 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 () * 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.00101/1.247, allocations: 0.5205 MB / 0.7044 GB, free: 17.67 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001124/1.248, allocations: 351.5 kB / 0.7047 GB, free: 17.32 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007585/1.255, allocations: 3.9 MB / 0.7085 GB, free: 14.21 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.831e-05/1.256, allocations: 20 kB / 0.7085 GB, free: 14.2 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.364e-05/1.256, allocations: 8 kB / 0.7085 GB, free: 14.19 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.836e-05/1.256, allocations: 11.12 kB / 0.7085 GB, free: 14.18 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01527/1.271, allocations: 8.883 MB / 0.7172 GB, free: 6.949 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.527e-05/1.271, allocations: 0 / 0.7172 GB, free: 6.949 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001204/1.272, allocations: 261.9 kB / 0.7175 GB, free: 6.738 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003234/1.275, allocations: 1.209 MB / 0.7186 GB, free: 5.887 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000243/1.276, allocations: 39.75 kB / 0.7187 GB, free: 5.852 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009354/1.285, allocations: 7.542 MB / 0.726 GB, free: 15.27 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/1.285, allocations: 0 / 0.726 GB, free: 15.27 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01094/1.296, allocations: 6.762 MB / 0.7326 GB, free: 9.371 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001286/1.297, allocations: 399.9 kB / 0.733 GB, free: 8.969 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007037/1.298, allocations: 31.38 kB / 0.7331 GB, free: 8.941 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001932/1.3, allocations: 117.6 kB / 0.7332 GB, free: 8.867 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003657/1.3, allocations: 110.2 kB / 0.7333 GB, free: 8.797 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001462/1.301, allocations: 51.84 kB / 0.7333 GB, free: 8.75 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004751/1.305, allocations: 2.408 MB / 0.7357 GB, free: 6.598 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.81e-07/1.305, allocations: 0 / 0.7357 GB, free: 6.598 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006577/1.312, allocations: 1.005 MB / 0.7367 GB, free: 5.605 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 () * 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.0006266/1.313, allocations: 180 kB / 0.7368 GB, free: 5.438 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.009029/1.322, allocations: 5.12 MB / 0.7418 GB, free: 0.7617 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.512e-06/1.322, allocations: 0 / 0.7418 GB, free: 0.7617 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.2576/1.579, allocations: 2.017 MB / 0.7438 GB, free: 86.54 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003675/1.583, allocations: 455.3 kB / 0.7442 GB, free: 86.52 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01738/1.6, allocations: 7.525 MB / 0.7516 GB, free: 85.15 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00393/1.604, allocations: 3.165 MB / 0.7547 GB, free: 84.37 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.004641/1.609, allocations: 1.824 MB / 0.7565 GB, free: 84.33 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008309/1.61, allocations: 239.3 kB / 0.7567 GB, free: 84.32 MB / 458.7 MB Notification: Performance of SimCode: time 1.393e-06/1.61, allocations: 0 / 0.7567 GB, free: 84.32 MB / 458.7 MB Notification: Performance of Templates: time 0.08111/1.691, allocations: 38.71 MB / 0.7945 GB, free: 82.79 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/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