Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.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.DoublePendulumInitTip,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.DoublePendulumInitTip") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip,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.DoublePendulumInitTip") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001314/0.001314, allocations: 103.2 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001564/0.001564, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.353/1.353, allocations: 227.4 MB / 246.8 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001067/0.001067, allocations: 63.42 kB / 306.9 MB, free: 0.5781 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09799/0.09908, allocations: 50.54 MB / 357.5 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip): time 0.0132/0.1123, allocations: 11.77 MB / 369.2 MB, free: 2.227 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.201/0.3133, allocations: 4.345 MB / 373.6 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002834/0.3162, allocations: 79.78 kB / 373.7 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006218/0.3225, allocations: 2.877 MB / 376.5 MB, free: 9.055 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005979/0.3285, allocations: 1.921 MB / 378.5 MB, free: 8.758 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002779/0.3313, allocations: 1.042 MB / 379.5 MB, free: 8.652 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008195/0.3395, allocations: 5.598 MB / 385.1 MB, free: 7.043 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005263/0.3448, allocations: 3.984 MB / 389.1 MB, free: 5.164 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003622/0.3484, allocations: 1.694 MB / 390.8 MB, free: 4.312 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003365/0.3518, allocations: 2.283 MB / 393.1 MB, free: 3.066 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001229/0.353, allocations: 362.9 kB / 393.4 MB, free: 3.066 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002596/0.3557, allocations: 1.229 MB / 394.7 MB, free: 2.652 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002136/0.3578, allocations: 2.076 MB / 396.7 MB, free: 1.441 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003343/0.3612, allocations: 2.346 MB / 399.1 MB, free: 15.67 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008508/0.3697, allocations: 7.325 MB / 406.4 MB, free: 8.523 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.3697, allocations: 3.938 kB / 406.4 MB, free: 8.52 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.3697, allocations: 0 / 406.4 MB, free: 8.52 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001312/0.3699, allocations: 0 / 406.4 MB, free: 8.52 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: 1479 * Number of variables: 1479 Notification: Performance of Generate backend data structure: time 0.0105/0.3804, allocations: 5.182 MB / 411.6 MB, free: 3.363 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.566e-05/0.3804, allocations: 8.031 kB / 411.6 MB, free: 3.355 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02682/0.4073, allocations: 3.156 MB / 414.7 MB, free: 196 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008071/0.4154, allocations: 3.452 MB / 418.2 MB, free: 12.71 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001673/0.4156, allocations: 236.4 kB / 418.4 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007633/0.4163, allocations: 334.1 kB / 418.8 MB, free: 12.22 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01596/0.4323, allocations: 9.844 MB / 428.6 MB, free: 1.832 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000138/0.4325, allocations: 51.58 kB / 428.7 MB, free: 1.781 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004123/0.4329, allocations: 150.3 kB / 428.8 MB, free: 1.668 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003264/0.4362, allocations: 1.906 MB / 430.7 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0157/0.4519, allocations: 8.48 MB / 439.2 MB, free: 7.266 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04517/0.4971, allocations: 38.39 MB / 477.6 MB, free: 15.98 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008307/0.5054, allocations: 3.949 MB / 481.5 MB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002758/0.5082, allocations: 2.184 MB / 483.7 MB, free: 9.691 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008262/0.5091, allocations: 0.6445 MB / 484.4 MB, free: 8.945 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.354e-05/0.5091, allocations: 63.44 kB / 484.4 MB, free: 8.875 MB / 398.1 MB Notification: Performance of pre-optimization done (n=166): time 4.408e-06/0.5091, allocations: 0 / 484.4 MB, free: 8.875 MB / 398.1 MB Notification: Performance of matching and sorting (n=201): time 0.06521/0.5744, allocations: 22.53 MB / 0.4951 GB, free: 2.23 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001714/0.5746, allocations: 256.6 kB / 0.4953 GB, free: 1.926 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009456/0.584, allocations: 4.153 MB / 0.4994 GB, free: 13.75 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009258/0.585, allocations: 53.89 kB / 0.4994 GB, free: 13.69 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003751/0.5888, allocations: 3.082 MB / 0.5024 GB, free: 10.61 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001802/0.5906, allocations: 0.769 MB / 0.5032 GB, free: 9.848 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003311/0.5939, allocations: 1.249 MB / 0.5044 GB, free: 8.586 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000118/0.5941, allocations: 305.1 kB / 0.5047 GB, free: 8.285 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003788/0.5979, allocations: 2.487 MB / 0.5071 GB, free: 5.793 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006977/0.6049, allocations: 5.988 MB / 0.513 GB, free: 14.08 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01211/0.617, allocations: 9.056 MB / 0.5218 GB, free: 3.32 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001071/0.6171, allocations: 36 kB / 0.5218 GB, free: 3.285 MB / 446.1 MB Notification: Performance of matching and sorting (n=797) (initialization): time 0.1997/0.8168, allocations: 10.54 MB / 0.5321 GB, free: 135.4 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001117/0.817, allocations: 56.25 kB / 0.5322 GB, free: 135.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002499/0.8172, allocations: 120.8 kB / 0.5323 GB, free: 135.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008138/0.8254, allocations: 2.603 MB / 0.5348 GB, free: 135 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004664/0.8301, allocations: 1.308 MB / 0.5361 GB, free: 134.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02196/0.852, allocations: 18.66 MB / 0.5543 GB, free: 125.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004332/0.8564, allocations: 362 kB / 0.5547 GB, free: 125.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009401/0.8574, allocations: 358.9 kB / 0.555 GB, free: 125.1 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 552 * Number of states: 0 () * Number of discrete variables: 35 (freeMotionScalarInit.arrow.arrow.twoHeadedArrow,freeMotionScalarInit.arrow.headAtOrigin,freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],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 (709): * Single equations (assignments): 703 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,35,100.0%), (3,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,13)} Notification: Performance of prepare postOptimizeDAE: time 0.003492/0.8609, allocations: 2.132 MB / 0.5571 GB, free: 124.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007253/0.8616, allocations: 368.1 kB / 0.5575 GB, free: 124.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008145/0.8698, allocations: 5.031 MB / 0.5624 GB, free: 122.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.429e-05/0.8698, allocations: 22.56 kB / 0.5624 GB, free: 122.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.281e-05/0.8699, allocations: 7.688 kB / 0.5624 GB, free: 122.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-05/0.8699, allocations: 7.969 kB / 0.5624 GB, free: 122.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01635/0.8863, allocations: 10.78 MB / 0.5729 GB, free: 112.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.549e-05/0.8863, allocations: 1.094 kB / 0.5729 GB, free: 112.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001274/0.8876, allocations: 284.1 kB / 0.5732 GB, free: 112.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004443/0.892, allocations: 1.85 MB / 0.575 GB, free: 110.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002076/0.8923, allocations: 39.06 kB / 0.5751 GB, free: 110.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01094/0.9032, allocations: 10.41 MB / 0.5852 GB, free: 99.97 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.806e-06/0.9032, allocations: 0 / 0.5852 GB, free: 99.97 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01092/0.9142, allocations: 8.155 MB / 0.5932 GB, free: 91.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001027/0.9152, allocations: 433.8 kB / 0.5936 GB, free: 91.36 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008304/0.9161, allocations: 34.77 kB / 0.5936 GB, free: 91.33 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001959/0.918, allocations: 143.8 kB / 0.5938 GB, free: 91.19 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004127/0.9185, allocations: 117.1 kB / 0.5939 GB, free: 91.08 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001445/0.9186, allocations: 48 kB / 0.5939 GB, free: 91.03 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003799/0.9224, allocations: 2.611 MB / 0.5965 GB, free: 88.41 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.9224, allocations: 0 / 0.5965 GB, free: 88.41 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005382/0.9278, allocations: 1.155 MB / 0.5976 GB, free: 87.26 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 (147): * Single equations (assignments): 143 * 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.0005342/0.9284, allocations: 180.6 kB / 0.5978 GB, free: 87.08 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0112/0.9396, allocations: 7.718 MB / 0.6053 GB, free: 79.37 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.933e-06/0.9396, allocations: 0 / 0.6053 GB, free: 79.37 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002402/0.942, allocations: 2.158 MB / 0.6074 GB, free: 77.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003344/0.9454, allocations: 0.5542 MB / 0.608 GB, free: 76.67 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01306/0.9585, allocations: 10.39 MB / 0.6181 GB, free: 66.25 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002567/0.9611, allocations: 3.393 MB / 0.6214 GB, free: 62.82 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003684/0.9648, allocations: 1.872 MB / 0.6233 GB, free: 60.95 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006289/0.9654, allocations: 243.4 kB / 0.6235 GB, free: 60.71 MB / 446.1 MB Notification: Performance of SimCode: time 8.52e-07/0.9654, allocations: 0 / 0.6235 GB, free: 60.71 MB / 446.1 MB Notification: Performance of Templates: time 0.06572/1.031, allocations: 51.5 MB / 0.6738 GB, free: 9.445 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulumInitTip/DoublePendulumInitTip.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches