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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001383/0.001383, allocations: 118.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001681/0.001681, allocations: 201.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.433/1.433, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001084/0.001084, allocations: 59.89 kB / 358.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2537/0.2548, allocations: 50.55 MB / 409.3 MB, free: 1.469 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01092/0.2658, allocations: 10.4 MB / 419.7 MB, free: 7.027 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007841/0.2737, allocations: 3.952 MB / 423.6 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001909/0.2756, allocations: 63.81 kB / 423.7 MB, free: 3 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004398/0.2801, allocations: 2.207 MB / 425.9 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004689/0.2848, allocations: 1.828 MB / 427.7 MB, free: 14.95 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001808/0.2866, allocations: 0.737 MB / 428.4 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006947/0.2936, allocations: 5.253 MB / 433.7 MB, free: 8.949 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004153/0.2977, allocations: 2.881 MB / 436.6 MB, free: 6.016 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002767/0.3005, allocations: 1.472 MB / 438 MB, free: 4.539 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003328/0.3039, allocations: 2.044 MB / 440.1 MB, free: 2.488 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009876/0.3049, allocations: 300 kB / 440.4 MB, free: 2.195 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002817/0.3077, allocations: 1.178 MB / 441.6 MB, free: 1.016 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002374/0.3101, allocations: 1.851 MB / 443.4 MB, free: 15.15 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003983/0.3141, allocations: 2.054 MB / 445.5 MB, free: 13.09 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007745/0.3218, allocations: 6.627 MB / 452.1 MB, free: 6.441 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.3219, allocations: 0 / 452.1 MB, free: 6.441 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.3219, allocations: 0 / 452.1 MB, free: 6.441 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001279/0.322, allocations: 0 / 452.1 MB, free: 6.441 MB / 366.1 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.009784/0.3318, allocations: 4.666 MB / 456.8 MB, free: 1.703 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.711e-05/0.3319, allocations: 12.03 kB / 456.8 MB, free: 1.691 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02756/0.3594, allocations: 3.081 MB / 459.9 MB, free: 14.6 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008598/0.3681, allocations: 3.28 MB / 463.1 MB, free: 11.26 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001823/0.3683, allocations: 201 kB / 463.3 MB, free: 11.06 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001127/0.3694, allocations: 271.7 kB / 463.6 MB, free: 10.8 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01591/0.3854, allocations: 8.859 MB / 472.5 MB, free: 1.285 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001363/0.3855, allocations: 51.58 kB / 472.5 MB, free: 1.234 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003703/0.3859, allocations: 127.9 kB / 472.6 MB, free: 1.109 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00303/0.389, allocations: 1.77 MB / 474.4 MB, free: 15.34 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01464/0.4036, allocations: 7.784 MB / 482.2 MB, free: 7.547 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04032/0.444, allocations: 35.86 MB / 0.5059 GB, free: 2.602 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008003/0.452, allocations: 3.813 MB / 0.5096 GB, free: 14.65 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002826/0.4549, allocations: 2.162 MB / 0.5117 GB, free: 12.48 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004225/0.4553, allocations: 328 kB / 0.5121 GB, free: 12.1 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.179e-05/0.4554, allocations: 59.42 kB / 0.5121 GB, free: 12.03 MB / 446.1 MB Notification: Performance of pre-optimization done (n=160): time 4.028e-06/0.4554, allocations: 0 / 0.5121 GB, free: 12.03 MB / 446.1 MB Notification: Performance of matching and sorting (n=190): time 0.05509/0.5105, allocations: 21.39 MB / 0.533 GB, free: 6.512 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001374/0.5107, allocations: 256.6 kB / 0.5332 GB, free: 6.207 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005314/0.516, allocations: 3.934 MB / 0.5371 GB, free: 2.289 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003945/0.5164, allocations: 49.7 kB / 0.5371 GB, free: 2.234 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2303/0.7467, allocations: 2.768 MB / 0.5398 GB, free: 124.4 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001328/0.7481, allocations: 0.7268 MB / 0.5405 GB, free: 124.3 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002481/0.7506, allocations: 1.173 MB / 0.5417 GB, free: 124.2 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.098e-05/0.7506, allocations: 301.7 kB / 0.542 GB, free: 123.9 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003419/0.7541, allocations: 2.386 MB / 0.5443 GB, free: 123.1 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003781/0.7579, allocations: 5.642 MB / 0.5498 GB, free: 118 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007104/0.765, allocations: 8.567 MB / 0.5582 GB, free: 111.3 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-05/0.765, allocations: 33.31 kB / 0.5582 GB, free: 111.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01362/0.7787, allocations: 9.632 MB / 0.5676 GB, free: 105.2 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.296e-05/0.7787, allocations: 55.7 kB / 0.5677 GB, free: 105.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.351e-05/0.7788, allocations: 115.9 kB / 0.5678 GB, free: 105.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005027/0.7839, allocations: 2.019 MB / 0.5698 GB, free: 103.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003447/0.7873, allocations: 1.276 MB / 0.571 GB, free: 102.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01197/0.7993, allocations: 11.36 MB / 0.5821 GB, free: 90.94 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004148/0.8035, allocations: 343 kB / 0.5824 GB, free: 90.61 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005511/0.8041, allocations: 347.8 kB / 0.5828 GB, free: 90.27 MB / 462.1 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.002297/0.8064, allocations: 1.939 MB / 0.5846 GB, free: 88.32 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005294/0.8069, allocations: 347.5 kB / 0.585 GB, free: 87.98 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007744/0.8146, allocations: 4.891 MB / 0.5898 GB, free: 83.07 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.149e-05/0.8147, allocations: 20 kB / 0.5898 GB, free: 83.05 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.178e-05/0.8147, allocations: 11.84 kB / 0.5898 GB, free: 83.04 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.119e-05/0.8148, allocations: 11.97 kB / 0.5898 GB, free: 83.03 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01506/0.8298, allocations: 9.995 MB / 0.5996 GB, free: 73.01 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-05/0.8299, allocations: 3.984 kB / 0.5996 GB, free: 73.01 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001192/0.8311, allocations: 263.6 kB / 0.5998 GB, free: 72.75 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004579/0.8357, allocations: 1.842 MB / 0.6016 GB, free: 70.9 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000328/0.836, allocations: 43.81 kB / 0.6017 GB, free: 70.86 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01088/0.8469, allocations: 10.4 MB / 0.6118 GB, free: 60.31 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.8469, allocations: 0 / 0.6118 GB, free: 60.31 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01065/0.8576, allocations: 7.949 MB / 0.6196 GB, free: 52.34 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001021/0.8586, allocations: 404.6 kB / 0.62 GB, free: 51.92 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003637/0.859, allocations: 32 kB / 0.62 GB, free: 51.89 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001503/0.8605, allocations: 139.7 kB / 0.6201 GB, free: 51.75 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000346/0.8609, allocations: 113.2 kB / 0.6202 GB, free: 51.64 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001341/0.861, allocations: 48 kB / 0.6203 GB, free: 51.59 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002762/0.8638, allocations: 2.48 MB / 0.6227 GB, free: 49.13 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.8638, allocations: 0 / 0.6227 GB, free: 49.13 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003939/0.8677, allocations: 1.06 MB / 0.6237 GB, free: 48.08 MB / 462.1 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.0004113/0.8682, allocations: 169 kB / 0.6239 GB, free: 47.91 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007438/0.8756, allocations: 5.822 MB / 0.6296 GB, free: 42.1 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.354e-06/0.8756, allocations: 0 / 0.6296 GB, free: 42.1 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002491/0.8781, allocations: 2.098 MB / 0.6316 GB, free: 39.99 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002858/0.881, allocations: 461 kB / 0.6321 GB, free: 39.55 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01431/0.8954, allocations: 9.41 MB / 0.6413 GB, free: 30.11 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002521/0.8979, allocations: 3.084 MB / 0.6443 GB, free: 27 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003441/0.9014, allocations: 1.815 MB / 0.646 GB, free: 25.18 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005849/0.902, allocations: 239.4 kB / 0.6463 GB, free: 24.94 MB / 462.1 MB Notification: Performance of SimCode: time 9.61e-07/0.902, allocations: 0 / 0.6463 GB, free: 24.94 MB / 462.1 MB Notification: Performance of Templates: time 0.06795/0.9699, allocations: 42.33 MB / 0.6876 GB, free: 14.88 MB / 494.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches