Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.Pendulum.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.Pendulum,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.Pendulum") translateModel(PlanarMechanics.Examples.Pendulum,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.Pendulum") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001352/0.001352, allocations: 100.4 kB / 16.27 MB, free: 5.969 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.001503/0.001503, allocations: 191.3 kB / 17.2 MB, free: 5.598 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.387/1.387, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04574/0.04574, allocations: 9.12 MB / 300.2 MB, free: 5.836 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001254, allocations: 67.89 kB / 362.6 MB, free: 7.359 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.184/0.1852, allocations: 51.41 MB / 414 MB, free: 25.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.Pendulum): time 0.005576/0.1909, allocations: 7.018 MB / 421 MB, free: 17.97 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003351/0.1942, allocations: 2.353 MB / 423.4 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005015/0.1948, allocations: 31.94 kB / 423.4 MB, free: 15.58 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000563/0.1953, allocations: 302.1 kB / 423.7 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00195/0.1974, allocations: 1.272 MB / 425 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002143/0.1976, allocations: 83.83 kB / 425.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001452/0.199, allocations: 2.155 MB / 427.2 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005819/0.1996, allocations: 0.7076 MB / 427.9 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005223/0.2002, allocations: 0.7587 MB / 428.7 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008989/0.2011, allocations: 1.125 MB / 429.8 MB, free: 9.156 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002382/0.2013, allocations: 200 kB / 430 MB, free: 8.961 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009744/0.2023, allocations: 0.7996 MB / 430.8 MB, free: 8.16 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005504/0.2029, allocations: 1.064 MB / 431.9 MB, free: 7.094 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000796/0.2037, allocations: 1.355 MB / 433.2 MB, free: 5.73 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002561/0.2063, allocations: 4.272 MB / 437.5 MB, free: 1.445 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.616e-06/0.2063, allocations: 0 / 437.5 MB, free: 1.445 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2063, allocations: 0 / 437.5 MB, free: 1.445 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.345e-05/0.2063, allocations: 0 / 437.5 MB, free: 1.445 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: 1017 * Number of variables: 1017 Notification: Performance of Generate backend data structure: time 0.00604/0.2124, allocations: 3.356 MB / 440.9 MB, free: 14.03 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.573e-05/0.2124, allocations: 8.031 kB / 440.9 MB, free: 14.02 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006544/0.219, allocations: 1.717 MB / 442.6 MB, free: 12.3 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002015/0.221, allocations: 1.197 MB / 443.8 MB, free: 11.06 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.596e-05/0.2211, allocations: 127.3 kB / 443.9 MB, free: 10.93 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003385/0.2215, allocations: 156.2 kB / 444.1 MB, free: 10.78 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009927/0.2314, allocations: 7.208 MB / 451.3 MB, free: 3.285 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.101e-05/0.2315, allocations: 19.81 kB / 451.3 MB, free: 3.266 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002524/0.2318, allocations: 79.88 kB / 451.4 MB, free: 3.188 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002804/0.2346, allocations: 1.734 MB / 453.1 MB, free: 1.449 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01128/0.2459, allocations: 6.584 MB / 459.7 MB, free: 10.85 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02777/0.2737, allocations: 21.18 MB / 480.9 MB, free: 5.238 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003991/0.2777, allocations: 2.015 MB / 482.9 MB, free: 3.102 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001044/0.2788, allocations: 0.6928 MB / 483.6 MB, free: 2.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004655/0.2834, allocations: 3.266 MB / 486.8 MB, free: 14.87 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.961e-05/0.2835, allocations: 43.16 kB / 486.9 MB, free: 14.82 MB / 366.1 MB Notification: Performance of pre-optimization done (n=106): time 2.986e-06/0.2835, allocations: 0 / 486.9 MB, free: 14.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=120): time 0.01095/0.2945, allocations: 5.527 MB / 492.4 MB, free: 9.195 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.654e-05/0.2945, allocations: 72.33 kB / 492.5 MB, free: 9.113 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003515/0.2981, allocations: 2.266 MB / 494.8 MB, free: 6.801 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.674e-05/0.2982, allocations: 41.7 kB / 494.8 MB, free: 6.754 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001257/0.2994, allocations: 1.833 MB / 496.6 MB, free: 4.891 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000394/0.2998, allocations: 461.9 kB / 497.1 MB, free: 4.434 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009103/0.3008, allocations: 0.6551 MB / 497.7 MB, free: 3.77 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001082/0.3009, allocations: 309.1 kB / 498 MB, free: 3.465 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001817/0.3027, allocations: 1.103 MB / 499.1 MB, free: 2.359 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002882/0.3056, allocations: 2.962 MB / 0.4903 GB, free: 14.48 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004793/0.3104, allocations: 4.376 MB / 0.4946 GB, free: 9.188 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.07e-05/0.3104, allocations: 16 kB / 0.4946 GB, free: 9.172 MB / 382.1 MB Notification: Performance of matching and sorting (n=430) (initialization): time 0.0067/0.3172, allocations: 4.142 MB / 0.4987 GB, free: 5.02 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.217e-05/0.3172, allocations: 35.94 kB / 0.4987 GB, free: 4.984 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.294e-05/0.3173, allocations: 64 kB / 0.4988 GB, free: 4.922 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004977/0.3178, allocations: 200.8 kB / 0.499 GB, free: 4.723 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002164/0.32, allocations: 0.7294 MB / 0.4997 GB, free: 3.992 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002953/0.323, allocations: 2.702 MB / 0.5023 GB, free: 1.141 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002117/0.3251, allocations: 164 kB / 0.5025 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003493/0.3255, allocations: 196 kB / 0.5026 GB, free: 0.7891 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 298 * Number of states: 0 () * Number of discrete variables: 9 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[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 (395): * Single equations (assignments): 390 * 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 {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.1455/0.471, allocations: 1.43 MB / 0.504 GB, free: 86.72 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003458/0.4713, allocations: 184.3 kB / 0.5042 GB, free: 86.72 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002789/0.4741, allocations: 1.622 MB / 0.5058 GB, free: 86.41 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001053/0.4743, allocations: 27.02 kB / 0.5058 GB, free: 86.41 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.4743, allocations: 5.344 kB / 0.5058 GB, free: 86.41 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.314e-05/0.4743, allocations: 4.125 kB / 0.5058 GB, free: 86.41 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007608/0.4819, allocations: 4.876 MB / 0.5106 GB, free: 84.54 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.134e-05/0.4819, allocations: 2.781 kB / 0.5106 GB, free: 84.54 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006735/0.4826, allocations: 165.2 kB / 0.5108 GB, free: 84.53 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003407/0.483, allocations: 121.7 kB / 0.5109 GB, free: 84.5 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.514e-05/0.4831, allocations: 24.22 kB / 0.5109 GB, free: 84.49 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001666/0.4848, allocations: 2.167 MB / 0.513 GB, free: 82.84 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.4848, allocations: 3.938 kB / 0.513 GB, free: 82.84 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003038/0.4878, allocations: 2.552 MB / 0.5155 GB, free: 81.84 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004628/0.4883, allocations: 262.8 kB / 0.5158 GB, free: 81.72 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003086/0.4886, allocations: 19.56 kB / 0.5158 GB, free: 81.71 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007366/0.4894, allocations: 57.06 kB / 0.5158 GB, free: 81.7 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001277/0.4895, allocations: 69.3 kB / 0.5159 GB, free: 81.69 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.84e-05/0.4896, allocations: 41.78 kB / 0.5159 GB, free: 81.68 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001943/0.4915, allocations: 1.475 MB / 0.5174 GB, free: 81.11 MB / 382.1 MB Notification: Performance of sort global known variables: time 9.82e-07/0.4915, allocations: 0 / 0.5174 GB, free: 81.11 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002334/0.4939, allocations: 0.5732 MB / 0.5179 GB, free: 81.04 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (revolute.phi,revolute.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 (88): * Single equations (assignments): 83 * 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 {(1,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002953/0.4942, allocations: 142.7 kB / 0.5181 GB, free: 80.93 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004652/0.4989, allocations: 3.456 MB / 0.5215 GB, free: 79.19 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.671e-06/0.4989, allocations: 0 / 0.5215 GB, free: 79.19 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009684/0.4999, allocations: 0.8241 MB / 0.5223 GB, free: 78.45 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001619/0.5015, allocations: 345.4 kB / 0.5226 GB, free: 78.19 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007926/0.5094, allocations: 5.909 MB / 0.5284 GB, free: 72.78 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002039/0.5115, allocations: 2.364 MB / 0.5307 GB, free: 70.58 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005049/0.512, allocations: 171.4 kB / 0.5308 GB, free: 70.41 MB / 382.1 MB Notification: Performance of SimCode: time 6.51e-07/0.512, allocations: 4 kB / 0.5308 GB, free: 70.41 MB / 382.1 MB Notification: Performance of Templates: time 0.04537/0.5574, allocations: 49.33 MB / 0.579 GB, free: 21.18 MB / 382.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.Pendulum.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.Pendulum.sim & ./PlanarMechanics_PlanarMechanics.Examples.Pendulum -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe 2>&1)