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.001313/0.001313, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001285/0.001285, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.364/1.364, allocations: 222.9 MB / 242.2 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001183/0.001184, allocations: 51.78 kB / 301.3 MB, free: 5.875 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09705/0.09826, allocations: 49.44 MB / 350.7 MB, free: 4.426 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01158/0.1099, allocations: 10.42 MB / 361.2 MB, free: 9.949 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008807/0.1187, allocations: 3.968 MB / 365.1 MB, free: 5.969 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002188/0.121, allocations: 63.81 kB / 365.2 MB, free: 5.906 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004536/0.1256, allocations: 2.2 MB / 367.4 MB, free: 3.699 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005221/0.1308, allocations: 1.856 MB / 369.2 MB, free: 1.836 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001882/0.1327, allocations: 0.737 MB / 370 MB, free: 1.098 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.2025/0.3353, allocations: 5.165 MB / 375.1 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004483/0.3398, allocations: 2.892 MB / 378 MB, free: 9.438 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003467/0.3433, allocations: 1.481 MB / 379.5 MB, free: 9.305 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003876/0.3473, allocations: 2.033 MB / 381.5 MB, free: 9.086 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001205/0.3485, allocations: 300.3 kB / 381.8 MB, free: 9.086 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002776/0.3513, allocations: 1.192 MB / 383 MB, free: 9.082 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002283/0.3536, allocations: 1.853 MB / 384.9 MB, free: 8.586 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002713/0.3563, allocations: 2.059 MB / 386.9 MB, free: 7.16 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0074/0.3637, allocations: 6.474 MB / 393.4 MB, free: 4.062 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.184e-06/0.3638, allocations: 3.25 kB / 393.4 MB, free: 4.062 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.3638, allocations: 0 / 393.4 MB, free: 4.062 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002553/0.364, allocations: 0 / 393.4 MB, free: 4.062 MB / 302.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.01215/0.3762, allocations: 4.672 MB / 398.1 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.189e-05/0.3763, allocations: 13.14 kB / 398.1 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02642/0.4027, allocations: 3.094 MB / 401.2 MB, free: 15.19 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008526/0.4113, allocations: 3.262 MB / 404.5 MB, free: 12.02 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001868/0.4115, allocations: 199.2 kB / 404.7 MB, free: 11.86 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001211/0.4127, allocations: 267.9 kB / 404.9 MB, free: 11.63 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01664/0.4294, allocations: 8.86 MB / 413.8 MB, free: 2.293 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001494/0.4296, allocations: 47.59 kB / 413.8 MB, free: 2.266 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004479/0.43, allocations: 134.1 kB / 414 MB, free: 2.168 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00313/0.4332, allocations: 1.772 MB / 415.7 MB, free: 428 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01514/0.4483, allocations: 7.783 MB / 423.5 MB, free: 8.789 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04511/0.4935, allocations: 36.02 MB / 459.5 MB, free: 4.133 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008347/0.5019, allocations: 3.808 MB / 463.3 MB, free: 192 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002866/0.5048, allocations: 2.16 MB / 465.5 MB, free: 14.02 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004528/0.5053, allocations: 331.5 kB / 465.8 MB, free: 13.65 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.195e-05/0.5053, allocations: 51.56 kB / 465.9 MB, free: 13.59 MB / 382.1 MB Notification: Performance of pre-optimization done (n=160): time 4.018e-06/0.5053, allocations: 0 / 465.9 MB, free: 13.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=190): time 0.06217/0.5675, allocations: 21.41 MB / 487.3 MB, free: 8.078 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001367/0.5677, allocations: 252.6 kB / 487.5 MB, free: 7.777 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007266/0.575, allocations: 3.93 MB / 491.5 MB, free: 3.863 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007875/0.5758, allocations: 53.7 kB / 491.5 MB, free: 3.805 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002329/0.5781, allocations: 2.773 MB / 494.3 MB, free: 1.035 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001285/0.5794, allocations: 0.7327 MB / 495 MB, free: 316 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00267/0.5821, allocations: 1.168 MB / 496.2 MB, free: 15.13 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000106/0.5822, allocations: 305.1 kB / 496.5 MB, free: 14.83 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003434/0.5857, allocations: 2.381 MB / 498.9 MB, free: 12.44 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005775/0.5915, allocations: 5.652 MB / 0.4927 GB, free: 5.184 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01055/0.6021, allocations: 8.556 MB / 0.501 GB, free: 11.06 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000129/0.6022, allocations: 35.94 kB / 0.5011 GB, free: 11.03 MB / 430.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.02129/0.6235, allocations: 9.63 MB / 0.5105 GB, free: 1.387 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001379/0.6237, allocations: 52 kB / 0.5105 GB, free: 1.336 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001765/0.6239, allocations: 112 kB / 0.5106 GB, free: 1.227 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006045/0.63, allocations: 2.031 MB / 0.5126 GB, free: 15.19 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004422/0.6344, allocations: 1.279 MB / 0.5139 GB, free: 13.91 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01678/0.6512, allocations: 11.37 MB / 0.525 GB, free: 2.402 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005114/0.6564, allocations: 343.4 kB / 0.5253 GB, free: 2.066 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001353/0.6578, allocations: 340 kB / 0.5256 GB, free: 1.734 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.2106/0.8684, allocations: 1.947 MB / 0.5275 GB, free: 145.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009354/0.8694, allocations: 345.9 kB / 0.5279 GB, free: 145.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01042/0.8798, allocations: 4.888 MB / 0.5326 GB, free: 145 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-05/0.8799, allocations: 21.19 kB / 0.5326 GB, free: 145 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.82e-05/0.8799, allocations: 8.062 kB / 0.5327 GB, free: 145 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.51e-05/0.88, allocations: 10.41 kB / 0.5327 GB, free: 145 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02065/0.9006, allocations: 10.03 MB / 0.5425 GB, free: 141.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.861e-05/0.9007, allocations: 3.609 kB / 0.5425 GB, free: 141.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001356/0.902, allocations: 262.4 kB / 0.5427 GB, free: 141.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005053/0.9071, allocations: 1.856 MB / 0.5445 GB, free: 141.2 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003055/0.9074, allocations: 33.66 kB / 0.5446 GB, free: 141.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01206/0.9195, allocations: 10.39 MB / 0.5547 GB, free: 136.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.958e-06/0.9196, allocations: 4.656 kB / 0.5547 GB, free: 136.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01153/0.9311, allocations: 7.955 MB / 0.5625 GB, free: 133.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001119/0.9323, allocations: 407.8 kB / 0.5629 GB, free: 132.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005255/0.9328, allocations: 28 kB / 0.5629 GB, free: 132.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001659/0.9345, allocations: 147.6 kB / 0.563 GB, free: 132.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003783/0.9348, allocations: 113 kB / 0.5631 GB, free: 132.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001352/0.935, allocations: 51.83 kB / 0.5632 GB, free: 132.5 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003427/0.9384, allocations: 2.484 MB / 0.5656 GB, free: 130.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.9384, allocations: 0 / 0.5656 GB, free: 130.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00458/0.943, allocations: 1.066 MB / 0.5667 GB, free: 129 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.0004136/0.9435, allocations: 170.7 kB / 0.5668 GB, free: 128.9 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009188/0.9526, allocations: 6.875 MB / 0.5735 GB, free: 122 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.894e-06/0.9527, allocations: 3.5 kB / 0.5735 GB, free: 122 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002643/0.9553, allocations: 2.091 MB / 0.5756 GB, free: 119.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003759/0.9591, allocations: 462.2 kB / 0.576 GB, free: 119.5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01644/0.9756, allocations: 9.888 MB / 0.5857 GB, free: 109.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003218/0.9788, allocations: 3.059 MB / 0.5887 GB, free: 106.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001053/0.9799, allocations: 275.4 kB / 0.5889 GB, free: 106.3 MB / 446.1 MB Notification: Performance of SimCode: time 9.62e-07/0.9799, allocations: 0 / 0.5889 GB, free: 106.3 MB / 446.1 MB Notification: Performance of Templates: time 0.08265/1.063, allocations: 73.9 MB / 0.6611 GB, free: 32.52 MB / 446.1 MB 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