Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001358/0.001358, allocations: 111.9 kB / 17.74 MB, free: 5.359 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.001298/0.001298, allocations: 193.5 kB / 18.67 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.317/1.317, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00103/0.00103, allocations: 43.92 kB / 352 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2595/0.2606, allocations: 49.44 MB / 401.4 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01075/0.2714, allocations: 10.42 MB / 411.8 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007911/0.2793, allocations: 3.952 MB / 415.8 MB, free: 10.45 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001955/0.2814, allocations: 67.75 kB / 415.8 MB, free: 10.39 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003787/0.2852, allocations: 2.207 MB / 418.1 MB, free: 8.172 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004339/0.2896, allocations: 1.864 MB / 419.9 MB, free: 6.301 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001579/0.2912, allocations: 0.7409 MB / 420.7 MB, free: 5.559 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00654/0.2977, allocations: 5.173 MB / 425.8 MB, free: 384 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003356/0.3011, allocations: 2.883 MB / 428.7 MB, free: 13.44 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002118/0.3032, allocations: 1.483 MB / 430.2 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002557/0.3058, allocations: 2.044 MB / 432.2 MB, free: 9.902 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006402/0.3065, allocations: 300 kB / 432.5 MB, free: 9.609 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002113/0.3086, allocations: 1.194 MB / 433.7 MB, free: 8.414 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001683/0.3103, allocations: 1.862 MB / 435.6 MB, free: 6.547 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002022/0.3123, allocations: 2.074 MB / 437.7 MB, free: 4.461 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006453/0.3188, allocations: 6.681 MB / 444.3 MB, free: 13.76 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.3188, allocations: 0 / 444.3 MB, free: 13.76 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.206e-06/0.3188, allocations: 0 / 444.3 MB, free: 13.76 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001352/0.319, allocations: 3.938 kB / 444.4 MB, free: 13.75 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.009397/0.3284, allocations: 4.67 MB / 449 MB, free: 9.012 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.078e-05/0.3284, allocations: 12.03 kB / 449 MB, free: 9 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02211/0.3506, allocations: 3.081 MB / 452.1 MB, free: 5.91 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007089/0.3577, allocations: 3.334 MB / 455.4 MB, free: 2.516 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001384/0.3578, allocations: 197 kB / 455.6 MB, free: 2.32 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007421/0.3586, allocations: 271.8 kB / 455.9 MB, free: 2.055 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01269/0.3713, allocations: 8.855 MB / 464.8 MB, free: 8.551 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001181/0.3714, allocations: 51.55 kB / 464.8 MB, free: 8.5 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003383/0.3718, allocations: 127.9 kB / 464.9 MB, free: 8.375 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002788/0.3746, allocations: 1.77 MB / 466.7 MB, free: 6.602 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01305/0.3876, allocations: 7.792 MB / 474.5 MB, free: 14.8 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03798/0.4256, allocations: 35.86 MB / 0.4984 GB, free: 9.867 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007546/0.4332, allocations: 3.819 MB / 0.5021 GB, free: 5.906 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002473/0.4357, allocations: 2.158 MB / 0.5042 GB, free: 3.738 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003702/0.4361, allocations: 324.2 kB / 0.5045 GB, free: 3.363 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.467e-05/0.4362, allocations: 55.48 kB / 0.5046 GB, free: 3.301 MB / 430.1 MB Notification: Performance of pre-optimization done (n=160): time 4.439e-06/0.4362, allocations: 3.938 kB / 0.5046 GB, free: 3.297 MB / 430.1 MB Notification: Performance of matching and sorting (n=190): time 0.05319/0.4894, allocations: 21.4 MB / 0.5255 GB, free: 13.77 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001291/0.4896, allocations: 256.6 kB / 0.5257 GB, free: 13.46 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005314/0.4949, allocations: 3.934 MB / 0.5296 GB, free: 9.547 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004709/0.4954, allocations: 53.7 kB / 0.5296 GB, free: 9.488 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001784/0.4972, allocations: 2.779 MB / 0.5323 GB, free: 6.672 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008451/0.498, allocations: 0.7172 MB / 0.533 GB, free: 5.945 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001466/0.4995, allocations: 1.182 MB / 0.5342 GB, free: 4.75 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.678e-05/0.4996, allocations: 301.1 kB / 0.5345 GB, free: 4.453 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00311/0.5027, allocations: 2.377 MB / 0.5368 GB, free: 2.07 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2133/0.716, allocations: 5.635 MB / 0.5423 GB, free: 125.7 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009211/0.7253, allocations: 8.58 MB / 0.5507 GB, free: 119.4 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001855/0.7255, allocations: 31.72 kB / 0.5507 GB, free: 119.4 MB / 462.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01715/0.7427, allocations: 9.624 MB / 0.5601 GB, free: 116.2 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001033/0.7428, allocations: 54.09 kB / 0.5602 GB, free: 116.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000132/0.743, allocations: 113.5 kB / 0.5603 GB, free: 116.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005284/0.7483, allocations: 2.018 MB / 0.5623 GB, free: 115.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004038/0.7523, allocations: 1.291 MB / 0.5635 GB, free: 114.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01199/0.7643, allocations: 11.35 MB / 0.5746 GB, free: 103.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004428/0.7688, allocations: 350.9 kB / 0.5749 GB, free: 103.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000674/0.7695, allocations: 347.5 kB / 0.5753 GB, free: 103 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.002471/0.772, allocations: 1.938 MB / 0.5771 GB, free: 101.1 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006307/0.7726, allocations: 346.1 kB / 0.5775 GB, free: 101 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007574/0.7802, allocations: 4.881 MB / 0.5822 GB, free: 96.09 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.338e-05/0.7802, allocations: 31.36 kB / 0.5823 GB, free: 96.06 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.366e-05/0.7803, allocations: 11.94 kB / 0.5823 GB, free: 96.05 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.96e-05/0.7803, allocations: 11.97 kB / 0.5823 GB, free: 96.04 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01458/0.7949, allocations: 10 MB / 0.5921 GB, free: 86.06 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.795e-05/0.7949, allocations: 4 kB / 0.5921 GB, free: 86.05 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00121/0.7962, allocations: 271.5 kB / 0.5923 GB, free: 85.79 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004329/0.8005, allocations: 1.846 MB / 0.5941 GB, free: 83.94 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002611/0.8008, allocations: 31.98 kB / 0.5942 GB, free: 83.91 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0105/0.8113, allocations: 10.38 MB / 0.6043 GB, free: 73.43 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/0.8113, allocations: 12.03 kB / 0.6043 GB, free: 73.42 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01023/0.8216, allocations: 7.941 MB / 0.6121 GB, free: 65.51 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009489/0.8225, allocations: 412.4 kB / 0.6125 GB, free: 65.09 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005437/0.8231, allocations: 32 kB / 0.6125 GB, free: 65.05 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001543/0.8246, allocations: 139.7 kB / 0.6126 GB, free: 64.92 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003712/0.825, allocations: 117 kB / 0.6127 GB, free: 64.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001296/0.8252, allocations: 52 kB / 0.6128 GB, free: 64.75 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002876/0.828, allocations: 2.485 MB / 0.6152 GB, free: 62.29 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.8281, allocations: 0 / 0.6152 GB, free: 62.29 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004665/0.8327, allocations: 1.071 MB / 0.6163 GB, free: 61.23 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.0004434/0.8332, allocations: 168 kB / 0.6164 GB, free: 61.06 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007286/0.8405, allocations: 5.833 MB / 0.6221 GB, free: 55.23 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.252e-06/0.8405, allocations: 0 / 0.6221 GB, free: 55.23 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002277/0.8428, allocations: 2.088 MB / 0.6242 GB, free: 53.14 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002552/0.8454, allocations: 463.5 kB / 0.6246 GB, free: 52.7 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01399/0.8594, allocations: 9.777 MB / 0.6341 GB, free: 42.88 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002338/0.8618, allocations: 3.063 MB / 0.6371 GB, free: 39.78 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001015/0.8628, allocations: 283.4 kB / 0.6374 GB, free: 39.5 MB / 462.1 MB Notification: Performance of SimCode: time 7.52e-07/0.8628, allocations: 4 kB / 0.6374 GB, free: 39.5 MB / 462.1 MB Notification: Performance of Templates: time 0.09866/0.9615, allocations: 75.07 MB / 0.7107 GB, free: 12.52 MB / 0.4981 GB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches