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.0009148/0.0009148, allocations: 111.9 kB / 17.06 MB, free: 6.004 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.0009712/0.0009712, allocations: 198.9 kB / 18 MB, free: 5.082 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.276/1.276, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009908/0.0009909, allocations: 43.94 kB / 351.3 MB, free: 3.223 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.261/0.262, allocations: 49.44 MB / 400.7 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01027/0.2723, allocations: 10.43 MB / 411.2 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006495/0.2788, allocations: 3.952 MB / 415.1 MB, free: 10.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009002/0.2798, allocations: 63.81 kB / 415.2 MB, free: 10.35 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003473/0.2833, allocations: 2.207 MB / 417.4 MB, free: 8.137 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003312/0.2866, allocations: 1.852 MB / 419.2 MB, free: 6.277 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001255/0.2879, allocations: 0.7409 MB / 420 MB, free: 5.535 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005346/0.2932, allocations: 5.178 MB / 425.1 MB, free: 360 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002967/0.2962, allocations: 2.889 MB / 428 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001622/0.2978, allocations: 1.487 MB / 429.5 MB, free: 11.92 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002159/0.3, allocations: 2.04 MB / 431.6 MB, free: 9.871 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004555/0.3005, allocations: 304 kB / 431.9 MB, free: 9.574 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00173/0.3022, allocations: 1.194 MB / 433.1 MB, free: 8.379 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00144/0.3037, allocations: 1.866 MB / 434.9 MB, free: 6.508 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001687/0.3054, allocations: 2.066 MB / 437 MB, free: 4.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005678/0.3111, allocations: 6.682 MB / 443.7 MB, free: 13.73 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.3111, allocations: 0 / 443.7 MB, free: 13.73 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3111, allocations: 0 / 443.7 MB, free: 13.73 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.349e-05/0.3112, allocations: 4 kB / 443.7 MB, free: 13.72 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.008173/0.3193, allocations: 4.666 MB / 448.3 MB, free: 8.984 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.568e-05/0.3194, allocations: 12.03 kB / 448.4 MB, free: 8.973 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02709/0.3465, allocations: 3.085 MB / 451.4 MB, free: 5.879 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007531/0.354, allocations: 3.338 MB / 454.8 MB, free: 2.48 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001877/0.3542, allocations: 197 kB / 455 MB, free: 2.285 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008723/0.3551, allocations: 267.8 kB / 455.2 MB, free: 2.023 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0156/0.3707, allocations: 8.859 MB / 464.1 MB, free: 8.516 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001797/0.371, allocations: 47.5 kB / 464.1 MB, free: 8.469 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006972/0.3717, allocations: 127.9 kB / 464.3 MB, free: 8.344 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00343/0.3751, allocations: 1.778 MB / 466 MB, free: 6.562 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01658/0.3917, allocations: 7.78 MB / 473.8 MB, free: 14.77 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04512/0.4369, allocations: 35.87 MB / 0.4977 GB, free: 9.832 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007746/0.4446, allocations: 3.809 MB / 0.5015 GB, free: 5.879 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002515/0.4472, allocations: 2.162 MB / 0.5036 GB, free: 3.707 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004385/0.4476, allocations: 324.2 kB / 0.5039 GB, free: 3.332 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.637e-05/0.4477, allocations: 63.44 kB / 0.5039 GB, free: 3.262 MB / 430.1 MB Notification: Performance of pre-optimization done (n=160): time 4.488e-06/0.4477, allocations: 3.938 kB / 0.5039 GB, free: 3.258 MB / 430.1 MB Notification: Performance of matching and sorting (n=190): time 0.05641/0.5041, allocations: 21.4 MB / 0.5248 GB, free: 13.73 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001358/0.5043, allocations: 256.6 kB / 0.5251 GB, free: 13.43 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006014/0.5103, allocations: 3.934 MB / 0.5289 GB, free: 9.508 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000174/0.5105, allocations: 49.7 kB / 0.529 GB, free: 9.453 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00204/0.5126, allocations: 2.783 MB / 0.5317 GB, free: 6.633 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008756/0.5135, allocations: 0.7211 MB / 0.5324 GB, free: 5.902 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001755/0.5152, allocations: 1.178 MB / 0.5335 GB, free: 4.711 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.618e-05/0.5153, allocations: 301.1 kB / 0.5338 GB, free: 4.414 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003384/0.5187, allocations: 2.381 MB / 0.5362 GB, free: 2.027 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.202/0.7207, allocations: 5.636 MB / 0.5417 GB, free: 125.6 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008039/0.7288, allocations: 8.568 MB / 0.55 GB, free: 119.3 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.646e-05/0.7289, allocations: 35.06 kB / 0.5501 GB, free: 119.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01452/0.7434, allocations: 9.623 MB / 0.5595 GB, free: 116.1 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.148e-05/0.7435, allocations: 54.03 kB / 0.5595 GB, free: 116.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.442e-05/0.7436, allocations: 112 kB / 0.5596 GB, free: 116.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005019/0.7486, allocations: 2.024 MB / 0.5616 GB, free: 115.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003643/0.7523, allocations: 1.282 MB / 0.5628 GB, free: 114.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01199/0.7643, allocations: 11.35 MB / 0.5739 GB, free: 103.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003994/0.7683, allocations: 351.4 kB / 0.5743 GB, free: 103.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004206/0.7688, allocations: 340 kB / 0.5746 GB, free: 102.9 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.002308/0.7711, allocations: 1.947 MB / 0.5765 GB, free: 101.1 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000487/0.7716, allocations: 345.6 kB / 0.5768 GB, free: 100.9 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00797/0.7795, allocations: 4.887 MB / 0.5816 GB, free: 96 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.283e-05/0.7796, allocations: 24 kB / 0.5816 GB, free: 95.98 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.242e-05/0.7796, allocations: 11.94 kB / 0.5816 GB, free: 95.97 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.499e-05/0.7796, allocations: 7.969 kB / 0.5816 GB, free: 95.96 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01429/0.7939, allocations: 9.996 MB / 0.5914 GB, free: 85.98 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.135e-06/0.7939, allocations: 8.062 kB / 0.5914 GB, free: 85.98 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001171/0.7951, allocations: 267.6 kB / 0.5917 GB, free: 85.71 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004635/0.7998, allocations: 1.842 MB / 0.5935 GB, free: 83.87 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001376/0.7999, allocations: 35.98 kB / 0.5935 GB, free: 83.83 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01089/0.8108, allocations: 10.39 MB / 0.6036 GB, free: 73.36 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.8108, allocations: 7.969 kB / 0.6036 GB, free: 73.35 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01027/0.8211, allocations: 7.952 MB / 0.6114 GB, free: 65.43 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007175/0.8218, allocations: 412.4 kB / 0.6118 GB, free: 65.01 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003512/0.8222, allocations: 32 kB / 0.6118 GB, free: 64.98 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001505/0.8237, allocations: 135.8 kB / 0.612 GB, free: 64.84 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002981/0.824, allocations: 114 kB / 0.6121 GB, free: 64.73 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001323/0.8242, allocations: 49.22 kB / 0.6121 GB, free: 64.69 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002719/0.8269, allocations: 2.484 MB / 0.6145 GB, free: 62.22 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.8269, allocations: 4 kB / 0.6146 GB, free: 62.22 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003705/0.8306, allocations: 1.071 MB / 0.6156 GB, free: 61.16 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.000326/0.8309, allocations: 169.2 kB / 0.6158 GB, free: 60.99 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006495/0.8374, allocations: 5.831 MB / 0.6215 GB, free: 55.17 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.8375, allocations: 0 / 0.6215 GB, free: 55.17 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002346/0.8398, allocations: 2.097 MB / 0.6235 GB, free: 53.06 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002124/0.8419, allocations: 458 kB / 0.6239 GB, free: 52.62 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01101/0.853, allocations: 9.406 MB / 0.6331 GB, free: 43.18 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002245/0.8552, allocations: 3.096 MB / 0.6361 GB, free: 40.05 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00322/0.8585, allocations: 1.819 MB / 0.6379 GB, free: 38.22 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006016/0.8591, allocations: 235.4 kB / 0.6381 GB, free: 37.99 MB / 462.1 MB Notification: Performance of SimCode: time 4.9e-07/0.8591, allocations: 0 / 0.6381 GB, free: 37.99 MB / 462.1 MB Notification: Performance of Templates: time 0.06005/0.9191, allocations: 42.43 MB / 0.6796 GB, free: 11.86 MB / 478.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","/var/lib/jenkins/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