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.00152/0.00152, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001848/0.001848, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.401/1.401, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001183/0.001183, allocations: 60.28 kB / 308.4 MB, free: 15.85 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08934/0.09054, allocations: 50.53 MB / 358.9 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01114/0.1017, allocations: 10.39 MB / 369.3 MB, free: 2.855 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1687/0.2705, allocations: 3.965 MB / 373.3 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001788/0.2723, allocations: 66.41 kB / 373.3 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004444/0.2768, allocations: 2.199 MB / 375.5 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005247/0.2821, allocations: 1.826 MB / 377.3 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001812/0.2839, allocations: 0.7395 MB / 378.1 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007798/0.2917, allocations: 5.257 MB / 383.3 MB, free: 8.781 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003406/0.2952, allocations: 2.883 MB / 386.2 MB, free: 7.625 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002392/0.2976, allocations: 1.468 MB / 387.7 MB, free: 6.996 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002578/0.3002, allocations: 2.039 MB / 389.7 MB, free: 5.898 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006848/0.3009, allocations: 299.9 kB / 390 MB, free: 5.898 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002064/0.303, allocations: 1.17 MB / 391.2 MB, free: 5.488 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001455/0.3044, allocations: 1.837 MB / 393 MB, free: 4.422 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00168/0.3061, allocations: 2.051 MB / 395.1 MB, free: 2.875 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005225/0.3114, allocations: 6.626 MB / 401.7 MB, free: 14.01 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.3114, allocations: 4 kB / 401.7 MB, free: 14.01 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3114, allocations: 3.938 kB / 401.7 MB, free: 14 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001246/0.3115, allocations: 0 / 401.7 MB, free: 14 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.009024/0.3206, allocations: 4.666 MB / 406.4 MB, free: 9.359 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.614e-05/0.3206, allocations: 8.031 kB / 406.4 MB, free: 9.352 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02375/0.3444, allocations: 3.077 MB / 409.5 MB, free: 6.266 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008588/0.353, allocations: 3.281 MB / 412.7 MB, free: 2.961 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001564/0.3532, allocations: 191.5 kB / 412.9 MB, free: 2.801 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000794/0.354, allocations: 281.7 kB / 413.2 MB, free: 2.559 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01315/0.3671, allocations: 8.86 MB / 422.1 MB, free: 9.137 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001087/0.3673, allocations: 47.58 kB / 422.1 MB, free: 9.09 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000332/0.3676, allocations: 128.7 kB / 422.2 MB, free: 8.996 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002832/0.3705, allocations: 1.766 MB / 424 MB, free: 7.238 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01368/0.3841, allocations: 7.781 MB / 431.8 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04215/0.4263, allocations: 35.87 MB / 467.7 MB, free: 10.68 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007793/0.4341, allocations: 3.814 MB / 471.5 MB, free: 6.727 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002634/0.4368, allocations: 2.154 MB / 473.6 MB, free: 4.566 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003913/0.4372, allocations: 336 kB / 474 MB, free: 4.191 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.048e-05/0.4373, allocations: 51.5 kB / 474 MB, free: 4.129 MB / 382.1 MB Notification: Performance of pre-optimization done (n=160): time 3.977e-06/0.4373, allocations: 0 / 474 MB, free: 4.129 MB / 382.1 MB Notification: Performance of matching and sorting (n=190): time 0.05477/0.4921, allocations: 21.39 MB / 495.4 MB, free: 14.63 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001309/0.4922, allocations: 256.6 kB / 495.6 MB, free: 14.33 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005266/0.4975, allocations: 3.922 MB / 499.6 MB, free: 10.42 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000439/0.498, allocations: 49.7 kB / 499.6 MB, free: 10.37 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001912/0.4999, allocations: 2.78 MB / 0.4906 GB, free: 7.59 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000896/0.5008, allocations: 0.7216 MB / 0.4913 GB, free: 6.875 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001534/0.5023, allocations: 1.176 MB / 0.4925 GB, free: 5.688 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001024/0.5024, allocations: 313 kB / 0.4928 GB, free: 5.379 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003517/0.506, allocations: 2.377 MB / 0.4951 GB, free: 2.996 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005586/0.5116, allocations: 5.64 MB / 0.5006 GB, free: 11.74 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00998/0.5216, allocations: 8.573 MB / 0.509 GB, free: 1.586 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.065e-05/0.5217, allocations: 32 kB / 0.509 GB, free: 1.555 MB / 430.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01811/0.5398, allocations: 9.624 MB / 0.5184 GB, free: 7.914 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.682e-05/0.5399, allocations: 56 kB / 0.5185 GB, free: 7.859 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001179/0.54, allocations: 116 kB / 0.5186 GB, free: 7.746 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005401/0.5454, allocations: 2.014 MB / 0.5205 GB, free: 5.727 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004196/0.5497, allocations: 1.287 MB / 0.5218 GB, free: 4.438 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1969/0.7465, allocations: 11.35 MB / 0.5329 GB, free: 134.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004259/0.7508, allocations: 342.6 kB / 0.5332 GB, free: 134.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005701/0.7514, allocations: 341 kB / 0.5335 GB, free: 134.6 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.003426/0.7549, allocations: 1.937 MB / 0.5354 GB, free: 133.8 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009873/0.7558, allocations: 345.2 kB / 0.5358 GB, free: 133.8 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00961/0.7655, allocations: 4.892 MB / 0.5405 GB, free: 132.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.011e-05/0.7656, allocations: 24.39 kB / 0.5406 GB, free: 132.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.403e-05/0.7656, allocations: 7.469 kB / 0.5406 GB, free: 132.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.67e-05/0.7656, allocations: 14.84 kB / 0.5406 GB, free: 132.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01722/0.7828, allocations: 9.994 MB / 0.5503 GB, free: 128.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.394e-05/0.7829, allocations: 0 / 0.5503 GB, free: 128.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001178/0.7841, allocations: 268.4 kB / 0.5506 GB, free: 128.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004556/0.7886, allocations: 1.842 MB / 0.5524 GB, free: 128.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000267/0.7889, allocations: 34.42 kB / 0.5524 GB, free: 128.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01109/0.8, allocations: 10.4 MB / 0.5626 GB, free: 123.3 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.8, allocations: 0 / 0.5626 GB, free: 123.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0105/0.8106, allocations: 7.946 MB / 0.5703 GB, free: 117.4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009329/0.8115, allocations: 410.2 kB / 0.5707 GB, free: 117.1 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00041/0.8119, allocations: 35.94 kB / 0.5708 GB, free: 117 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00148/0.8134, allocations: 143.6 kB / 0.5709 GB, free: 116.9 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003459/0.8138, allocations: 113.1 kB / 0.571 GB, free: 116.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001404/0.8139, allocations: 44 kB / 0.5711 GB, free: 116.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002724/0.8167, allocations: 2.48 MB / 0.5735 GB, free: 114.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.8167, allocations: 0 / 0.5735 GB, free: 114.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003798/0.8205, allocations: 1.052 MB / 0.5745 GB, free: 113.2 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.0003733/0.8209, allocations: 173.2 kB / 0.5747 GB, free: 113.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006888/0.8277, allocations: 5.823 MB / 0.5804 GB, free: 107.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.8278, allocations: 0 / 0.5804 GB, free: 107.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002292/0.8301, allocations: 2.097 MB / 0.5824 GB, free: 105.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002455/0.8325, allocations: 468.7 kB / 0.5828 GB, free: 104.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0118/0.8444, allocations: 9.418 MB / 0.592 GB, free: 95.39 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002403/0.8468, allocations: 3.09 MB / 0.5951 GB, free: 92.27 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003266/0.8501, allocations: 1.811 MB / 0.5968 GB, free: 90.45 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006492/0.8507, allocations: 235.4 kB / 0.5971 GB, free: 90.22 MB / 446.1 MB Notification: Performance of SimCode: time 9.32e-07/0.8507, allocations: 0 / 0.5971 GB, free: 90.22 MB / 446.1 MB Notification: Performance of Templates: time 0.05749/0.9082, allocations: 40.28 MB / 0.6364 GB, free: 50.23 MB / 446.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 -s cvode -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