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.001399/0.001399, allocations: 100.5 kB / 17.85 MB, free: 5.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001534/0.001534, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.333/1.333, allocations: 227.4 MB / 246.9 MB, free: 10.6 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001301, allocations: 61.56 kB / 306.9 MB, free: 1.016 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09739/0.09871, allocations: 50.54 MB / 357.4 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.1975/0.2962, allocations: 38.14 MB / 395.6 MB, free: 14.64 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02241/0.3187, allocations: 8.581 MB / 404.2 MB, free: 8.945 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009159/0.3279, allocations: 168.3 kB / 404.3 MB, free: 8.918 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004696/0.3327, allocations: 2.171 MB / 406.5 MB, free: 7.809 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005059/0.3377, allocations: 1.711 MB / 408.2 MB, free: 6.625 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001814/0.3396, allocations: 0.6848 MB / 408.9 MB, free: 6.184 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008989/0.3486, allocations: 7.281 MB / 416.2 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00375/0.3524, allocations: 2.825 MB / 419 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002206/0.3546, allocations: 1.292 MB / 420.3 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003022/0.3577, allocations: 2.177 MB / 422.5 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000602/0.3583, allocations: 196 kB / 422.7 MB, free: 10.45 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002279/0.3606, allocations: 1.143 MB / 423.8 MB, free: 9.301 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001677/0.3623, allocations: 1.757 MB / 425.6 MB, free: 7.539 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002044/0.3643, allocations: 1.957 MB / 427.5 MB, free: 5.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004874/0.3692, allocations: 5.177 MB / 432.7 MB, free: 392 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.474e-06/0.3692, allocations: 4 kB / 432.7 MB, free: 388 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.3692, allocations: 0 / 432.7 MB, free: 388 kB / 334.1 MB Notification: Performance of Transformations before backend: time 9.479e-05/0.3693, allocations: 0 / 432.7 MB, free: 388 kB / 334.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.01004/0.3794, allocations: 4.659 MB / 437.4 MB, free: 11.65 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.601e-05/0.3795, allocations: 12.03 kB / 437.4 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02433/0.4038, allocations: 3.085 MB / 440.5 MB, free: 8.543 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00793/0.4118, allocations: 3.214 MB / 443.7 MB, free: 5.27 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001859/0.412, allocations: 201 kB / 443.9 MB, free: 5.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001154/0.4132, allocations: 279.6 kB / 444.1 MB, free: 4.797 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01621/0.4294, allocations: 8.851 MB / 453 MB, free: 11.29 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001468/0.4296, allocations: 51.58 kB / 453 MB, free: 11.24 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003462/0.4299, allocations: 127.9 kB / 453.2 MB, free: 11.12 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003124/0.4331, allocations: 1.766 MB / 454.9 MB, free: 9.348 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01409/0.4472, allocations: 7.788 MB / 462.7 MB, free: 1.551 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0436/0.4908, allocations: 36.01 MB / 498.7 MB, free: 12.46 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008204/0.4991, allocations: 3.824 MB / 0.4908 GB, free: 8.5 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002953/0.5021, allocations: 2.154 MB / 0.4929 GB, free: 6.332 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004971/0.5026, allocations: 328.1 kB / 0.4932 GB, free: 5.957 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.07e-05/0.5027, allocations: 55.5 kB / 0.4932 GB, free: 5.891 MB / 414.1 MB Notification: Performance of pre-optimization done (n=160): time 5.14e-06/0.5027, allocations: 0 / 0.4932 GB, free: 5.891 MB / 414.1 MB Notification: Performance of matching and sorting (n=190): time 0.05973/0.5624, allocations: 21.39 MB / 0.5141 GB, free: 396 kB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000149/0.5626, allocations: 248.6 kB / 0.5144 GB, free: 88 kB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007076/0.5697, allocations: 3.922 MB / 0.5182 GB, free: 12.18 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004437/0.5702, allocations: 61.69 kB / 0.5183 GB, free: 12.11 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002199/0.5724, allocations: 2.771 MB / 0.521 GB, free: 9.305 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001121/0.5735, allocations: 0.7327 MB / 0.5217 GB, free: 8.562 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002409/0.5759, allocations: 1.174 MB / 0.5228 GB, free: 7.375 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001027/0.5761, allocations: 309 kB / 0.5231 GB, free: 7.07 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003382/0.5795, allocations: 2.381 MB / 0.5254 GB, free: 4.684 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1848/0.7642, allocations: 5.636 MB / 0.5309 GB, free: 140.3 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009855/0.7741, allocations: 8.575 MB / 0.5393 GB, free: 134.7 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000172/0.7744, allocations: 33.72 kB / 0.5394 GB, free: 134.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01887/0.7932, allocations: 9.624 MB / 0.5488 GB, free: 131.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000106/0.7934, allocations: 52.86 kB / 0.5488 GB, free: 131.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001518/0.7935, allocations: 112.8 kB / 0.5489 GB, free: 131.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005326/0.7989, allocations: 2.024 MB / 0.5509 GB, free: 131.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003806/0.8027, allocations: 1.276 MB / 0.5521 GB, free: 131 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01172/0.8144, allocations: 10.6 MB / 0.5625 GB, free: 126.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003984/0.8184, allocations: 343.9 kB / 0.5628 GB, free: 126.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005201/0.819, allocations: 334.8 kB / 0.5631 GB, free: 126.2 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 (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.002317/0.8213, allocations: 1.94 MB / 0.565 GB, free: 125.4 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005128/0.8218, allocations: 349 kB / 0.5654 GB, free: 125.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00762/0.8295, allocations: 4.885 MB / 0.5701 GB, free: 121.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.598e-05/0.8295, allocations: 20 kB / 0.5701 GB, free: 121.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.036e-05/0.8295, allocations: 8 kB / 0.5702 GB, free: 121.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.559e-05/0.8295, allocations: 11.72 kB / 0.5702 GB, free: 121.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01358/0.8431, allocations: 10.04 MB / 0.58 GB, free: 111.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-05/0.8432, allocations: 0 / 0.58 GB, free: 111.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001147/0.8443, allocations: 267.6 kB / 0.5802 GB, free: 111.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004605/0.8489, allocations: 1.85 MB / 0.582 GB, free: 109.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002617/0.8492, allocations: 37.02 kB / 0.5821 GB, free: 109.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01024/0.8595, allocations: 9.705 MB / 0.5915 GB, free: 99.91 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.8595, allocations: 0 / 0.5915 GB, free: 99.91 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01031/0.8698, allocations: 7.944 MB / 0.5993 GB, free: 92 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008166/0.8707, allocations: 412.4 kB / 0.5997 GB, free: 91.58 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005087/0.8712, allocations: 36 kB / 0.5997 GB, free: 91.54 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001495/0.8727, allocations: 131.8 kB / 0.5999 GB, free: 91.41 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003619/0.8731, allocations: 109.2 kB / 0.6 GB, free: 91.31 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001417/0.8732, allocations: 51.98 kB / 0.6 GB, free: 91.26 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002766/0.876, allocations: 2.476 MB / 0.6024 GB, free: 88.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 8.51e-07/0.876, allocations: 0 / 0.6024 GB, free: 88.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004295/0.8803, allocations: 1.061 MB / 0.6035 GB, free: 87.74 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 (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.0003982/0.8807, allocations: 165 kB / 0.6036 GB, free: 87.58 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00707/0.8878, allocations: 5.804 MB / 0.6093 GB, free: 81.78 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.4e-06/0.8878, allocations: 0 / 0.6093 GB, free: 81.78 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002417/0.8902, allocations: 2.1 MB / 0.6113 GB, free: 79.67 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002492/0.8927, allocations: 448.8 kB / 0.6118 GB, free: 79.25 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01365/0.9064, allocations: 11.61 MB / 0.6231 GB, free: 67.62 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002259/0.9087, allocations: 3.067 MB / 0.6261 GB, free: 64.53 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009982/0.9097, allocations: 271.4 kB / 0.6264 GB, free: 64.26 MB / 446.1 MB Notification: Performance of SimCode: time 1.502e-06/0.9097, allocations: 2.188 kB / 0.6264 GB, free: 64.26 MB / 446.1 MB Notification: Performance of Templates: time 0.2416/1.151, allocations: 73.75 MB / 0.6984 GB, free: 145.4 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/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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches