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.00105/0.00105, allocations: 101.9 kB / 16.27 MB, free: 5.871 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.001032/0.001032, allocations: 184.8 kB / 17.19 MB, free: 5.52 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.32/1.32, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04588/0.04588, allocations: 9.112 MB / 300.2 MB, free: 5.918 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001334/0.001334, allocations: 71.88 kB / 362.6 MB, free: 7.441 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1917/0.1931, allocations: 51.42 MB / 414 MB, free: 25.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.DoublePendulum): time 0.00658/0.1997, allocations: 8.446 MB / 422.5 MB, free: 16.54 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00334/0.2031, allocations: 2.599 MB / 425.1 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004381/0.2035, allocations: 39.88 kB / 425.1 MB, free: 13.9 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006054/0.2041, allocations: 369.6 kB / 425.5 MB, free: 13.54 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001914/0.2061, allocations: 1.416 MB / 426.9 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002551/0.2063, allocations: 131.8 kB / 427 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00157/0.2079, allocations: 2.538 MB / 429.6 MB, free: 9.445 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007239/0.2086, allocations: 0.9169 MB / 430.5 MB, free: 8.5 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006354/0.2093, allocations: 0.9027 MB / 431.4 MB, free: 7.594 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001045/0.2103, allocations: 1.315 MB / 432.7 MB, free: 6.273 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002669/0.2106, allocations: 236 kB / 432.9 MB, free: 6.043 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001001/0.2116, allocations: 0.8192 MB / 433.7 MB, free: 5.223 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006467/0.2123, allocations: 1.231 MB / 435 MB, free: 3.988 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008856/0.2132, allocations: 1.584 MB / 436.6 MB, free: 2.395 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003434/0.2166, allocations: 4.794 MB / 441.3 MB, free: 13.59 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.2166, allocations: 0 / 441.3 MB, free: 13.59 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2167, allocations: 0 / 441.3 MB, free: 13.59 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.653e-05/0.2167, allocations: 3.938 kB / 441.4 MB, free: 13.58 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.00891/0.2256, allocations: 4.349 MB / 445.7 MB, free: 9.168 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.549e-05/0.2257, allocations: 8.031 kB / 445.7 MB, free: 9.16 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006474/0.2322, allocations: 1.767 MB / 447.5 MB, free: 7.387 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002066/0.2342, allocations: 1.361 MB / 448.8 MB, free: 5.98 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001093/0.2344, allocations: 148.1 kB / 449 MB, free: 5.836 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003707/0.2347, allocations: 199.8 kB / 449.2 MB, free: 5.641 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01105/0.2458, allocations: 8.255 MB / 457.4 MB, free: 12.99 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.502e-05/0.2459, allocations: 23.72 kB / 457.5 MB, free: 12.97 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002822/0.2462, allocations: 91.88 kB / 457.5 MB, free: 12.88 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00286/0.249, allocations: 1.911 MB / 459.5 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01197/0.261, allocations: 7.418 MB / 466.9 MB, free: 3.535 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02958/0.2906, allocations: 25.62 MB / 492.5 MB, free: 9.395 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006043/0.2967, allocations: 2.621 MB / 495.1 MB, free: 6.652 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001345/0.2981, allocations: 0.9118 MB / 496 MB, free: 5.738 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006193/0.3043, allocations: 5.086 MB / 0.4894 GB, free: 140 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.391e-05/0.3044, allocations: 43.56 kB / 0.4894 GB, free: 88 kB / 366.1 MB Notification: Performance of pre-optimization done (n=148): time 3.386e-06/0.3044, allocations: 4 kB / 0.4894 GB, free: 84 kB / 366.1 MB Notification: Performance of matching and sorting (n=176): time 0.01265/0.317, allocations: 5.464 MB / 0.4947 GB, free: 10.62 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.26e-05/0.3171, allocations: 68.72 kB / 0.4948 GB, free: 10.54 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003627/0.3207, allocations: 2.614 MB / 0.4974 GB, free: 7.898 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.956e-05/0.3208, allocations: 45.7 kB / 0.4974 GB, free: 7.848 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0013/0.3221, allocations: 2.097 MB / 0.4995 GB, free: 5.719 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005074/0.3226, allocations: 0.6437 MB / 0.5001 GB, free: 5.066 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001081/0.3237, allocations: 0.8335 MB / 0.5009 GB, free: 4.219 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.403e-05/0.3238, allocations: 305.1 kB / 0.5012 GB, free: 3.918 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00219/0.326, allocations: 1.371 MB / 0.5025 GB, free: 2.539 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1626/0.4886, allocations: 3.616 MB / 0.5061 GB, free: 85.27 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005273/0.4939, allocations: 5.419 MB / 0.5114 GB, free: 81.18 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.514e-05/0.494, allocations: 23.28 kB / 0.5114 GB, free: 81.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=545) (initialization): time 0.007576/0.5016, allocations: 5.228 MB / 0.5165 GB, free: 79.31 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.04e-05/0.5016, allocations: 40.27 kB / 0.5165 GB, free: 79.31 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.856e-05/0.5017, allocations: 78.03 kB / 0.5166 GB, free: 79.31 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007986/0.5025, allocations: 360.5 kB / 0.5169 GB, free: 79.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002371/0.5049, allocations: 0.9173 MB / 0.5178 GB, free: 79.14 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004001/0.5089, allocations: 4.183 MB / 0.5219 GB, free: 76.6 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002228/0.5111, allocations: 211.1 kB / 0.5221 GB, free: 76.53 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002416/0.5114, allocations: 244.2 kB / 0.5224 GB, free: 76.5 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.001673/0.5131, allocations: 1.594 MB / 0.5239 GB, free: 75.72 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000245/0.5133, allocations: 228.8 kB / 0.5241 GB, free: 75.71 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003093/0.5164, allocations: 2.345 MB / 0.5264 GB, free: 74.41 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.592e-05/0.5165, allocations: 27.8 kB / 0.5264 GB, free: 74.38 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/0.5165, allocations: 11.94 kB / 0.5265 GB, free: 74.37 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.314e-05/0.5166, allocations: 7.5 kB / 0.5265 GB, free: 74.37 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007922/0.5245, allocations: 6.491 MB / 0.5328 GB, free: 68.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.095e-06/0.5245, allocations: 4 kB / 0.5328 GB, free: 68.81 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008347/0.5254, allocations: 244.1 kB / 0.533 GB, free: 68.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005863/0.526, allocations: 259.3 kB / 0.5333 GB, free: 68.32 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.757e-05/0.526, allocations: 43.34 kB / 0.5333 GB, free: 68.28 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003006/0.5291, allocations: 3.412 MB / 0.5367 GB, free: 64.78 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.5291, allocations: 7.938 kB / 0.5367 GB, free: 64.77 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003929/0.533, allocations: 3.609 MB / 0.5402 GB, free: 61.2 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004225/0.5334, allocations: 302.2 kB / 0.5405 GB, free: 60.88 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002591/0.5337, allocations: 32 kB / 0.5405 GB, free: 60.85 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008063/0.5345, allocations: 79.91 kB / 0.5406 GB, free: 60.77 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001665/0.5347, allocations: 109.1 kB / 0.5407 GB, free: 60.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.143e-05/0.5348, allocations: 47.98 kB / 0.5407 GB, free: 60.61 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001884/0.5367, allocations: 1.68 MB / 0.5424 GB, free: 58.92 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5367, allocations: 5.531 kB / 0.5424 GB, free: 58.91 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002593/0.5393, allocations: 0.7207 MB / 0.5431 GB, free: 58.2 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.0002658/0.5396, allocations: 164.9 kB / 0.5432 GB, free: 58.04 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006913/0.5465, allocations: 5.054 MB / 0.5482 GB, free: 53 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.968e-06/0.5465, allocations: 0 / 0.5482 GB, free: 53 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001271/0.5478, allocations: 1.169 MB / 0.5493 GB, free: 51.82 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001706/0.5495, allocations: 393.6 kB / 0.5497 GB, free: 51.45 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008938/0.5585, allocations: 7.133 MB / 0.5567 GB, free: 44.24 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001937/0.5604, allocations: 2.625 MB / 0.5592 GB, free: 41.59 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005496/0.561, allocations: 219.4 kB / 0.5594 GB, free: 41.38 MB / 382.1 MB Notification: Performance of SimCode: time 7.01e-07/0.561, allocations: 3.938 kB / 0.5594 GB, free: 41.37 MB / 382.1 MB Notification: Performance of Templates: time 0.05916/0.6201, allocations: 57.68 MB / 0.6158 GB, free: 15.81 MB / 414.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 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe 2>&1)