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.001/0.001, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.007893/0.007893, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.516/1.516, allocations: 223.3 MB / 240.3 MB, free: 5.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1883/0.1883, allocations: 9.121 MB / 300.5 MB, free: 2.664 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003252/0.0003254, allocations: 8 kB / 363.7 MB, free: 12.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1277/0.1281, allocations: 52.42 MB / 416.1 MB, free: 8.184 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.Pendulum): time 0.2411/0.3692, allocations: 17.59 MB / 433.7 MB, free: 33.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01034/0.3796, allocations: 4.41 MB / 438.1 MB, free: 31.54 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004099/0.3837, allocations: 65.5 kB / 438.2 MB, free: 31.53 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009366/0.3847, allocations: 261.4 kB / 438.5 MB, free: 31.47 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003608/0.3883, allocations: 1.197 MB / 439.7 MB, free: 31.14 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003478/0.3887, allocations: 68.14 kB / 439.7 MB, free: 31.13 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002991/0.3917, allocations: 3.032 MB / 442.8 MB, free: 30.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008596/0.3925, allocations: 0.6503 MB / 443.4 MB, free: 30.38 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007591/0.3933, allocations: 0.6172 MB / 444 MB, free: 30.14 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001332/0.3946, allocations: 1.131 MB / 445.2 MB, free: 29.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002569/0.3949, allocations: 108.6 kB / 445.3 MB, free: 29.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001407/0.3963, allocations: 0.752 MB / 446 MB, free: 29.58 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007944/0.3971, allocations: 0.9943 MB / 447 MB, free: 29.24 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009862/0.3981, allocations: 1.302 MB / 448.3 MB, free: 28.28 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003573/0.4017, allocations: 4.049 MB / 452.4 MB, free: 27.06 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.582e-06/0.4017, allocations: 3.406 kB / 452.4 MB, free: 27.06 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.285e-06/0.4017, allocations: 0 / 452.4 MB, free: 27.06 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.136e-05/0.4018, allocations: 1.594 kB / 452.4 MB, free: 27.06 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.006203/0.408, allocations: 2.809 MB / 455.2 MB, free: 25.59 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.932e-05/0.4081, allocations: 9.906 kB / 455.2 MB, free: 25.59 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006407/0.4145, allocations: 1.75 MB / 456.9 MB, free: 25.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002197/0.4167, allocations: 1.199 MB / 458.1 MB, free: 24.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.037e-05/0.4168, allocations: 123.2 kB / 458.2 MB, free: 24.49 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003656/0.4172, allocations: 157.3 kB / 458.4 MB, free: 24.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0101/0.4273, allocations: 7.207 MB / 465.6 MB, free: 21.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.584e-05/0.4274, allocations: 22.66 kB / 465.6 MB, free: 21.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002596/0.4277, allocations: 76.56 kB / 465.7 MB, free: 21.2 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003325/0.431, allocations: 1.737 MB / 467.4 MB, free: 20.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01465/0.4457, allocations: 6.586 MB / 474 MB, free: 18.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03401/0.4797, allocations: 21.19 MB / 495.2 MB, free: 3.785 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003586/0.4834, allocations: 2.025 MB / 497.2 MB, free: 1.734 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008383/0.4842, allocations: 0.6753 MB / 497.9 MB, free: 1.059 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004658/0.4889, allocations: 3.278 MB / 0.4895 GB, free: 13.51 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.896e-05/0.4889, allocations: 43.16 kB / 0.4895 GB, free: 13.46 MB / 366.1 MB Notification: Performance of pre-optimization done (n=106): time 3.797e-06/0.489, allocations: 0 / 0.4895 GB, free: 13.46 MB / 366.1 MB Notification: Performance of matching and sorting (n=120): time 0.01137/0.5003, allocations: 5.528 MB / 0.4949 GB, free: 7.836 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.233e-05/0.5004, allocations: 60.41 kB / 0.495 GB, free: 7.766 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003392/0.5038, allocations: 2.277 MB / 0.4972 GB, free: 5.441 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.242e-05/0.5039, allocations: 41.69 kB / 0.4972 GB, free: 5.395 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001175/0.5051, allocations: 1.833 MB / 0.499 GB, free: 3.531 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003796/0.5055, allocations: 453.9 kB / 0.4994 GB, free: 3.082 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003652/0.5059, allocations: 272.8 kB / 0.4997 GB, free: 2.809 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001052/0.506, allocations: 309.1 kB / 0.5 GB, free: 2.504 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001746/0.5077, allocations: 1.092 MB / 0.5011 GB, free: 1.41 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00292/0.5107, allocations: 2.97 MB / 0.504 GB, free: 13.52 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005278/0.516, allocations: 4.381 MB / 0.5082 GB, free: 8.227 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-05/0.516, allocations: 19.94 kB / 0.5083 GB, free: 8.207 MB / 382.1 MB Notification: Performance of matching and sorting (n=430) (initialization): time 0.007376/0.5234, allocations: 4.131 MB / 0.5123 GB, free: 4.066 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.392e-05/0.5235, allocations: 35.94 kB / 0.5123 GB, free: 4.031 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.656e-05/0.5235, allocations: 64 kB / 0.5124 GB, free: 3.969 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005197/0.5241, allocations: 204.7 kB / 0.5126 GB, free: 3.766 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002445/0.5265, allocations: 0.7213 MB / 0.5133 GB, free: 3.043 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003024/0.5296, allocations: 2.487 MB / 0.5157 GB, free: 428 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002283/0.5319, allocations: 163.9 kB / 0.5159 GB, free: 264 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002719/0.5321, allocations: 200 kB / 0.5161 GB, free: 64 kB / 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.002677/0.5348, allocations: 1.425 MB / 0.5175 GB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003289/0.5352, allocations: 185.7 kB / 0.5176 GB, free: 14.44 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002872/0.5381, allocations: 1.615 MB / 0.5192 GB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001023/0.5382, allocations: 23.98 kB / 0.5192 GB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.947e-06/0.5382, allocations: 7.922 kB / 0.5192 GB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.269e-05/0.5382, allocations: 7.984 kB / 0.5192 GB, free: 12.78 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008459/0.5467, allocations: 4.877 MB / 0.524 GB, free: 7.785 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.967e-06/0.5467, allocations: 8.031 kB / 0.524 GB, free: 7.777 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000657/0.5474, allocations: 159.7 kB / 0.5242 GB, free: 7.621 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003483/0.5477, allocations: 120.7 kB / 0.5243 GB, free: 7.5 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.818e-05/0.5478, allocations: 20 kB / 0.5243 GB, free: 7.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00232/0.5501, allocations: 1.999 MB / 0.5263 GB, free: 5.344 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.5501, allocations: 4.031 kB / 0.5263 GB, free: 5.34 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004102/0.5543, allocations: 2.56 MB / 0.5288 GB, free: 2.723 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000644/0.5549, allocations: 278.6 kB / 0.529 GB, free: 2.43 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001902/0.5551, allocations: 16 kB / 0.529 GB, free: 2.414 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006587/0.5558, allocations: 56 kB / 0.5291 GB, free: 2.359 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001385/0.5559, allocations: 72.78 kB / 0.5292 GB, free: 2.289 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.277e-05/0.556, allocations: 32 kB / 0.5292 GB, free: 2.258 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002316/0.5583, allocations: 1.476 MB / 0.5306 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of sort global known variables: time 5.41e-07/0.5583, allocations: 0 / 0.5306 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002634/0.561, allocations: 0.5702 MB / 0.5312 GB, free: 192 kB / 398.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.0003223/0.5613, allocations: 147.6 kB / 0.5313 GB, free: 36 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004492/0.5658, allocations: 2.642 MB / 0.5339 GB, free: 13.39 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.5658, allocations: 384 / 0.5339 GB, free: 13.39 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001165/0.567, allocations: 0.8168 MB / 0.5347 GB, free: 12.56 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00247/0.5695, allocations: 319.6 kB / 0.535 GB, free: 12.26 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01147/0.581, allocations: 6.96 MB / 0.5418 GB, free: 5.242 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002869/0.5839, allocations: 2.358 MB / 0.5441 GB, free: 2.848 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002919/0.5868, allocations: 1.036 MB / 0.5451 GB, free: 1.809 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003564/0.5872, allocations: 147.4 kB / 0.5453 GB, free: 1.664 MB / 414.1 MB Notification: Performance of SimCode: time 1.263e-06/0.5872, allocations: 0 / 0.5453 GB, free: 1.664 MB / 414.1 MB Notification: Performance of Templates: time 0.04168/0.6289, allocations: 20.4 MB / 0.5652 GB, free: 13.39 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)