Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009997/0.0009997, allocations: 201.6 kB / 17.43 MB, free: 4.371 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.314/1.314, allocations: 229.5 MB / 247.7 MB, free: 6.344 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000797/0.000797, allocations: 103.8 kB / 299.9 MB, free: 5.367 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002037/0.0002037, allocations: 8 kB / 360.6 MB, free: 8.5 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1864/0.1866, allocations: 51.41 MB / 412.1 MB, free: 25.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.02496/0.2116, allocations: 34.87 MB / 446.9 MB, free: 6.969 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01787/0.2295, allocations: 11.67 MB / 458.6 MB, free: 10.52 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005266/0.2348, allocations: 163.6 kB / 458.7 MB, free: 10.36 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001243/0.2361, allocations: 394 kB / 459.1 MB, free: 9.977 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004046/0.2402, allocations: 1.729 MB / 460.9 MB, free: 8.242 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001402/0.2416, allocations: 0.6865 MB / 461.5 MB, free: 7.555 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.008222/0.2498, allocations: 7.343 MB / 468.9 MB, free: 200 kB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005868/0.2557, allocations: 4.601 MB / 473.5 MB, free: 11.34 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002118/0.2579, allocations: 1.276 MB / 474.8 MB, free: 10.06 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002452/0.2603, allocations: 1.97 MB / 476.7 MB, free: 8.082 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004265/0.2608, allocations: 128 kB / 476.9 MB, free: 7.957 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001887/0.2627, allocations: 1.057 MB / 477.9 MB, free: 6.898 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001596/0.2643, allocations: 1.659 MB / 479.6 MB, free: 5.234 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001878/0.2662, allocations: 1.88 MB / 481.5 MB, free: 3.336 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00655/0.2727, allocations: 6.225 MB / 487.7 MB, free: 13.09 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.025e-06/0.2728, allocations: 4 kB / 487.7 MB, free: 13.09 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.2728, allocations: 0 / 487.7 MB, free: 13.09 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001754/0.273, allocations: 0 / 487.7 MB, free: 13.09 MB / 362.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.008223/0.2812, allocations: 3.895 MB / 491.6 MB, free: 9.121 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.381e-05/0.2813, allocations: 12.03 kB / 491.6 MB, free: 9.109 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02238/0.3036, allocations: 3.159 MB / 494.8 MB, free: 5.941 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007168/0.3108, allocations: 3.214 MB / 498 MB, free: 2.668 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001613/0.311, allocations: 205 kB / 498.2 MB, free: 2.465 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007884/0.3118, allocations: 271.8 kB / 498.4 MB, free: 2.199 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01276/0.3246, allocations: 8.859 MB / 0.4954 GB, free: 8.691 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001059/0.3248, allocations: 47.64 kB / 0.4954 GB, free: 8.645 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003182/0.3251, allocations: 131.9 kB / 0.4956 GB, free: 8.516 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002739/0.3278, allocations: 1.77 MB / 0.4973 GB, free: 6.742 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1902/0.518, allocations: 7.76 MB / 0.5049 GB, free: 88.59 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03612/0.5542, allocations: 36.04 MB / 0.5401 GB, free: 61.8 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006303/0.5605, allocations: 3.817 MB / 0.5438 GB, free: 57.84 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001958/0.5625, allocations: 2.152 MB / 0.5459 GB, free: 55.68 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002846/0.5628, allocations: 332.4 kB / 0.5462 GB, free: 55.3 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.639e-05/0.5628, allocations: 55.48 kB / 0.5463 GB, free: 55.24 MB / 378.7 MB Notification: Performance of pre-optimization done (n=160): time 4.538e-06/0.5628, allocations: 7.984 kB / 0.5463 GB, free: 55.23 MB / 378.7 MB Notification: Performance of matching and sorting (n=190): time 0.04504/0.6079, allocations: 21.39 MB / 0.5672 GB, free: 33.73 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.76e-05/0.608, allocations: 252.6 kB / 0.5674 GB, free: 33.43 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003689/0.6117, allocations: 3.903 MB / 0.5712 GB, free: 29.55 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001573/0.6118, allocations: 53.7 kB / 0.5713 GB, free: 29.49 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00107/0.6129, allocations: 2.77 MB / 0.574 GB, free: 26.72 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004413/0.6134, allocations: 0.7249 MB / 0.5747 GB, free: 26 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002129/0.6136, allocations: 109.1 kB / 0.5748 GB, free: 25.9 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001981/0.6138, allocations: 0.5497 MB / 0.5753 GB, free: 25.34 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002473/0.6163, allocations: 2.358 MB / 0.5776 GB, free: 22.98 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00341/0.6197, allocations: 5.624 MB / 0.5831 GB, free: 15.73 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00746/0.6272, allocations: 8.54 MB / 0.5915 GB, free: 5.613 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001032/0.6273, allocations: 32 kB / 0.5915 GB, free: 5.582 MB / 378.7 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.02574/0.6531, allocations: 9.579 MB / 0.6009 GB, free: 11.99 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.997e-05/0.6532, allocations: 52 kB / 0.6009 GB, free: 11.94 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001723/0.6534, allocations: 115.9 kB / 0.601 GB, free: 11.82 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008516/0.6619, allocations: 2.026 MB / 0.603 GB, free: 9.793 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006532/0.6685, allocations: 1.283 MB / 0.6042 GB, free: 8.508 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02151/0.69, allocations: 10.52 MB / 0.6145 GB, free: 13.86 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007435/0.6975, allocations: 343.4 kB / 0.6149 GB, free: 13.52 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001257/0.6988, allocations: 340.7 kB / 0.6152 GB, free: 13.19 MB / 410.7 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 {(4,34,87.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005387/0.7042, allocations: 1.945 MB / 0.6171 GB, free: 11.23 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001119/0.7054, allocations: 347.5 kB / 0.6174 GB, free: 10.89 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01651/0.7219, allocations: 4.879 MB / 0.6222 GB, free: 5.988 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.747e-05/0.722, allocations: 24 kB / 0.6222 GB, free: 5.965 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.024e-05/0.722, allocations: 8 kB / 0.6222 GB, free: 5.957 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.903e-05/0.7221, allocations: 7.969 kB / 0.6222 GB, free: 5.949 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02161/0.7437, allocations: 10.03 MB / 0.632 GB, free: 11.88 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.516e-05/0.7437, allocations: 8 kB / 0.632 GB, free: 11.87 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001234/0.745, allocations: 263.6 kB / 0.6323 GB, free: 11.61 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004991/0.75, allocations: 1.842 MB / 0.6341 GB, free: 9.762 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001863/0.7502, allocations: 32.28 kB / 0.6341 GB, free: 9.73 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01253/0.7627, allocations: 9.691 MB / 0.6436 GB, free: 15.9 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.7627, allocations: 3.938 kB / 0.6436 GB, free: 15.89 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0124/0.7752, allocations: 7.945 MB / 0.6513 GB, free: 7.922 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009154/0.7761, allocations: 416.4 kB / 0.6517 GB, free: 7.492 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006525/0.7768, allocations: 32 kB / 0.6517 GB, free: 7.461 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001681/0.7785, allocations: 135.8 kB / 0.6519 GB, free: 7.328 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003834/0.7789, allocations: 113.1 kB / 0.652 GB, free: 7.219 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001418/0.779, allocations: 51.94 kB / 0.652 GB, free: 7.168 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003927/0.7829, allocations: 2.457 MB / 0.6544 GB, free: 4.73 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.7829, allocations: 0 / 0.6544 GB, free: 4.73 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004256/0.7872, allocations: 1.061 MB / 0.6555 GB, free: 3.672 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 (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.0004804/0.7877, allocations: 176 kB / 0.6556 GB, free: 3.496 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.009069/0.7968, allocations: 5.787 MB / 0.6613 GB, free: 13.71 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.164e-06/0.7968, allocations: 3.984 kB / 0.6613 GB, free: 13.71 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003252/0.8001, allocations: 2.092 MB / 0.6633 GB, free: 11.61 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003929/0.8041, allocations: 440.9 kB / 0.6638 GB, free: 11.18 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1813/0.9854, allocations: 11.39 MB / 0.6749 GB, free: 154.6 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005284/0.9907, allocations: 3.09 MB / 0.6779 GB, free: 153.8 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.004241/0.995, allocations: 1.819 MB / 0.6797 GB, free: 153.8 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006485/0.9956, allocations: 243.8 kB / 0.6799 GB, free: 153.7 MB / 458.7 MB Notification: Performance of SimCode: time 9.62e-07/0.9956, allocations: 0 / 0.6799 GB, free: 153.7 MB / 458.7 MB Notification: Performance of Templates: time 0.05947/1.055, allocations: 42.61 MB / 0.7215 GB, free: 123.1 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