Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_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.001226/0.001226, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001202/0.001202, allocations: 193.2 kB / 16.53 MB, free: 6.391 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.34/1.34, allocations: 205.1 MB / 222.4 MB, free: 4.555 MB / 174.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.001304/0.001304, allocations: 55.92 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2069/0.2082, allocations: 46.63 MB / 325.3 MB, free: 1.855 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.0107/0.2189, allocations: 10.47 MB / 335.8 MB, free: 9.422 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.007971/0.2269, allocations: 3.949 MB / 339.7 MB, free: 5.461 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001771/0.2288, allocations: 63.81 kB / 339.8 MB, free: 5.398 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004678/0.2335, allocations: 2.211 MB / 342 MB, free: 3.18 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004829/0.2383, allocations: 1.856 MB / 343.9 MB, free: 1.316 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001729/0.2401, allocations: 0.7448 MB / 344.6 MB, free: 0.5703 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.006535/0.2466, allocations: 4.846 MB / 349.4 MB, free: 11.71 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003391/0.25, allocations: 2.902 MB / 352.3 MB, free: 8.762 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00215/0.2522, allocations: 1.476 MB / 353.8 MB, free: 7.281 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00283/0.2551, allocations: 2.052 MB / 355.9 MB, free: 5.223 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006189/0.2557, allocations: 300 kB / 356.2 MB, free: 4.93 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00203/0.2577, allocations: 1.174 MB / 357.3 MB, free: 3.754 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001605/0.2593, allocations: 1.862 MB / 359.2 MB, free: 1.887 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002107/0.2615, allocations: 2.062 MB / 361.3 MB, free: 15.81 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006886/0.2684, allocations: 6.492 MB / 367.8 MB, free: 9.301 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.875e-06/0.2684, allocations: 0 / 367.8 MB, free: 9.301 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.2684, allocations: 0 / 367.8 MB, free: 9.301 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001373/0.2686, allocations: 0 / 367.8 MB, free: 9.301 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.00965/0.2782, allocations: 4.686 MB / 372.4 MB, free: 4.543 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.659e-05/0.2783, allocations: 8.031 kB / 372.5 MB, free: 4.535 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02656/0.3048, allocations: 3.092 MB / 375.5 MB, free: 1.434 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007844/0.3127, allocations: 3.362 MB / 378.9 MB, free: 14.01 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001354/0.3129, allocations: 205 kB / 379.1 MB, free: 13.8 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005466/0.3134, allocations: 271.8 kB / 379.4 MB, free: 13.54 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01283/0.3263, allocations: 8.855 MB / 388.2 MB, free: 4.035 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000106/0.3264, allocations: 51.58 kB / 388.3 MB, free: 3.984 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003285/0.3268, allocations: 127.9 kB / 388.4 MB, free: 3.859 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00288/0.3296, allocations: 1.778 MB / 390.2 MB, free: 2.078 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01353/0.3432, allocations: 7.78 MB / 398 MB, free: 10.29 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.042/0.3852, allocations: 36.04 MB / 434 MB, free: 5.172 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008107/0.3934, allocations: 3.809 MB / 437.8 MB, free: 1.215 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002736/0.3962, allocations: 2.162 MB / 440 MB, free: 15.04 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004837/0.3967, allocations: 336 kB / 440.3 MB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.999e-05/0.3967, allocations: 51.5 kB / 440.4 MB, free: 14.6 MB / 382.1 MB Notification: Performance of pre-optimization done (n=160): time 4.829e-06/0.3967, allocations: 0 / 440.4 MB, free: 14.6 MB / 382.1 MB Notification: Performance of matching and sorting (n=190): time 0.2085/0.6052, allocations: 21.44 MB / 461.8 MB, free: 108.8 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001069/0.6054, allocations: 252.1 kB / 462 MB, free: 108.5 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005038/0.6104, allocations: 3.955 MB / 466 MB, free: 107.1 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004901/0.6109, allocations: 62.02 kB / 466.1 MB, free: 107 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001783/0.6127, allocations: 2.773 MB / 468.8 MB, free: 104.9 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007141/0.6134, allocations: 0.7245 MB / 469.5 MB, free: 104.4 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00124/0.6147, allocations: 1.174 MB / 470.7 MB, free: 103.8 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.984e-05/0.6147, allocations: 307.3 kB / 471 MB, free: 103.5 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00248/0.6172, allocations: 2.378 MB / 473.4 MB, free: 102.7 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003373/0.6206, allocations: 5.644 MB / 479 MB, free: 97.56 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006401/0.627, allocations: 8.569 MB / 487.6 MB, free: 88.13 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.335e-05/0.6271, allocations: 36 kB / 487.6 MB, free: 88.1 MB / 382.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01396/0.6411, allocations: 9.631 MB / 497.3 MB, free: 78.46 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.082e-05/0.6412, allocations: 58.34 kB / 497.3 MB, free: 78.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.762e-05/0.6412, allocations: 116.1 kB / 497.4 MB, free: 78.29 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004734/0.646, allocations: 2.031 MB / 499.5 MB, free: 76.26 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003217/0.6492, allocations: 1.283 MB / 0.489 GB, free: 74.97 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01164/0.6609, allocations: 11.35 MB / 0.5001 GB, free: 63.49 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005006/0.6659, allocations: 339.5 kB / 0.5004 GB, free: 63.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000466/0.6664, allocations: 336 kB / 0.5008 GB, free: 62.83 MB / 382.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.002238/0.6686, allocations: 1.95 MB / 0.5027 GB, free: 60.87 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004837/0.6691, allocations: 347.4 kB / 0.503 GB, free: 60.52 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007979/0.6771, allocations: 4.884 MB / 0.5078 GB, free: 55.63 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.365e-05/0.6772, allocations: 20 kB / 0.5078 GB, free: 55.61 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.411e-05/0.6772, allocations: 12 kB / 0.5078 GB, free: 55.6 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.288e-05/0.6772, allocations: 15.95 kB / 0.5078 GB, free: 55.58 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01544/0.6927, allocations: 10.04 MB / 0.5176 GB, free: 45.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.391e-05/0.6927, allocations: 4 kB / 0.5176 GB, free: 45.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001232/0.6939, allocations: 263.6 kB / 0.5179 GB, free: 45.26 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004716/0.6987, allocations: 1.85 MB / 0.5197 GB, free: 43.4 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000244/0.6989, allocations: 32 kB / 0.5197 GB, free: 43.37 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01116/0.7101, allocations: 10.4 MB / 0.5299 GB, free: 32.82 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/0.7101, allocations: 8.031 kB / 0.5299 GB, free: 32.81 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01089/0.721, allocations: 7.944 MB / 0.5376 GB, free: 24.85 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001691/0.7228, allocations: 0.727 MB / 0.5383 GB, free: 24.1 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005138/0.7233, allocations: 32 kB / 0.5384 GB, free: 24.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001536/0.7248, allocations: 139.8 kB / 0.5385 GB, free: 23.93 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003499/0.7252, allocations: 109.1 kB / 0.5386 GB, free: 23.82 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001285/0.7253, allocations: 48 kB / 0.5386 GB, free: 23.78 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00282/0.7282, allocations: 2.504 MB / 0.5411 GB, free: 21.29 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.41e-07/0.7282, allocations: 0 / 0.5411 GB, free: 21.29 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004051/0.7322, allocations: 1.069 MB / 0.5421 GB, free: 20.23 MB / 382.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.0003596/0.7326, allocations: 176.3 kB / 0.5423 GB, free: 20.05 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.008576/0.7412, allocations: 6.877 MB / 0.549 GB, free: 13.2 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.781e-06/0.7412, allocations: 480 / 0.549 GB, free: 13.2 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002377/0.7436, allocations: 2.104 MB / 0.5511 GB, free: 11.08 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002483/0.7461, allocations: 467.5 kB / 0.5515 GB, free: 10.63 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01193/0.758, allocations: 9.54 MB / 0.5608 GB, free: 1.047 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002727/0.7608, allocations: 3.095 MB / 0.5639 GB, free: 13.92 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.003963/0.7647, allocations: 1.819 MB / 0.5656 GB, free: 12.09 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006174/0.7654, allocations: 239.4 kB / 0.5659 GB, free: 11.86 MB / 398.1 MB Notification: Performance of SimCode: time 2.194e-06/0.7654, allocations: 0 / 0.5659 GB, free: 11.86 MB / 398.1 MB Notification: Performance of Templates: time 0.2658/1.031, allocations: 45.24 MB / 0.61 GB, free: 140 MB / 430.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1)