Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo) 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(PlanarMechanics.Examples.DoublePendulum,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.DoublePendulum") translateModel(PlanarMechanics.Examples.DoublePendulum,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.DoublePendulum") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001579/0.001579, allocations: 114.3 kB / 16.37 MB, free: 5.539 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.001855/0.001855, allocations: 187.5 kB / 17.3 MB, free: 5.184 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.353/1.353, allocations: 222.9 MB / 241 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.05901/0.05901, allocations: 9.114 MB / 300.3 MB, free: 5.871 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 63.91 kB / 363.4 MB, free: 6.715 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2016/0.2029, allocations: 51.41 MB / 414.8 MB, free: 24.87 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.DoublePendulum): time 0.006164/0.2091, allocations: 8.455 MB / 423.3 MB, free: 16.39 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00352/0.2127, allocations: 2.602 MB / 425.9 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005284/0.2132, allocations: 35.94 kB / 425.9 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006063/0.2138, allocations: 365.5 kB / 426.3 MB, free: 13.39 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001946/0.2158, allocations: 1.416 MB / 427.7 MB, free: 11.97 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002528/0.2161, allocations: 135.8 kB / 427.8 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001541/0.2177, allocations: 2.541 MB / 430.3 MB, free: 9.289 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006793/0.2183, allocations: 0.9208 MB / 431.3 MB, free: 8.34 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006971/0.2191, allocations: 0.9104 MB / 432.2 MB, free: 7.426 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00119/0.2203, allocations: 1.312 MB / 433.5 MB, free: 6.109 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002626/0.2205, allocations: 232 kB / 433.7 MB, free: 5.883 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00101/0.2215, allocations: 0.827 MB / 434.5 MB, free: 5.055 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006135/0.2222, allocations: 1.219 MB / 435.8 MB, free: 3.832 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007996/0.223, allocations: 1.588 MB / 437.3 MB, free: 2.234 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003521/0.2265, allocations: 5.017 MB / 442.4 MB, free: 13.2 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.2265, allocations: 3.984 kB / 442.4 MB, free: 13.2 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.2265, allocations: 0 / 442.4 MB, free: 13.2 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.52e-05/0.2266, allocations: 0 / 442.4 MB, free: 13.2 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: 1179 * Number of variables: 1179 Notification: Performance of Generate backend data structure: time 0.009468/0.2361, allocations: 4.357 MB / 446.7 MB, free: 8.781 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.454e-05/0.2361, allocations: 16.02 kB / 446.7 MB, free: 8.766 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006236/0.2424, allocations: 1.748 MB / 448.5 MB, free: 7.012 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003233/0.2456, allocations: 1.372 MB / 449.9 MB, free: 5.594 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001485/0.2458, allocations: 152.1 kB / 450 MB, free: 5.445 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004613/0.2463, allocations: 195.8 kB / 450.2 MB, free: 5.254 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0123/0.2586, allocations: 8.255 MB / 458.5 MB, free: 12.61 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.913e-05/0.2587, allocations: 23.78 kB / 458.5 MB, free: 12.58 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002738/0.259, allocations: 95.86 kB / 458.6 MB, free: 12.49 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002869/0.2619, allocations: 1.903 MB / 460.5 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01397/0.2758, allocations: 7.426 MB / 467.9 MB, free: 3.145 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03664/0.3125, allocations: 25.53 MB / 493.4 MB, free: 9.086 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005939/0.3185, allocations: 2.614 MB / 496 MB, free: 6.352 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001311/0.3198, allocations: 0.9196 MB / 497 MB, free: 5.43 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006716/0.3266, allocations: 5.086 MB / 0.4903 GB, free: 15.83 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.267e-05/0.3266, allocations: 47.5 kB / 0.4903 GB, free: 15.77 MB / 382.1 MB Notification: Performance of pre-optimization done (n=148): time 3.326e-06/0.3266, allocations: 0 / 0.4903 GB, free: 15.77 MB / 382.1 MB Notification: Performance of matching and sorting (n=176): time 0.01244/0.3391, allocations: 5.464 MB / 0.4957 GB, free: 10.32 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.02e-05/0.3392, allocations: 64.72 kB / 0.4957 GB, free: 10.24 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003607/0.3428, allocations: 2.618 MB / 0.4983 GB, free: 7.59 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001243/0.3429, allocations: 53.7 kB / 0.4983 GB, free: 7.531 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001418/0.3443, allocations: 2.093 MB / 0.5004 GB, free: 5.406 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005398/0.3449, allocations: 0.6476 MB / 0.501 GB, free: 4.75 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009947/0.3459, allocations: 0.8179 MB / 0.5018 GB, free: 3.918 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.136e-05/0.346, allocations: 305.1 kB / 0.5021 GB, free: 3.617 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002104/0.3481, allocations: 1.374 MB / 0.5034 GB, free: 2.234 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1894/0.5375, allocations: 3.619 MB / 0.507 GB, free: 85.2 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006115/0.5437, allocations: 5.417 MB / 0.5123 GB, free: 81.06 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.863e-05/0.5438, allocations: 19.75 kB / 0.5123 GB, free: 81.06 MB / 382.1 MB Notification: Performance of matching and sorting (n=545) (initialization): time 0.00829/0.5521, allocations: 5.222 MB / 0.5174 GB, free: 79.2 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.063e-05/0.5521, allocations: 38.44 kB / 0.5174 GB, free: 79.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.419e-05/0.5522, allocations: 80.88 kB / 0.5175 GB, free: 79.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000834/0.553, allocations: 369.1 kB / 0.5179 GB, free: 79.13 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00267/0.5557, allocations: 0.9133 MB / 0.5187 GB, free: 79.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004816/0.5606, allocations: 4.167 MB / 0.5228 GB, free: 76.49 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002823/0.5634, allocations: 207.1 kB / 0.523 GB, free: 76.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003366/0.5637, allocations: 241.5 kB / 0.5232 GB, free: 76.39 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 358 * Number of states: 0 () * Number of discrete variables: 18 (revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (498): * Single equations (assignments): 493 * Array equations: 4 * 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,20,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002119/0.5659, allocations: 1.608 MB / 0.5248 GB, free: 75.61 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003013/0.5662, allocations: 230.9 kB / 0.525 GB, free: 75.6 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003221/0.5694, allocations: 2.335 MB / 0.5273 GB, free: 74.28 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.657e-05/0.5695, allocations: 39.39 kB / 0.5274 GB, free: 74.25 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.236e-06/0.5695, allocations: 7.938 kB / 0.5274 GB, free: 74.25 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.372e-05/0.5696, allocations: 7.5 kB / 0.5274 GB, free: 74.25 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009006/0.5786, allocations: 6.435 MB / 0.5337 GB, free: 68.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.797e-06/0.5786, allocations: 4 kB / 0.5337 GB, free: 68.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008191/0.5794, allocations: 251.3 kB / 0.5339 GB, free: 68.55 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006002/0.58, allocations: 253.1 kB / 0.5341 GB, free: 68.3 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.008e-05/0.5801, allocations: 39.92 kB / 0.5342 GB, free: 68.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003133/0.5833, allocations: 3.412 MB / 0.5375 GB, free: 64.75 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.362e-06/0.5833, allocations: 11.59 kB / 0.5375 GB, free: 64.74 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004221/0.5875, allocations: 3.6 MB / 0.541 GB, free: 61.18 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006017/0.5881, allocations: 302.3 kB / 0.5413 GB, free: 60.86 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002449/0.5884, allocations: 43.92 kB / 0.5414 GB, free: 60.82 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007954/0.5892, allocations: 75.34 kB / 0.5414 GB, free: 60.75 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001705/0.5894, allocations: 111.5 kB / 0.5415 GB, free: 60.64 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.709e-05/0.5895, allocations: 47.98 kB / 0.5416 GB, free: 60.59 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001945/0.5914, allocations: 1.684 MB / 0.5432 GB, free: 58.89 MB / 382.1 MB Notification: Performance of sort global known variables: time 4e-07/0.5914, allocations: 0 / 0.5432 GB, free: 58.89 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002883/0.5943, allocations: 0.7131 MB / 0.5439 GB, free: 58.18 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (revolute.phi,revolute.w,revolute1.phi,revolute1.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 (132): * Single equations (assignments): 127 * Array equations: 4 * 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,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003174/0.5946, allocations: 169.7 kB / 0.5441 GB, free: 58.02 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004436/0.5991, allocations: 3.44 MB / 0.5475 GB, free: 54.58 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/0.5991, allocations: 0 / 0.5475 GB, free: 54.58 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00131/0.6004, allocations: 1.161 MB / 0.5486 GB, free: 53.41 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001772/0.6022, allocations: 403.3 kB / 0.549 GB, free: 53.04 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00872/0.6109, allocations: 6.68 MB / 0.5555 GB, free: 46.29 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002034/0.613, allocations: 2.615 MB / 0.558 GB, free: 43.64 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002405/0.6154, allocations: 1.271 MB / 0.5593 GB, free: 42.37 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003613/0.6158, allocations: 171.4 kB / 0.5595 GB, free: 42.2 MB / 382.1 MB Notification: Performance of SimCode: time 8.42e-07/0.6158, allocations: 0 / 0.5595 GB, free: 42.2 MB / 382.1 MB Notification: Performance of Templates: time 0.03934/0.6552, allocations: 25.12 MB / 0.584 GB, free: 17.29 MB / 382.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.sim & ./PlanarMechanics_PlanarMechanics.Examples.DoublePendulum -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe 2>&1)