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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/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) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001187/0.001187, allocations: 182.1 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.259/1.259, allocations: 222.9 MB / 239.6 MB, free: 11.01 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009584/0.0009584, allocations: 99.56 kB / 289.9 MB, free: 10.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04074/0.04074, allocations: 8.948 MB / 349 MB, free: 36 kB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001044/0.001044, allocations: 52.27 kB / 411.1 MB, free: 57.09 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08701/0.08807, allocations: 51.39 MB / 462.5 MB, free: 5.738 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.DoublePendulum): time 0.2118/0.2999, allocations: 30.92 MB / 493.4 MB, free: 10.68 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01424/0.3142, allocations: 6.79 MB / 0.4885 GB, free: 8.176 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006883/0.3211, allocations: 115.7 kB / 0.4886 GB, free: 8.16 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00138/0.3225, allocations: 313.2 kB / 0.4889 GB, free: 8.047 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003979/0.3265, allocations: 1.325 MB / 0.4902 GB, free: 7.582 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005995/0.3271, allocations: 115 kB / 0.4903 GB, free: 7.523 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.004681/0.3318, allocations: 3.568 MB / 0.4938 GB, free: 6.434 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001288/0.3331, allocations: 0.8391 MB / 0.4946 GB, free: 6.113 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001419/0.3346, allocations: 0.7721 MB / 0.4954 GB, free: 5.836 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002046/0.3366, allocations: 1.327 MB / 0.4967 GB, free: 5.227 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005743/0.3372, allocations: 137.5 kB / 0.4968 GB, free: 5.227 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001803/0.339, allocations: 0.776 MB / 0.4975 GB, free: 4.895 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001248/0.3403, allocations: 1.152 MB / 0.4987 GB, free: 4.266 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001583/0.3419, allocations: 1.495 MB / 0.5001 GB, free: 3.125 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004045/0.3459, allocations: 4.639 MB / 0.5047 GB, free: 84 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.346, allocations: 0 / 0.5047 GB, free: 84 kB / 314.7 MB Notification: Performance of FrontEnd: time 9.31e-07/0.346, allocations: 1.875 kB / 0.5047 GB, free: 84 kB / 314.7 MB Notification: Performance of Transformations before backend: time 7.411e-05/0.3461, allocations: 4 kB / 0.5047 GB, free: 80 kB / 314.7 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.009476/0.3555, allocations: 4.348 MB / 0.5089 GB, free: 13.21 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.429e-05/0.3556, allocations: 8.031 kB / 0.5089 GB, free: 13.21 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006309/0.3619, allocations: 1.77 MB / 0.5106 GB, free: 11.43 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002669/0.3646, allocations: 1.355 MB / 0.512 GB, free: 10.05 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.965e-05/0.3647, allocations: 147.3 kB / 0.5121 GB, free: 9.938 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003977/0.3651, allocations: 211.2 kB / 0.5123 GB, free: 9.766 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01282/0.3779, allocations: 8.257 MB / 0.5204 GB, free: 1.227 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.199e-05/0.3781, allocations: 23.81 kB / 0.5204 GB, free: 1.203 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002851/0.3784, allocations: 89.98 kB / 0.5205 GB, free: 1.148 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003042/0.3814, allocations: 1.899 MB / 0.5223 GB, free: 15.26 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01388/0.3953, allocations: 7.433 MB / 0.5296 GB, free: 7.812 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03648/0.4319, allocations: 25.6 MB / 0.5546 GB, free: 13.84 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006088/0.438, allocations: 2.619 MB / 0.5572 GB, free: 11.11 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001479/0.4395, allocations: 0.9079 MB / 0.558 GB, free: 10.2 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007248/0.4468, allocations: 5.098 MB / 0.563 GB, free: 4.613 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.151e-05/0.4469, allocations: 43.56 kB / 0.5631 GB, free: 4.562 MB / 378.7 MB Notification: Performance of pre-optimization done (n=148): time 4.127e-06/0.4469, allocations: 0 / 0.5631 GB, free: 4.562 MB / 378.7 MB Notification: Performance of matching and sorting (n=176): time 0.0124/0.4593, allocations: 5.46 MB / 0.5684 GB, free: 15.11 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.318e-05/0.4594, allocations: 72.72 kB / 0.5685 GB, free: 15.03 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00439/0.4638, allocations: 2.614 MB / 0.571 GB, free: 12.38 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000126/0.4639, allocations: 53.64 kB / 0.5711 GB, free: 12.32 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001406/0.4653, allocations: 2.094 MB / 0.5731 GB, free: 10.2 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006116/0.466, allocations: 0.6476 MB / 0.5737 GB, free: 9.547 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001365/0.4673, allocations: 0.8257 MB / 0.5746 GB, free: 8.707 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001009/0.4674, allocations: 301.1 kB / 0.5748 GB, free: 8.41 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0023/0.4698, allocations: 1.374 MB / 0.5762 GB, free: 7.027 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003801/0.4736, allocations: 3.625 MB / 0.5797 GB, free: 2.277 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005732/0.4793, allocations: 5.418 MB / 0.585 GB, free: 11.77 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.593e-05/0.4794, allocations: 24 kB / 0.585 GB, free: 11.74 MB / 410.7 MB Notification: Performance of matching and sorting (n=545) (initialization): time 0.00834/0.4877, allocations: 5.215 MB / 0.5901 GB, free: 6.52 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.336e-05/0.4878, allocations: 47.03 kB / 0.5902 GB, free: 6.477 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.645e-05/0.4879, allocations: 83.98 kB / 0.5903 GB, free: 6.395 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008357/0.4888, allocations: 352.6 kB / 0.5906 GB, free: 6.047 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002572/0.4913, allocations: 0.9203 MB / 0.5915 GB, free: 5.125 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00459/0.4959, allocations: 3.833 MB / 0.5952 GB, free: 1.152 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002452/0.4984, allocations: 215.9 kB / 0.5954 GB, free: 0.9414 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004137/0.4988, allocations: 240 kB / 0.5957 GB, free: 0.707 MB / 410.7 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.002825/0.5017, allocations: 1.607 MB / 0.5972 GB, free: 15.09 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006269/0.5023, allocations: 225.1 kB / 0.5974 GB, free: 14.87 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004348/0.5067, allocations: 2.338 MB / 0.5997 GB, free: 12.51 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001049/0.5068, allocations: 31.98 kB / 0.5998 GB, free: 12.48 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.472e-05/0.5068, allocations: 8 kB / 0.5998 GB, free: 12.47 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.574e-05/0.5068, allocations: 7.969 kB / 0.5998 GB, free: 12.46 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01213/0.519, allocations: 6.501 MB / 0.6061 GB, free: 5.824 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.158e-05/0.519, allocations: 4 kB / 0.6061 GB, free: 5.82 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008891/0.5199, allocations: 236.1 kB / 0.6064 GB, free: 5.59 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006667/0.5206, allocations: 270.2 kB / 0.6066 GB, free: 5.324 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001072/0.5207, allocations: 35.98 kB / 0.6066 GB, free: 5.289 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003726/0.5245, allocations: 3.143 MB / 0.6097 GB, free: 2.016 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.787e-06/0.5245, allocations: 15.92 kB / 0.6097 GB, free: 2 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02294/0.5474, allocations: 15.08 MB / 0.6245 GB, free: 2.57 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005491/0.548, allocations: 310.2 kB / 0.6248 GB, free: 2.246 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004103/0.5484, allocations: 31.94 kB / 0.6248 GB, free: 2.215 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009631/0.5494, allocations: 79.91 kB / 0.6249 GB, free: 2.137 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002518/0.5497, allocations: 101.1 kB / 0.625 GB, free: 2.035 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001153/0.5498, allocations: 47.94 kB / 0.625 GB, free: 1.988 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002841/0.5526, allocations: 1.688 MB / 0.6267 GB, free: 292 kB / 442.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5527, allocations: 0 / 0.6267 GB, free: 292 kB / 442.7 MB Notification: Performance of remove unused functions: time 0.003584/0.5562, allocations: 0.9141 MB / 0.6275 GB, free: 15.37 MB / 458.7 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.0003543/0.5566, allocations: 155.2 kB / 0.6277 GB, free: 15.21 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005267/0.5619, allocations: 3.423 MB / 0.631 GB, free: 11.79 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.628e-06/0.5619, allocations: 0 / 0.631 GB, free: 11.79 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001596/0.5635, allocations: 1.161 MB / 0.6322 GB, free: 10.61 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001824/0.5654, allocations: 373.7 kB / 0.6325 GB, free: 10.25 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01372/0.5791, allocations: 9.605 MB / 0.6419 GB, free: 0.5273 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1759/0.7551, allocations: 2.671 MB / 0.6445 GB, free: 151.2 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003936/0.759, allocations: 1.287 MB / 0.6458 GB, free: 151.1 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000483/0.7595, allocations: 181.3 kB / 0.6459 GB, free: 151.1 MB / 458.7 MB Notification: Performance of SimCode: time 2.024e-06/0.7596, allocations: 0 / 0.6459 GB, free: 151.1 MB / 458.7 MB Notification: Performance of Templates: time 0.04762/0.8072, allocations: 29.39 MB / 0.6746 GB, free: 139.2 MB / 458.7 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 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe 2>&1)