Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001519/0.001519, allocations: 112.2 kB / 17.28 MB, free: 6.219 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.001587/0.001587, allocations: 189.3 kB / 18.2 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.421/1.421, allocations: 205.1 MB / 224.1 MB, free: 12.44 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001151/0.001151, allocations: 47.94 kB / 280.2 MB, free: 3.508 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08145/0.08261, allocations: 46.64 MB / 326.8 MB, free: 4.797 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.0325/0.1151, allocations: 38.41 MB / 365.2 MB, free: 14.23 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01887/0.1341, allocations: 8.57 MB / 373.8 MB, free: 5.629 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007641/0.1418, allocations: 167.6 kB / 373.9 MB, free: 5.465 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004352/0.1462, allocations: 2.119 MB / 376.1 MB, free: 3.34 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00458/0.1508, allocations: 1.736 MB / 377.8 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00175/0.1526, allocations: 0.7021 MB / 378.5 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1726/0.3252, allocations: 5.058 MB / 383.6 MB, free: 9.812 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005851/0.3311, allocations: 3.057 MB / 386.6 MB, free: 9.473 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004141/0.3353, allocations: 1.521 MB / 388.1 MB, free: 9.473 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004473/0.3398, allocations: 2.293 MB / 390.4 MB, free: 9.348 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001476/0.3413, allocations: 302.6 kB / 390.7 MB, free: 9.348 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003019/0.3443, allocations: 1.192 MB / 391.9 MB, free: 9.344 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003652/0.348, allocations: 1.893 MB / 393.8 MB, free: 9.164 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003409/0.3515, allocations: 2.093 MB / 395.9 MB, free: 8.434 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005682/0.3572, allocations: 6.53 MB / 402.4 MB, free: 6.789 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.3572, allocations: 0 / 402.4 MB, free: 6.789 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3572, allocations: 2.594 kB / 402.4 MB, free: 6.789 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001067/0.3573, allocations: 0 / 402.4 MB, free: 6.789 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.00832/0.3656, allocations: 4.678 MB / 407.1 MB, free: 3.645 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.813e-05/0.3657, allocations: 12.94 kB / 407.1 MB, free: 3.641 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02454/0.3902, allocations: 3.091 MB / 410.2 MB, free: 2.242 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007244/0.3975, allocations: 3.373 MB / 413.6 MB, free: 316 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001166/0.3977, allocations: 199.2 kB / 413.8 MB, free: 252 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006132/0.3983, allocations: 268 kB / 414 MB, free: 184 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01325/0.4115, allocations: 8.867 MB / 422.9 MB, free: 7.188 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001048/0.4117, allocations: 43.66 kB / 423 MB, free: 7.16 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003356/0.412, allocations: 132.7 kB / 423.1 MB, free: 7.066 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002874/0.4149, allocations: 1.77 MB / 424.9 MB, free: 5.32 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01299/0.4279, allocations: 7.784 MB / 432.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04094/0.4689, allocations: 36.03 MB / 468.7 MB, free: 9.035 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008103/0.477, allocations: 3.82 MB / 472.5 MB, free: 5.086 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002547/0.4796, allocations: 2.159 MB / 474.6 MB, free: 2.922 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003847/0.48, allocations: 329.9 kB / 475 MB, free: 2.555 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.92e-05/0.4801, allocations: 51.56 kB / 475 MB, free: 2.492 MB / 382.1 MB Notification: Performance of pre-optimization done (n=160): time 3.818e-06/0.4801, allocations: 4 kB / 475 MB, free: 2.488 MB / 382.1 MB Notification: Performance of matching and sorting (n=190): time 0.05403/0.5341, allocations: 21.43 MB / 496.5 MB, free: 13 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001299/0.5343, allocations: 255.7 kB / 496.7 MB, free: 12.7 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005167/0.5395, allocations: 3.951 MB / 0.4889 GB, free: 8.766 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000333/0.5398, allocations: 51.81 kB / 0.489 GB, free: 8.711 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001842/0.5417, allocations: 2.782 MB / 0.4917 GB, free: 5.934 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007109/0.5424, allocations: 0.7233 MB / 0.4924 GB, free: 5.215 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001469/0.5438, allocations: 1.173 MB / 0.4935 GB, free: 4.031 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001076/0.544, allocations: 309.1 kB / 0.4938 GB, free: 3.727 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003174/0.5471, allocations: 2.381 MB / 0.4962 GB, free: 1.34 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004906/0.5521, allocations: 5.638 MB / 0.5017 GB, free: 10.14 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009312/0.5614, allocations: 8.579 MB / 0.51 GB, free: 460 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.352e-05/0.5615, allocations: 32 kB / 0.5101 GB, free: 428 kB / 430.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01715/0.5787, allocations: 9.627 MB / 0.5195 GB, free: 7.457 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.221e-05/0.5788, allocations: 52 kB / 0.5195 GB, free: 7.406 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001145/0.5789, allocations: 112.9 kB / 0.5196 GB, free: 7.297 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005363/0.5842, allocations: 2.034 MB / 0.5216 GB, free: 5.258 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00401/0.5883, allocations: 1.283 MB / 0.5229 GB, free: 3.977 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01479/0.6031, allocations: 11.35 MB / 0.534 GB, free: 8.484 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004915/0.608, allocations: 347.5 kB / 0.5343 GB, free: 8.145 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009439/0.609, allocations: 336 kB / 0.5346 GB, free: 7.816 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.00425/0.6133, allocations: 1.939 MB / 0.5365 GB, free: 5.863 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008853/0.6141, allocations: 351.5 kB / 0.5368 GB, free: 5.516 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009385/0.6235, allocations: 4.888 MB / 0.5416 GB, free: 0.6094 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.334e-05/0.6236, allocations: 23.94 kB / 0.5416 GB, free: 0.5859 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.135e-05/0.6236, allocations: 8 kB / 0.5416 GB, free: 0.5781 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.783e-05/0.6237, allocations: 11.91 kB / 0.5417 GB, free: 0.5664 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1868/0.8105, allocations: 10.05 MB / 0.5515 GB, free: 173 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-05/0.8105, allocations: 1.781 kB / 0.5515 GB, free: 173 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001345/0.8119, allocations: 264.5 kB / 0.5517 GB, free: 173 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005613/0.8175, allocations: 1.854 MB / 0.5535 GB, free: 172.7 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002761/0.8178, allocations: 33.45 kB / 0.5536 GB, free: 172.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01313/0.831, allocations: 10.4 MB / 0.5637 GB, free: 168 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.831, allocations: 0 / 0.5637 GB, free: 168 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01158/0.8426, allocations: 7.946 MB / 0.5715 GB, free: 165.2 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00195/0.8446, allocations: 0.7248 MB / 0.5722 GB, free: 165 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00114/0.8457, allocations: 27.47 kB / 0.5722 GB, free: 165 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002249/0.848, allocations: 142.5 kB / 0.5723 GB, free: 165 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004547/0.8485, allocations: 111.1 kB / 0.5725 GB, free: 165 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001738/0.8487, allocations: 47.31 kB / 0.5725 GB, free: 164.9 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004883/0.8536, allocations: 2.5 MB / 0.5749 GB, free: 164.1 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.8536, allocations: 3.938 kB / 0.5749 GB, free: 164.1 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006461/0.86, allocations: 1.071 MB / 0.576 GB, free: 164 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.000642/0.8607, allocations: 164.3 kB / 0.5761 GB, free: 163.9 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01026/0.871, allocations: 6.881 MB / 0.5829 GB, free: 157.8 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.785e-06/0.871, allocations: 0 / 0.5829 GB, free: 157.8 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002607/0.8736, allocations: 2.093 MB / 0.5849 GB, free: 155.8 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003736/0.8774, allocations: 470.8 kB / 0.5854 GB, free: 155.4 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01575/0.8931, allocations: 11.32 MB / 0.5964 GB, free: 144.1 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002513/0.8957, allocations: 3.097 MB / 0.5994 GB, free: 141 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003885/0.8996, allocations: 1.823 MB / 0.6012 GB, free: 139.2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006657/0.9003, allocations: 239.3 kB / 0.6014 GB, free: 139 MB / 462.1 MB Notification: Performance of SimCode: time 5.61e-07/0.9003, allocations: 4 kB / 0.6015 GB, free: 139 MB / 462.1 MB Notification: Performance of Templates: time 0.06225/0.9625, allocations: 45.24 MB / 0.6456 GB, free: 93.75 MB / 462.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches