Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001536/0.001536, allocations: 105.5 kB / 17.15 MB, free: 6.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00182/0.00182, allocations: 198 kB / 18.07 MB, free: 5.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.36/1.36, allocations: 205.1 MB / 223.9 MB, free: 12.47 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001907/0.001907, allocations: 44.31 kB / 280 MB, free: 3.59 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1035, allocations: 46.64 MB / 326.6 MB, free: 4.891 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.03425/0.1378, allocations: 38.42 MB / 365 MB, free: 14.31 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01679/0.1546, allocations: 8.66 MB / 373.7 MB, free: 5.621 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00561/0.1603, allocations: 167.6 kB / 373.9 MB, free: 5.457 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004345/0.1647, allocations: 2.193 MB / 376 MB, free: 3.258 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004391/0.1691, allocations: 1.736 MB / 377.8 MB, free: 1.516 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001568/0.1707, allocations: 0.6787 MB / 378.5 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1767/0.3474, allocations: 6.727 MB / 385.2 MB, free: 10.33 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004864/0.3523, allocations: 2.821 MB / 388 MB, free: 10.02 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002622/0.355, allocations: 1.312 MB / 389.3 MB, free: 10.02 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003141/0.3581, allocations: 2.196 MB / 391.5 MB, free: 9.883 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006179/0.3588, allocations: 199.6 kB / 391.7 MB, free: 9.883 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002164/0.361, allocations: 1.14 MB / 392.9 MB, free: 9.883 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001632/0.3626, allocations: 1.781 MB / 394.6 MB, free: 9.703 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001931/0.3645, allocations: 1.984 MB / 396.6 MB, free: 8.973 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00711/0.3717, allocations: 6.406 MB / 403 MB, free: 6.703 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.079e-05/0.3717, allocations: 0 / 403 MB, free: 6.703 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3717, allocations: 7.094 kB / 403 MB, free: 6.699 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002983/0.372, allocations: 0 / 403 MB, free: 6.699 MB / 318.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.01093/0.383, allocations: 4.676 MB / 407.7 MB, free: 3.672 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.342e-05/0.383, allocations: 13.62 kB / 407.7 MB, free: 3.668 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02337/0.4064, allocations: 3.086 MB / 410.8 MB, free: 2.273 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007052/0.4135, allocations: 3.369 MB / 414.2 MB, free: 352 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001023/0.4136, allocations: 200.8 kB / 414.4 MB, free: 228 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005487/0.4142, allocations: 275.6 kB / 414.6 MB, free: 15.98 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01338/0.4276, allocations: 8.862 MB / 423.5 MB, free: 6.648 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001208/0.4277, allocations: 54.67 kB / 423.6 MB, free: 6.613 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003659/0.4281, allocations: 132.1 kB / 423.7 MB, free: 6.516 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002937/0.4311, allocations: 1.756 MB / 425.4 MB, free: 4.781 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01502/0.4461, allocations: 7.797 MB / 433.2 MB, free: 13.15 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04294/0.4891, allocations: 36.03 MB / 469.3 MB, free: 8.492 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008227/0.4974, allocations: 3.82 MB / 473.1 MB, free: 4.539 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002616/0.5, allocations: 2.152 MB / 475.2 MB, free: 2.379 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004195/0.5004, allocations: 329.8 kB / 475.6 MB, free: 2.012 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.271e-05/0.5005, allocations: 59.56 kB / 475.6 MB, free: 1.945 MB / 382.1 MB Notification: Performance of pre-optimization done (n=160): time 5.771e-06/0.5005, allocations: 0 / 475.6 MB, free: 1.945 MB / 382.1 MB Notification: Performance of matching and sorting (n=190): time 0.05699/0.5575, allocations: 21.44 MB / 497.1 MB, free: 12.45 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001385/0.5577, allocations: 251.7 kB / 497.3 MB, free: 12.15 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005549/0.5632, allocations: 3.955 MB / 0.4895 GB, free: 8.215 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004538/0.5637, allocations: 53.7 kB / 0.4896 GB, free: 8.156 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002118/0.5658, allocations: 2.773 MB / 0.4923 GB, free: 5.387 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001168/0.567, allocations: 0.7268 MB / 0.493 GB, free: 4.668 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001745/0.5688, allocations: 1.174 MB / 0.4941 GB, free: 3.48 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.362e-05/0.5689, allocations: 309.1 kB / 0.4944 GB, free: 3.176 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003399/0.5723, allocations: 2.385 MB / 0.4967 GB, free: 0.7852 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005189/0.5775, allocations: 5.637 MB / 0.5023 GB, free: 9.59 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01029/0.5878, allocations: 8.575 MB / 0.5106 GB, free: 15.9 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001391/0.588, allocations: 36 kB / 0.5107 GB, free: 15.86 MB / 446.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01934/0.6074, allocations: 9.621 MB / 0.5201 GB, free: 6.852 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001186/0.6075, allocations: 52 kB / 0.5201 GB, free: 6.801 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001971/0.6077, allocations: 120 kB / 0.5202 GB, free: 6.684 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005683/0.6134, allocations: 2.018 MB / 0.5222 GB, free: 4.66 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004417/0.6178, allocations: 1.283 MB / 0.5234 GB, free: 3.375 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01509/0.6329, allocations: 10.59 MB / 0.5338 GB, free: 8.648 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004759/0.6378, allocations: 343.4 kB / 0.5341 GB, free: 8.312 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001026/0.6388, allocations: 341.8 kB / 0.5344 GB, free: 7.98 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.004209/0.643, allocations: 1.947 MB / 0.5363 GB, free: 6.023 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001019/0.6441, allocations: 343.5 kB / 0.5367 GB, free: 5.684 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01001/0.6541, allocations: 4.888 MB / 0.5414 GB, free: 0.7812 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.812e-05/0.6542, allocations: 27.22 kB / 0.5415 GB, free: 0.7578 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.12e-05/0.6542, allocations: 8 kB / 0.5415 GB, free: 0.75 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.505e-05/0.6542, allocations: 11.97 kB / 0.5415 GB, free: 0.7383 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1889/0.8431, allocations: 10.04 MB / 0.5513 GB, free: 174 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.809e-05/0.8432, allocations: 1.469 kB / 0.5513 GB, free: 174 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001334/0.8445, allocations: 264.5 kB / 0.5515 GB, free: 174 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005327/0.8498, allocations: 1.85 MB / 0.5534 GB, free: 173.6 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002405/0.8501, allocations: 33.61 kB / 0.5534 GB, free: 173.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01185/0.862, allocations: 9.705 MB / 0.5629 GB, free: 169.3 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.598e-06/0.862, allocations: 7.531 kB / 0.5629 GB, free: 169.3 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01131/0.8733, allocations: 7.947 MB / 0.5706 GB, free: 166.6 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001606/0.8749, allocations: 0.722 MB / 0.5713 GB, free: 166.3 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000877/0.8758, allocations: 32.62 kB / 0.5714 GB, free: 166.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001825/0.8777, allocations: 135.5 kB / 0.5715 GB, free: 166.3 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003827/0.8781, allocations: 113 kB / 0.5716 GB, free: 166.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001448/0.8782, allocations: 51.28 kB / 0.5717 GB, free: 166.3 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003823/0.8821, allocations: 2.503 MB / 0.5741 GB, free: 165.4 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.8821, allocations: 0 / 0.5741 GB, free: 165.4 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004312/0.8864, allocations: 1.068 MB / 0.5751 GB, free: 165.3 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.0004187/0.8868, allocations: 167.8 kB / 0.5753 GB, free: 165.1 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006929/0.8937, allocations: 5.799 MB / 0.581 GB, free: 159.9 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.8938, allocations: 0 / 0.581 GB, free: 159.9 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002412/0.8962, allocations: 2.092 MB / 0.583 GB, free: 157.8 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002523/0.8987, allocations: 455.5 kB / 0.5834 GB, free: 157.4 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01319/0.9119, allocations: 11.32 MB / 0.5945 GB, free: 146.2 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003047/0.915, allocations: 3.107 MB / 0.5975 GB, free: 143.1 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003867/0.9189, allocations: 1.815 MB / 0.5993 GB, free: 141.2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006352/0.9195, allocations: 235.4 kB / 0.5995 GB, free: 141 MB / 462.1 MB Notification: Performance of SimCode: time 6.61e-07/0.9195, allocations: 4 kB / 0.5995 GB, free: 141 MB / 462.1 MB Notification: Performance of Templates: time 0.0548/0.9743, allocations: 43.53 MB / 0.642 GB, free: 97.5 MB / 462.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches