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.001541/0.001541, allocations: 109.5 kB / 17.68 MB, free: 5.332 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.001824/0.001824, allocations: 190.9 kB / 18.62 MB, free: 4.41 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.285/1.285, allocations: 222.9 MB / 242.3 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009678/0.0009678, allocations: 51.55 kB / 302.1 MB, free: 5.129 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08481/0.0858, allocations: 49.44 MB / 351.5 MB, free: 3.668 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01083/0.09667, allocations: 10.42 MB / 361.9 MB, free: 9.191 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008321/0.1051, allocations: 3.964 MB / 365.9 MB, free: 5.215 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001472/0.1066, allocations: 67.75 kB / 366 MB, free: 5.148 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003791/0.1104, allocations: 2.204 MB / 368.2 MB, free: 2.938 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004092/0.1145, allocations: 1.855 MB / 370 MB, free: 1.078 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001378/0.1159, allocations: 0.7448 MB / 370.8 MB, free: 340 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1848/0.3007, allocations: 5.168 MB / 375.9 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004451/0.3052, allocations: 2.886 MB / 378.8 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003003/0.3082, allocations: 1.475 MB / 380.3 MB, free: 9.965 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003189/0.3115, allocations: 2.042 MB / 382.3 MB, free: 9.742 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006971/0.3122, allocations: 301 kB / 382.6 MB, free: 9.742 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002345/0.3145, allocations: 1.187 MB / 383.8 MB, free: 9.645 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001868/0.3164, allocations: 1.844 MB / 385.7 MB, free: 9.023 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001768/0.3182, allocations: 2.065 MB / 387.7 MB, free: 7.598 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006542/0.3247, allocations: 6.685 MB / 394.4 MB, free: 4.18 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.364e-06/0.3248, allocations: 4 kB / 394.4 MB, free: 4.176 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.3248, allocations: 0 / 394.4 MB, free: 4.176 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001359/0.3249, allocations: 0 / 394.4 MB, free: 4.176 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.008842/0.3338, allocations: 4.668 MB / 399.1 MB, free: 1.031 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/0.3338, allocations: 8.188 kB / 399.1 MB, free: 1.031 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02533/0.3592, allocations: 3.088 MB / 402.2 MB, free: 14.66 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008741/0.3679, allocations: 3.329 MB / 405.5 MB, free: 11.43 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001752/0.3682, allocations: 199.1 kB / 405.7 MB, free: 11.26 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001042/0.3692, allocations: 272.9 kB / 406 MB, free: 11.03 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01597/0.3852, allocations: 8.867 MB / 414.8 MB, free: 1.688 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001806/0.3854, allocations: 40.22 kB / 414.9 MB, free: 1.664 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004997/0.3859, allocations: 131.3 kB / 415 MB, free: 1.566 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003079/0.389, allocations: 1.771 MB / 416.8 MB, free: 15.82 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01536/0.4044, allocations: 7.781 MB / 424.5 MB, free: 8.195 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04634/0.4508, allocations: 35.86 MB / 460.4 MB, free: 3.457 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008249/0.4591, allocations: 3.808 MB / 464.2 MB, free: 15.51 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002539/0.4617, allocations: 2.16 MB / 466.4 MB, free: 13.34 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004014/0.4621, allocations: 331.6 kB / 466.7 MB, free: 12.97 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.982e-05/0.4621, allocations: 47.56 kB / 466.7 MB, free: 12.91 MB / 382.1 MB Notification: Performance of pre-optimization done (n=160): time 4.97e-06/0.4621, allocations: 0 / 466.7 MB, free: 12.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=190): time 0.05381/0.516, allocations: 21.4 MB / 488.1 MB, free: 7.406 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001338/0.5161, allocations: 252.6 kB / 488.4 MB, free: 7.105 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005856/0.522, allocations: 3.938 MB / 492.3 MB, free: 3.184 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006258/0.5227, allocations: 49.7 kB / 492.4 MB, free: 3.129 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002295/0.525, allocations: 2.77 MB / 495.1 MB, free: 372 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001363/0.5263, allocations: 0.7286 MB / 495.9 MB, free: 15.64 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001892/0.5283, allocations: 1.173 MB / 497.1 MB, free: 14.45 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001124/0.5284, allocations: 305.1 kB / 497.3 MB, free: 14.15 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003491/0.5319, allocations: 2.385 MB / 499.7 MB, free: 11.76 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005572/0.5375, allocations: 5.645 MB / 0.4935 GB, free: 4.512 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01036/0.5479, allocations: 8.566 MB / 0.5019 GB, free: 10.38 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001075/0.548, allocations: 35.98 kB / 0.5019 GB, free: 10.35 MB / 430.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01926/0.5673, allocations: 9.621 MB / 0.5113 GB, free: 0.7148 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001047/0.5674, allocations: 56 kB / 0.5114 GB, free: 0.6602 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001427/0.5676, allocations: 112 kB / 0.5115 GB, free: 0.5508 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005395/0.573, allocations: 2.024 MB / 0.5135 GB, free: 14.52 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004433/0.5774, allocations: 1.287 MB / 0.5147 GB, free: 13.23 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01576/0.5932, allocations: 11.36 MB / 0.5258 GB, free: 1.73 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004509/0.5978, allocations: 347.4 kB / 0.5261 GB, free: 1.391 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006129/0.5984, allocations: 338.2 kB / 0.5265 GB, free: 1.062 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.1884/0.7869, allocations: 1.932 MB / 0.5284 GB, free: 144.9 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009063/0.7878, allocations: 344.6 kB / 0.5287 GB, free: 144.9 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009173/0.797, allocations: 4.893 MB / 0.5335 GB, free: 144.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.141e-05/0.797, allocations: 23.94 kB / 0.5335 GB, free: 144.5 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.817e-05/0.7971, allocations: 6.438 kB / 0.5335 GB, free: 144.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.063e-05/0.7971, allocations: 8.766 kB / 0.5335 GB, free: 144.5 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01861/0.8157, allocations: 10.01 MB / 0.5433 GB, free: 141 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.616e-05/0.8158, allocations: 4.125 kB / 0.5433 GB, free: 141 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001263/0.817, allocations: 267.4 kB / 0.5435 GB, free: 141 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004728/0.8218, allocations: 1.849 MB / 0.5453 GB, free: 140.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002811/0.8221, allocations: 30.12 kB / 0.5454 GB, free: 140.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01078/0.8328, allocations: 10.39 MB / 0.5555 GB, free: 136 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.8329, allocations: 3.844 kB / 0.5555 GB, free: 136 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01137/0.8443, allocations: 7.952 MB / 0.5633 GB, free: 132.5 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001188/0.8455, allocations: 408.2 kB / 0.5637 GB, free: 132.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005019/0.846, allocations: 29.72 kB / 0.5637 GB, free: 132.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001528/0.8475, allocations: 135.8 kB / 0.5638 GB, free: 132 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003487/0.8479, allocations: 120.3 kB / 0.5639 GB, free: 131.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001419/0.848, allocations: 52.98 kB / 0.564 GB, free: 131.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003156/0.8512, allocations: 2.48 MB / 0.5664 GB, free: 129.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.8512, allocations: 0 / 0.5664 GB, free: 129.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004474/0.8557, allocations: 1.062 MB / 0.5675 GB, free: 128.4 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.0003898/0.8561, allocations: 174.7 kB / 0.5676 GB, free: 128.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006767/0.8629, allocations: 5.822 MB / 0.5733 GB, free: 122.4 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.931e-06/0.8629, allocations: 3.062 kB / 0.5733 GB, free: 122.4 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002262/0.8652, allocations: 2.096 MB / 0.5754 GB, free: 120.3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002559/0.8677, allocations: 471.3 kB / 0.5758 GB, free: 119.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01292/0.8807, allocations: 9.413 MB / 0.585 GB, free: 110.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002434/0.8832, allocations: 3.091 MB / 0.588 GB, free: 107.4 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003321/0.8865, allocations: 1.819 MB / 0.5898 GB, free: 105.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005993/0.8871, allocations: 235.4 kB / 0.59 GB, free: 105.3 MB / 446.1 MB Notification: Performance of SimCode: time 9.21e-07/0.8871, allocations: 0 / 0.59 GB, free: 105.3 MB / 446.1 MB Notification: Performance of Templates: time 0.05985/0.947, allocations: 40.36 MB / 0.6294 GB, free: 65.31 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 -s cvode -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