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-master/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/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.001141/0.001141, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001222/0.001222, allocations: 190.3 kB / 16.25 MB, free: 6.629 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.416/1.416, allocations: 222.9 MB / 239.9 MB, free: 4.5 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1794/0.1794, allocations: 9.117 MB / 299.2 MB, free: 1.836 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001528/0.001529, allocations: 67.89 kB / 361.5 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.114, allocations: 51.42 MB / 412.9 MB, free: 9.938 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.Pendulum): time 0.2096/0.3236, allocations: 18.24 MB / 431.1 MB, free: 34.47 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0103/0.3339, allocations: 4.421 MB / 435.6 MB, free: 32.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006275/0.3403, allocations: 66.34 kB / 435.6 MB, free: 32.65 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007887/0.3411, allocations: 264.9 kB / 435.9 MB, free: 32.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002796/0.344, allocations: 1.181 MB / 437.1 MB, free: 32.03 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000251/0.3442, allocations: 68.81 kB / 437.1 MB, free: 31.99 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00151/0.3457, allocations: 2.178 MB / 439.3 MB, free: 31.04 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006489/0.3464, allocations: 0.7222 MB / 440 MB, free: 30.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005268/0.3469, allocations: 0.7577 MB / 440.8 MB, free: 30.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00128/0.3482, allocations: 1.219 MB / 442 MB, free: 29.96 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000304/0.3485, allocations: 202 kB / 442.2 MB, free: 29.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001332/0.3499, allocations: 0.8153 MB / 443 MB, free: 29.78 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008446/0.3507, allocations: 1.068 MB / 444.1 MB, free: 29.36 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001039/0.3518, allocations: 1.369 MB / 445.4 MB, free: 28.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003531/0.3553, allocations: 4.292 MB / 449.7 MB, free: 26.67 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.3554, allocations: 0 / 449.7 MB, free: 26.67 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3554, allocations: 0 / 449.7 MB, free: 26.67 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.717e-05/0.3554, allocations: 0 / 449.7 MB, free: 26.67 MB / 350.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.006571/0.362, allocations: 3.363 MB / 453.1 MB, free: 24.86 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/0.362, allocations: 8.938 kB / 453.1 MB, free: 24.86 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005934/0.368, allocations: 1.711 MB / 454.8 MB, free: 24.6 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00215/0.3702, allocations: 1.199 MB / 456 MB, free: 23.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.765e-05/0.3703, allocations: 125.5 kB / 456.1 MB, free: 23.77 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00032/0.3706, allocations: 158.2 kB / 456.3 MB, free: 23.71 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009762/0.3804, allocations: 7.212 MB / 463.5 MB, free: 20.54 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.877e-05/0.3805, allocations: 19.25 kB / 463.5 MB, free: 20.53 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002453/0.3807, allocations: 76.94 kB / 463.6 MB, free: 20.47 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002819/0.3835, allocations: 1.737 MB / 465.3 MB, free: 20.11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01482/0.3984, allocations: 6.578 MB / 471.9 MB, free: 17.85 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03766/0.4361, allocations: 21.18 MB / 493.1 MB, free: 3.754 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004039/0.4401, allocations: 2.023 MB / 495.1 MB, free: 1.801 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001014/0.4412, allocations: 0.677 MB / 495.8 MB, free: 1.125 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005702/0.4469, allocations: 3.271 MB / 499.1 MB, free: 13.59 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.878e-05/0.447, allocations: 47.14 kB / 499.1 MB, free: 13.53 MB / 366.1 MB Notification: Performance of pre-optimization done (n=106): time 3.767e-06/0.447, allocations: 4 kB / 499.1 MB, free: 13.53 MB / 366.1 MB Notification: Performance of matching and sorting (n=120): time 0.0129/0.4599, allocations: 5.532 MB / 0.4928 GB, free: 7.898 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.931e-05/0.46, allocations: 64.41 kB / 0.4929 GB, free: 7.824 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004529/0.4645, allocations: 2.27 MB / 0.4951 GB, free: 5.508 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001296/0.4647, allocations: 41.7 kB / 0.4951 GB, free: 5.461 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001408/0.4661, allocations: 1.829 MB / 0.4969 GB, free: 3.602 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005043/0.4666, allocations: 461.9 kB / 0.4974 GB, free: 3.145 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001288/0.4679, allocations: 0.6628 MB / 0.498 GB, free: 2.473 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001125/0.468, allocations: 305.1 kB / 0.4983 GB, free: 2.172 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002057/0.4701, allocations: 1.103 MB / 0.4994 GB, free: 1.066 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003703/0.4738, allocations: 2.97 MB / 0.5023 GB, free: 13.17 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00557/0.4794, allocations: 4.365 MB / 0.5065 GB, free: 7.895 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.282e-05/0.4795, allocations: 20 kB / 0.5066 GB, free: 7.875 MB / 382.1 MB Notification: Performance of matching and sorting (n=430) (initialization): time 0.007736/0.4872, allocations: 4.136 MB / 0.5106 GB, free: 3.73 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.607e-05/0.4873, allocations: 39.94 kB / 0.5106 GB, free: 3.691 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001069/0.4875, allocations: 64 kB / 0.5107 GB, free: 3.629 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006128/0.4881, allocations: 209.3 kB / 0.5109 GB, free: 3.422 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002402/0.4905, allocations: 0.7252 MB / 0.5116 GB, free: 2.695 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003298/0.4938, allocations: 2.708 MB / 0.5143 GB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002668/0.4965, allocations: 159.9 kB / 0.5144 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000529/0.497, allocations: 196.5 kB / 0.5146 GB, free: 15.49 MB / 398.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.00317/0.5002, allocations: 1.426 MB / 0.516 GB, free: 14.05 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005753/0.5008, allocations: 185.6 kB / 0.5162 GB, free: 13.87 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003496/0.5043, allocations: 1.619 MB / 0.5177 GB, free: 12.24 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001134/0.5044, allocations: 23.98 kB / 0.5178 GB, free: 12.22 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.277e-05/0.5045, allocations: 7.938 kB / 0.5178 GB, free: 12.21 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.843e-05/0.5045, allocations: 11.91 kB / 0.5178 GB, free: 12.2 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01101/0.5155, allocations: 4.878 MB / 0.5226 GB, free: 7.203 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.015e-05/0.5156, allocations: 352 / 0.5226 GB, free: 7.203 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006726/0.5162, allocations: 159.8 kB / 0.5227 GB, free: 7.047 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003604/0.5166, allocations: 120.7 kB / 0.5228 GB, free: 6.926 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.814e-05/0.5167, allocations: 21.69 kB / 0.5228 GB, free: 6.906 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002226/0.519, allocations: 2.176 MB / 0.525 GB, free: 4.586 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/0.519, allocations: 4.031 kB / 0.525 GB, free: 4.582 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003929/0.5229, allocations: 2.544 MB / 0.5275 GB, free: 1.98 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006448/0.5236, allocations: 266.7 kB / 0.5277 GB, free: 1.699 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004615/0.524, allocations: 27.98 kB / 0.5277 GB, free: 1.672 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009338/0.525, allocations: 55.94 kB / 0.5278 GB, free: 1.617 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000167/0.5252, allocations: 68.11 kB / 0.5279 GB, free: 1.555 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.491e-05/0.5253, allocations: 35.98 kB / 0.5279 GB, free: 1.52 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002992/0.5283, allocations: 1.472 MB / 0.5293 GB, free: 24 kB / 398.1 MB Notification: Performance of sort global known variables: time 5.51e-07/0.5283, allocations: 0 / 0.5293 GB, free: 24 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.00311/0.5314, allocations: 0.5664 MB / 0.5299 GB, free: 15.45 MB / 414.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.0004094/0.5318, allocations: 160.5 kB / 0.53 GB, free: 15.29 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006239/0.5381, allocations: 3.449 MB / 0.5334 GB, free: 11.85 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.515e-06/0.5381, allocations: 0 / 0.5334 GB, free: 11.85 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001288/0.5394, allocations: 0.8253 MB / 0.5342 GB, free: 11.01 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002417/0.5418, allocations: 339.5 kB / 0.5345 GB, free: 10.69 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01288/0.5547, allocations: 6.892 MB / 0.5413 GB, free: 3.738 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003563/0.5583, allocations: 2.352 MB / 0.5436 GB, free: 1.348 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.003019/0.5614, allocations: 1.04 MB / 0.5446 GB, free: 312 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005395/0.5619, allocations: 155.3 kB / 0.5447 GB, free: 156 kB / 414.1 MB Notification: Performance of SimCode: time 8.62e-07/0.5619, allocations: 0 / 0.5447 GB, free: 156 kB / 414.1 MB Notification: Performance of Templates: time 0.04274/0.6047, allocations: 21.31 MB / 0.5655 GB, free: 10.98 MB / 446.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)