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.001191/0.00119, allocations: 99.3 kB / 16.99 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001497/0.001497, allocations: 198.3 kB / 17.9 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.298/1.298, allocations: 227.2 MB / 245.9 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002269/0.0002269, allocations: 4 kB / 306.6 MB, free: 1.406 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09284/0.09309, allocations: 51.49 MB / 358.1 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.1823/0.2754, allocations: 32.79 MB / 390.9 MB, free: 2.758 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01964/0.2951, allocations: 8.554 MB / 399.4 MB, free: 12.96 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007803/0.303, allocations: 165.1 kB / 399.6 MB, free: 12.93 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006864/0.3099, allocations: 1.6 MB / 401.2 MB, free: 12.41 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01575/0.3256, allocations: 4.893 MB / 406.1 MB, free: 9.141 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002371/0.328, allocations: 0.6255 MB / 406.7 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.06551/0.3936, allocations: 48.1 MB / 454.8 MB, free: 10.84 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005592/0.3992, allocations: 3.461 MB / 458.3 MB, free: 7.328 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002051/0.4013, allocations: 1.04 MB / 459.3 MB, free: 6.285 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002116/0.4034, allocations: 1.398 MB / 460.7 MB, free: 4.883 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005635/0.404, allocations: 132 kB / 460.8 MB, free: 4.754 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001834/0.4058, allocations: 0.8895 MB / 461.7 MB, free: 3.863 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001393/0.4072, allocations: 1.535 MB / 463.3 MB, free: 2.324 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007619/0.408, allocations: 0.7766 MB / 464 MB, free: 1.539 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004817/0.4128, allocations: 5.391 MB / 469.4 MB, free: 12.14 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.4129, allocations: 4 kB / 469.4 MB, free: 12.13 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.4129, allocations: 0 / 469.4 MB, free: 12.13 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.335e-05/0.4129, allocations: 0 / 469.4 MB, free: 12.13 MB / 382.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.01012/0.4231, allocations: 4.281 MB / 473.7 MB, free: 7.781 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.532e-05/0.4231, allocations: 12.03 kB / 473.7 MB, free: 7.77 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1601/0.5832, allocations: 14.45 MB / 488.2 MB, free: 9.301 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007812/0.5911, allocations: 3.398 MB / 491.6 MB, free: 5.844 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001358/0.5912, allocations: 197 kB / 491.8 MB, free: 5.648 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005044/0.5917, allocations: 271.8 kB / 492 MB, free: 5.383 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01267/0.6044, allocations: 8.804 MB / 0.4891 GB, free: 11.93 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.642e-05/0.6045, allocations: 51.5 kB / 0.4891 GB, free: 11.88 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003141/0.6049, allocations: 131.9 kB / 0.4893 GB, free: 11.75 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00292/0.6078, allocations: 1.762 MB / 0.491 GB, free: 9.977 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01372/0.6215, allocations: 7.608 MB / 0.4984 GB, free: 2.367 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2518/0.8734, allocations: 35.62 MB / 0.5332 GB, free: 141.2 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009087/0.8825, allocations: 3.752 MB / 0.5369 GB, free: 140.6 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004363/0.883, allocations: 332.1 kB / 0.5372 GB, free: 140.3 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.244e-05/0.883, allocations: 54.84 kB / 0.5372 GB, free: 140.2 MB / 446.1 MB Notification: Performance of pre-optimization done (n=160): time 4.809e-06/0.8831, allocations: 0 / 0.5372 GB, free: 140.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=190): time 0.05458/0.9376, allocations: 20.76 MB / 0.5575 GB, free: 134.7 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001082/0.9378, allocations: 253.9 kB / 0.5577 GB, free: 134.5 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005006/0.9428, allocations: 4.165 MB / 0.5618 GB, free: 132.6 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003923/0.9432, allocations: 58.58 kB / 0.5619 GB, free: 132.6 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001939/0.9452, allocations: 2.817 MB / 0.5646 GB, free: 130.1 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009981/0.9462, allocations: 0.7299 MB / 0.5653 GB, free: 129.5 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002337/0.9464, allocations: 109.6 kB / 0.5654 GB, free: 129.4 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002938/0.9467, allocations: 0.5342 MB / 0.5659 GB, free: 129 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002678/0.9494, allocations: 2.145 MB / 0.568 GB, free: 127.9 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004533/0.954, allocations: 5.364 MB / 0.5733 GB, free: 121.2 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003958/0.9579, allocations: 3.329 MB / 0.5765 GB, free: 118.1 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.332e-05/0.958, allocations: 32 kB / 0.5766 GB, free: 118.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01385/0.9719, allocations: 8.604 MB / 0.585 GB, free: 109.4 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.153e-05/0.972, allocations: 55.95 kB / 0.585 GB, free: 109.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001348/0.9721, allocations: 116.8 kB / 0.5851 GB, free: 109.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003696/0.9758, allocations: 1.516 MB / 0.5866 GB, free: 107.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003773/0.9796, allocations: 1.225 MB / 0.5878 GB, free: 106.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01016/0.9898, allocations: 9.487 MB / 0.5971 GB, free: 96.91 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004715/0.9945, allocations: 327.5 kB / 0.5974 GB, free: 96.59 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008082/0.9954, allocations: 330.2 kB / 0.5977 GB, free: 96.27 MB / 446.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 (650): * Single equations (assignments): 646 * 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 {(3,88.9%) 35} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002899/0.9983, allocations: 1.938 MB / 0.5996 GB, free: 94.32 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007691/0.9991, allocations: 359.3 kB / 0.5999 GB, free: 93.96 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006422/1.005, allocations: 4.135 MB / 0.604 GB, free: 89.82 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.859e-05/1.006, allocations: 24 kB / 0.604 GB, free: 89.79 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.267e-05/1.006, allocations: 4 kB / 0.604 GB, free: 89.79 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.922e-05/1.006, allocations: 12.25 kB / 0.604 GB, free: 89.78 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01551/1.021, allocations: 9.309 MB / 0.6131 GB, free: 80.42 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.818e-05/1.021, allocations: 3.984 kB / 0.6131 GB, free: 80.41 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001183/1.022, allocations: 267.6 kB / 0.6134 GB, free: 80.15 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003404/1.026, allocations: 1.351 MB / 0.6147 GB, free: 78.8 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001632/1.026, allocations: 32 kB / 0.6147 GB, free: 78.77 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009629/1.036, allocations: 8.616 MB / 0.6231 GB, free: 70.02 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/1.036, allocations: 4 kB / 0.6231 GB, free: 70.01 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009451/1.045, allocations: 7.158 MB / 0.6301 GB, free: 62.79 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001473/1.047, allocations: 420.4 kB / 0.6305 GB, free: 62.35 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004484/1.047, allocations: 32 kB / 0.6305 GB, free: 62.32 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001507/1.049, allocations: 120.5 kB / 0.6307 GB, free: 62.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003493/1.049, allocations: 109.2 kB / 0.6308 GB, free: 62.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001323/1.049, allocations: 48.94 kB / 0.6308 GB, free: 62.05 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003275/1.052, allocations: 2.685 MB / 0.6334 GB, free: 59.35 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/1.052, allocations: 0 / 0.6334 GB, free: 59.35 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004543/1.057, allocations: 1.025 MB / 0.6344 GB, free: 58.33 MB / 446.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 (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.0004429/1.057, allocations: 180.5 kB / 0.6346 GB, free: 58.15 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006791/1.064, allocations: 5.341 MB / 0.6398 GB, free: 52.82 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.635e-06/1.064, allocations: 0 / 0.6398 GB, free: 52.82 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002706/1.067, allocations: 2.078 MB / 0.6419 GB, free: 50.73 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002447/1.069, allocations: 444.4 kB / 0.6423 GB, free: 50.3 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01417/1.084, allocations: 10.65 MB / 0.6527 GB, free: 39.62 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002472/1.086, allocations: 3.169 MB / 0.6558 GB, free: 36.41 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004215/1.09, allocations: 1.831 MB / 0.6576 GB, free: 34.57 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007199/1.091, allocations: 239.4 kB / 0.6578 GB, free: 34.34 MB / 446.1 MB Notification: Performance of SimCode: time 1.083e-06/1.091, allocations: 7.938 kB / 0.6578 GB, free: 34.33 MB / 446.1 MB Notification: Performance of Templates: time 0.06489/1.156, allocations: 40.63 MB / 0.6975 GB, free: 9.918 MB / 462.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","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches