Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.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.SpringDamperDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo") translateModel(PlanarMechanics.Examples.SpringDamperDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001172/0.001172, allocations: 94.91 kB / 15.37 MB, free: 0.7266 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.001354/0.001355, allocations: 177.2 kB / 16.27 MB, free: 6.664 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.55/1.55, allocations: 223.3 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1996/0.1996, allocations: 9.115 MB / 300.5 MB, free: 2.75 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003493/0.0003494, allocations: 8 kB / 363.7 MB, free: 12.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1653/0.1656, allocations: 52.44 MB / 416.2 MB, free: 8.199 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDamperDemo): time 0.2393/0.405, allocations: 18.71 MB / 434.9 MB, free: 33 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01008/0.4151, allocations: 4.577 MB / 439.4 MB, free: 31.37 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004409/0.4196, allocations: 67.59 kB / 439.5 MB, free: 31.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001139/0.4207, allocations: 289.5 kB / 439.8 MB, free: 31.29 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004264/0.425, allocations: 1.243 MB / 441 MB, free: 30.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006453/0.4257, allocations: 98.86 kB / 441.1 MB, free: 30.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004947/0.4306, allocations: 3.419 MB / 444.5 MB, free: 29.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001788/0.4325, allocations: 0.7429 MB / 445.3 MB, free: 29.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001197/0.4337, allocations: 0.7121 MB / 446 MB, free: 29.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001565/0.4352, allocations: 1.27 MB / 447.3 MB, free: 28.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002882/0.4355, allocations: 125.6 kB / 447.4 MB, free: 28.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001324/0.4369, allocations: 0.746 MB / 448.1 MB, free: 28.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008856/0.4378, allocations: 1.143 MB / 449.3 MB, free: 28.2 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001244/0.439, allocations: 1.483 MB / 450.8 MB, free: 27.11 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004951/0.444, allocations: 4.469 MB / 455.2 MB, free: 25.73 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.743e-06/0.444, allocations: 0 / 455.2 MB, free: 25.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.4441, allocations: 0 / 455.2 MB, free: 25.73 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001491/0.4442, allocations: 0 / 455.2 MB, free: 25.73 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: 1172 * Number of variables: 1172 Notification: Performance of Generate backend data structure: time 0.005988/0.4502, allocations: 2.652 MB / 457.9 MB, free: 24.11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.607e-05/0.4503, allocations: 10.47 kB / 457.9 MB, free: 24.11 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006929/0.4572, allocations: 1.81 MB / 459.7 MB, free: 23.81 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002419/0.4597, allocations: 1.296 MB / 461 MB, free: 22.98 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.079e-05/0.4598, allocations: 140 kB / 461.1 MB, free: 22.91 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000421/0.4602, allocations: 184.1 kB / 461.3 MB, free: 22.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01135/0.4716, allocations: 8.061 MB / 469.4 MB, free: 19.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.88e-05/0.4717, allocations: 20.14 kB / 469.4 MB, free: 19.26 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002687/0.4719, allocations: 89.45 kB / 469.5 MB, free: 19.2 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003853/0.4758, allocations: 2.006 MB / 471.5 MB, free: 18.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01576/0.4916, allocations: 7.137 MB / 478.6 MB, free: 16.35 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03567/0.5273, allocations: 24.15 MB / 0.491 GB, free: 12.38 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004838/0.5322, allocations: 2.16 MB / 0.4931 GB, free: 10.09 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001223/0.5334, allocations: 0.7218 MB / 0.4938 GB, free: 9.367 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006158/0.5396, allocations: 3.979 MB / 0.4977 GB, free: 5.043 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.751e-05/0.5397, allocations: 47.5 kB / 0.4977 GB, free: 4.988 MB / 366.1 MB Notification: Performance of pre-optimization done (n=114): time 3.576e-06/0.5397, allocations: 0 / 0.4977 GB, free: 4.988 MB / 366.1 MB Notification: Performance of matching and sorting (n=117): time 0.01026/0.55, allocations: 4.389 MB / 0.502 GB, free: 0.543 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.16e-05/0.55, allocations: 60.41 kB / 0.5021 GB, free: 484 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003813/0.5539, allocations: 2.581 MB / 0.5046 GB, free: 13.86 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.454e-05/0.554, allocations: 41.7 kB / 0.5047 GB, free: 13.81 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001432/0.5554, allocations: 2.115 MB / 0.5067 GB, free: 11.66 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004158/0.5558, allocations: 462.1 kB / 0.5072 GB, free: 11.21 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003853/0.5562, allocations: 313.8 kB / 0.5075 GB, free: 10.89 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001019/0.5563, allocations: 305.1 kB / 0.5077 GB, free: 10.59 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001883/0.5582, allocations: 1.167 MB / 0.5089 GB, free: 9.426 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003574/0.5618, allocations: 3.312 MB / 0.5121 GB, free: 5.051 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006195/0.568, allocations: 4.79 MB / 0.5168 GB, free: 15.2 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.493e-05/0.5681, allocations: 24 kB / 0.5168 GB, free: 15.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.007993/0.5761, allocations: 4.429 MB / 0.5211 GB, free: 10.75 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.443e-05/0.5762, allocations: 36 kB / 0.5212 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-05/0.5763, allocations: 76 kB / 0.5213 GB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001126/0.5764, allocations: 100 kB / 0.5213 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002669/0.5791, allocations: 0.8467 MB / 0.5222 GB, free: 9.691 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001239/0.5792, allocations: 155.7 kB / 0.5223 GB, free: 9.539 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002403/0.5816, allocations: 171.9 kB / 0.5225 GB, free: 9.371 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003196/0.582, allocations: 231.9 kB / 0.5227 GB, free: 9.145 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 345 * Number of states: 0 () * Number of discrete variables: 21 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],springDamper.color_b[3],springDamper.color_b[2],springDamper.color_b[1],springDamper.color_a[3],springDamper.color_a[2],springDamper.color_a[1],springDamper.color[3],springDamper.color[2],springDamper.color[1],springDamper.colorConnector_b[3],springDamper.colorConnector_b[2],springDamper.colorConnector_b[1],springDamper.colorConnector_a[3],springDamper.colorConnector_a[2],springDamper.colorConnector_a[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (459): * Single equations (assignments): 454 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00264/0.5846, allocations: 1.572 MB / 0.5242 GB, free: 7.562 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002965/0.5849, allocations: 209.3 kB / 0.5244 GB, free: 7.355 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002437/0.5874, allocations: 1.414 MB / 0.5258 GB, free: 5.934 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001352/0.5875, allocations: 23.98 kB / 0.5258 GB, free: 5.91 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.5875, allocations: 0 / 0.5258 GB, free: 5.91 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.167e-05/0.5876, allocations: 3.984 kB / 0.5259 GB, free: 5.906 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00804/0.5956, allocations: 4.793 MB / 0.5305 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.678e-06/0.5956, allocations: 8 kB / 0.5305 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008293/0.5965, allocations: 183.8 kB / 0.5307 GB, free: 0.793 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-05/0.5965, allocations: 8 kB / 0.5307 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.092e-05/0.5966, allocations: 31.98 kB / 0.5308 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.137e-05/0.5966, allocations: 11.94 kB / 0.5308 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.137e-06/0.5966, allocations: 15.98 kB / 0.5308 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003354/0.6, allocations: 2.362 MB / 0.5331 GB, free: 14.27 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005561/0.6005, allocations: 306.4 kB / 0.5334 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002242/0.6008, allocations: 24 kB / 0.5334 GB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007772/0.6016, allocations: 47.95 kB / 0.5334 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001263/0.6017, allocations: 76.39 kB / 0.5335 GB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.469e-05/0.6018, allocations: 47.97 kB / 0.5336 GB, free: 13.76 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002527/0.6043, allocations: 1.652 MB / 0.5352 GB, free: 12.09 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6043, allocations: 4 kB / 0.5352 GB, free: 12.09 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002796/0.6071, allocations: 0.621 MB / 0.5358 GB, free: 11.47 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 6 (body.r[1],body.r[2],body.v[1],body.v[2],body.phi,body.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 (93): * Single equations (assignments): 88 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003565/0.6075, allocations: 155 kB / 0.5359 GB, free: 11.3 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004298/0.6118, allocations: 2.614 MB / 0.5385 GB, free: 8.707 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.534e-06/0.6118, allocations: 0 / 0.5385 GB, free: 8.707 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009307/0.6128, allocations: 0.6347 MB / 0.5391 GB, free: 8.07 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003399/0.6162, allocations: 360.4 kB / 0.5395 GB, free: 7.727 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01206/0.6283, allocations: 8.081 MB / 0.5473 GB, free: 15.55 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002974/0.6313, allocations: 2.547 MB / 0.5498 GB, free: 12.98 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003212/0.6345, allocations: 1.125 MB / 0.5509 GB, free: 11.85 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000419/0.6349, allocations: 163.4 kB / 0.5511 GB, free: 11.69 MB / 430.1 MB Notification: Performance of SimCode: time 1.323e-06/0.635, allocations: 0 / 0.5511 GB, free: 11.69 MB / 430.1 MB Notification: Performance of Templates: time 0.04143/0.6764, allocations: 21.43 MB / 0.572 GB, free: 6.406 MB / 446.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.sim & ./PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe 2>&1)