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.001091/0.001091, allocations: 197.2 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.336/1.336, allocations: 225.6 MB / 234.8 MB, free: 3.258 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009993/0.0009993, allocations: 97.2 kB / 286.7 MB, free: 5.281 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.06e-05/2.044e-05, allocations: 4 kB / 343.7 MB, free: 8.281 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.1245, allocations: 51.48 MB / 395.2 MB, free: 4.762 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3498/0.4744, allocations: 93.64 MB / 488.8 MB, free: 15.7 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002591/0.4747, allocations: 85.52 kB / 488.9 MB, free: 15.66 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2264/0.7011, allocations: 85 MB / 0.5604 GB, free: 15.38 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.372e-06/0.7011, allocations: 0 / 0.5604 GB, free: 15.38 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002719/0.7014, allocations: 72 kB / 0.5605 GB, free: 15.3 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.01287/0.7143, allocations: 4.004 MB / 0.5644 GB, free: 11.25 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.896e-05/0.7144, allocations: 8.031 kB / 0.5644 GB, free: 11.24 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02679/0.7412, allocations: 6.618 MB / 0.5709 GB, free: 4.605 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.293/1.034, allocations: 4.885 MB / 0.5757 GB, free: 80.93 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003163/1.035, allocations: 115.3 kB / 0.5758 GB, free: 80.93 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001655/1.036, allocations: 213 kB / 0.576 GB, free: 80.93 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008141/1.044, allocations: 5.244 MB / 0.5811 GB, free: 80.91 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008999/1.053, allocations: 8.187 MB / 0.5891 GB, free: 78.51 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001289/1.054, allocations: 66.03 kB / 0.5892 GB, free: 78.51 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003682/1.054, allocations: 24.94 kB / 0.5892 GB, free: 78.51 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009635/1.055, allocations: 0.8904 MB / 0.59 GB, free: 78.5 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03524/1.09, allocations: 40.66 MB / 0.6297 GB, free: 53.82 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003786/1.094, allocations: 3.037 MB / 0.6327 GB, free: 52.22 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002139/1.096, allocations: 1.892 MB / 0.6346 GB, free: 51.42 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004024/1.097, allocations: 334.5 kB / 0.6349 GB, free: 51.12 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.879e-05/1.097, allocations: 55.86 kB / 0.6349 GB, free: 51.08 MB / 442.7 MB Notification: Performance of pre-optimization done (n=160): time 5.51e-06/1.097, allocations: 0 / 0.6349 GB, free: 51.08 MB / 442.7 MB Notification: Performance of matching and sorting (n=189): time 0.03405/1.131, allocations: 16.71 MB / 0.6512 GB, free: 44.77 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001008/1.131, allocations: 251.6 kB / 0.6515 GB, free: 44.49 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005/1.136, allocations: 3.004 MB / 0.6544 GB, free: 43.41 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004064/1.136, allocations: 32.8 kB / 0.6545 GB, free: 43.38 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001847/1.138, allocations: 2.877 MB / 0.6573 GB, free: 41.27 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008058/1.139, allocations: 0.6999 MB / 0.6579 GB, free: 40.75 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002007/1.139, allocations: 0 / 0.6579 GB, free: 40.75 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002744/1.139, allocations: 0.5439 MB / 0.6585 GB, free: 40.35 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00227/1.142, allocations: 1.971 MB / 0.6604 GB, free: 39.64 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003535/1.145, allocations: 5.325 MB / 0.6656 GB, free: 34.4 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003448/1.149, allocations: 3.227 MB / 0.6688 GB, free: 33.24 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.726e-05/1.149, allocations: 42.64 kB / 0.6688 GB, free: 33.23 MB / 442.7 MB Notification: Performance of matching and sorting (n=738) (initialization): time 0.01454/1.163, allocations: 7.716 MB / 0.6763 GB, free: 30.67 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.548e-05/1.163, allocations: 59.17 kB / 0.6764 GB, free: 30.67 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001118/1.164, allocations: 120 kB / 0.6765 GB, free: 30.67 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003463/1.167, allocations: 1.37 MB / 0.6778 GB, free: 30.43 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003611/1.171, allocations: 1.276 MB / 0.6791 GB, free: 30.27 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009611/1.18, allocations: 7.839 MB / 0.6867 GB, free: 26.48 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004501/1.185, allocations: 210.7 kB / 0.6869 GB, free: 26.46 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000601/1.185, allocations: 347.2 kB / 0.6873 GB, free: 26.42 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 543 * 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 (677): * Single equations (assignments): 673 * 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%) 34} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007899/1.186, allocations: 413.3 kB / 0.6877 GB, free: 26.08 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005108/1.187, allocations: 334.8 kB / 0.688 GB, free: 25.9 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006315/1.193, allocations: 3.735 MB / 0.6916 GB, free: 24.63 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-05/1.193, allocations: 23.89 kB / 0.6917 GB, free: 24.63 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.449e-05/1.193, allocations: 7.688 kB / 0.6917 GB, free: 24.63 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.789e-05/1.193, allocations: 15.33 kB / 0.6917 GB, free: 24.63 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01265/1.206, allocations: 8.14 MB / 0.6996 GB, free: 21.59 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.474e-06/1.206, allocations: 3.938 kB / 0.6996 GB, free: 21.59 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001105/1.207, allocations: 268.5 kB / 0.6999 GB, free: 21.56 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003074/1.21, allocations: 1.19 MB / 0.701 GB, free: 21.24 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001285/1.21, allocations: 12 kB / 0.7011 GB, free: 21.23 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007849/1.218, allocations: 7.025 MB / 0.7079 GB, free: 15.09 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.542e-06/1.218, allocations: 7.938 kB / 0.7079 GB, free: 15.08 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00833/1.226, allocations: 6.607 MB / 0.7144 GB, free: 9.363 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008894/1.227, allocations: 379.4 kB / 0.7147 GB, free: 8.98 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003816/1.228, allocations: 4.812 kB / 0.7147 GB, free: 8.977 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00138/1.229, allocations: 81.31 kB / 0.7148 GB, free: 8.934 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000266/1.229, allocations: 108.3 kB / 0.7149 GB, free: 8.867 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001298/1.23, allocations: 51.94 kB / 0.715 GB, free: 8.82 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002839/1.232, allocations: 2.037 MB / 0.717 GB, free: 7.059 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.3e-07/1.232, allocations: 0 / 0.717 GB, free: 7.059 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004241/1.237, allocations: 0.8624 MB / 0.7178 GB, free: 6.203 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 () * 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.0003824/1.237, allocations: 148.4 kB / 0.718 GB, free: 6.059 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006539/1.244, allocations: 5.002 MB / 0.7228 GB, free: 1.562 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/1.244, allocations: 3.938 kB / 0.7228 GB, free: 1.562 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002546/1.246, allocations: 1.905 MB / 0.7247 GB, free: 15.88 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002052/1.248, allocations: 379.2 kB / 0.7251 GB, free: 15.56 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01392/1.262, allocations: 7.421 MB / 0.7323 GB, free: 8.945 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00328/1.265, allocations: 3.166 MB / 0.7354 GB, free: 6.527 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.004606/1.27, allocations: 1.874 MB / 0.7372 GB, free: 5.344 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000715/1.271, allocations: 227.2 kB / 0.7374 GB, free: 5.133 MB / 458.7 MB Notification: Performance of SimCode: time 7.61e-07/1.271, allocations: 0 / 0.7374 GB, free: 5.133 MB / 458.7 MB Notification: Performance of Templates: time 0.327/1.598, allocations: 34.93 MB / 0.7716 GB, free: 83.07 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