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.001402/0.001402, allocations: 110.2 kB / 18.25 MB, free: 4.898 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.001669/0.001669, allocations: 195.3 kB / 19.18 MB, free: 3.977 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.367/1.367, allocations: 205.1 MB / 225 MB, free: 12.29 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.001336/0.001336, allocations: 55.92 kB / 281.3 MB, free: 3.152 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0785/0.07985, allocations: 46.64 MB / 328 MB, free: 4.445 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01177/0.09166, allocations: 10.44 MB / 338.4 MB, free: 9.941 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008343/0.1, allocations: 3.961 MB / 342.4 MB, free: 5.969 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002025/0.1022, allocations: 63.81 kB / 342.4 MB, free: 5.906 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00459/0.1068, allocations: 2.203 MB / 344.6 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004897/0.1117, allocations: 1.864 MB / 346.5 MB, free: 1.824 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001728/0.1134, allocations: 0.7487 MB / 347.3 MB, free: 1.074 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.006483/0.1199, allocations: 4.85 MB / 352.1 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003944/0.1239, allocations: 2.894 MB / 355 MB, free: 9.27 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002731/0.1267, allocations: 1.483 MB / 356.5 MB, free: 7.781 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003097/0.1298, allocations: 2.048 MB / 358.5 MB, free: 5.727 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009191/0.1307, allocations: 300 kB / 358.8 MB, free: 5.434 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002678/0.1334, allocations: 1.186 MB / 360 MB, free: 4.246 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002252/0.1357, allocations: 1.855 MB / 361.9 MB, free: 2.387 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002926/0.1386, allocations: 2.074 MB / 363.9 MB, free: 308 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007064/0.1457, allocations: 6.48 MB / 370.4 MB, free: 9.801 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.875e-06/0.1458, allocations: 0 / 370.4 MB, free: 9.801 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1458, allocations: 0 / 370.4 MB, free: 9.801 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001749/0.146, allocations: 0 / 370.4 MB, free: 9.801 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.0115/0.1575, allocations: 4.689 MB / 375.1 MB, free: 5.039 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.884e-05/0.1575, allocations: 8.031 kB / 375.1 MB, free: 5.031 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02657/0.1841, allocations: 3.081 MB / 378.2 MB, free: 1.941 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1708/0.3549, allocations: 3.373 MB / 381.6 MB, free: 49.17 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002669/0.3552, allocations: 194.5 kB / 381.8 MB, free: 49.16 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001173/0.3564, allocations: 269.1 kB / 382 MB, free: 49.16 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01485/0.3713, allocations: 8.855 MB / 390.9 MB, free: 45.2 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001243/0.3714, allocations: 54.08 kB / 390.9 MB, free: 45.18 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003591/0.3718, allocations: 135.7 kB / 391.1 MB, free: 45.12 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002844/0.3747, allocations: 1.775 MB / 392.8 MB, free: 44.82 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01286/0.3875, allocations: 7.788 MB / 400.6 MB, free: 40.74 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03415/0.4217, allocations: 36.03 MB / 436.7 MB, free: 3.91 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007204/0.429, allocations: 3.813 MB / 440.5 MB, free: 15.94 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002717/0.4317, allocations: 2.165 MB / 442.6 MB, free: 13.77 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004135/0.4322, allocations: 332.1 kB / 443 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.145e-05/0.4322, allocations: 51.5 kB / 443 MB, free: 13.33 MB / 334.1 MB Notification: Performance of pre-optimization done (n=160): time 4.027e-06/0.4322, allocations: 4 kB / 443 MB, free: 13.33 MB / 334.1 MB Notification: Performance of matching and sorting (n=190): time 0.05938/0.4916, allocations: 21.43 MB / 464.4 MB, free: 7.777 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001586/0.4918, allocations: 256.6 kB / 464.7 MB, free: 7.469 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005848/0.4977, allocations: 3.955 MB / 468.6 MB, free: 3.531 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005555/0.4983, allocations: 49.7 kB / 468.7 MB, free: 3.477 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002188/0.5005, allocations: 2.775 MB / 471.5 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001078/0.5016, allocations: 0.725 MB / 472.2 MB, free: 15.93 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001641/0.5032, allocations: 1.173 MB / 473.4 MB, free: 14.74 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.5033, allocations: 305.1 kB / 473.7 MB, free: 14.44 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003692/0.507, allocations: 2.385 MB / 476 MB, free: 12.05 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005943/0.513, allocations: 5.636 MB / 481.7 MB, free: 4.801 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01046/0.5235, allocations: 8.582 MB / 490.3 MB, free: 10.64 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001067/0.5237, allocations: 32 kB / 490.3 MB, free: 10.61 MB / 382.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01972/0.5434, allocations: 9.625 MB / 499.9 MB, free: 0.9648 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.867e-05/0.5435, allocations: 52 kB / 500 MB, free: 0.9141 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001202/0.5436, allocations: 116.9 kB / 0.4884 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005856/0.5495, allocations: 2.022 MB / 0.4903 GB, free: 14.77 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004362/0.5539, allocations: 1.287 MB / 0.4916 GB, free: 13.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01658/0.5705, allocations: 11.35 MB / 0.5027 GB, free: 1.98 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004991/0.5755, allocations: 343.4 kB / 0.503 GB, free: 1.645 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001147/0.5767, allocations: 344 kB / 0.5033 GB, free: 1.309 MB / 398.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.003734/0.5805, allocations: 1.943 MB / 0.5052 GB, free: 15.35 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008916/0.5814, allocations: 351.5 kB / 0.5056 GB, free: 15 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009873/0.5912, allocations: 4.888 MB / 0.5103 GB, free: 10.1 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.023e-05/0.5913, allocations: 20 kB / 0.5104 GB, free: 10.08 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.589e-05/0.5914, allocations: 8 kB / 0.5104 GB, free: 10.07 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.452e-05/0.5914, allocations: 7.969 kB / 0.5104 GB, free: 10.07 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01883/0.6102, allocations: 10.05 MB / 0.5202 GB, free: 15.92 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.3e-05/0.6103, allocations: 0 / 0.5202 GB, free: 15.92 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001311/0.6116, allocations: 271.6 kB / 0.5205 GB, free: 15.66 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005319/0.6169, allocations: 1.854 MB / 0.5223 GB, free: 13.8 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002146/0.6172, allocations: 31.98 kB / 0.5223 GB, free: 13.77 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01407/0.6312, allocations: 10.4 MB / 0.5325 GB, free: 3.215 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.602e-06/0.6313, allocations: 7.938 kB / 0.5325 GB, free: 3.207 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.184/0.8153, allocations: 7.938 MB / 0.5402 GB, free: 142.3 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001944/0.8173, allocations: 0.7232 MB / 0.5409 GB, free: 142.2 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007952/0.8181, allocations: 28.89 kB / 0.5409 GB, free: 142.2 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002041/0.8202, allocations: 139.9 kB / 0.5411 GB, free: 142.2 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004648/0.8207, allocations: 114.4 kB / 0.5412 GB, free: 142.2 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001596/0.8208, allocations: 45.3 kB / 0.5412 GB, free: 142.2 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.005497/0.8263, allocations: 2.503 MB / 0.5437 GB, free: 141.4 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.706e-06/0.8264, allocations: 0 / 0.5437 GB, free: 141.4 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00701/0.8334, allocations: 1.076 MB / 0.5447 GB, free: 141.3 MB / 430.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.0005816/0.834, allocations: 166.8 kB / 0.5449 GB, free: 141.1 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.01142/0.8454, allocations: 6.883 MB / 0.5516 GB, free: 139.1 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.464e-06/0.8455, allocations: 0 / 0.5516 GB, free: 139.1 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00259/0.8481, allocations: 2.095 MB / 0.5537 GB, free: 138.2 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002899/0.851, allocations: 461.3 kB / 0.5541 GB, free: 138 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01427/0.8653, allocations: 9.908 MB / 0.5638 GB, free: 133.9 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002617/0.868, allocations: 3.062 MB / 0.5668 GB, free: 132.3 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001009/0.869, allocations: 279 kB / 0.567 GB, free: 132.1 MB / 430.1 MB Notification: Performance of SimCode: time 7.21e-07/0.869, allocations: 0 / 0.567 GB, free: 132.1 MB / 430.1 MB Notification: Performance of Templates: time 0.07946/0.9485, allocations: 74.04 MB / 0.6393 GB, free: 59.29 MB / 430.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches