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.001173/0.001173, allocations: 95.92 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.009296/0.009296, allocations: 170.9 kB / 16.27 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.4/1.4, allocations: 223.3 MB / 240.3 MB, free: 5.238 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1661/0.1661, allocations: 9.114 MB / 300.5 MB, free: 2.801 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003497/0.0003497, allocations: 12 kB / 363.7 MB, free: 12.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1102, allocations: 52.44 MB / 416.2 MB, free: 8.18 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDamperDemo): time 0.2221/0.3323, allocations: 18.7 MB / 434.9 MB, free: 32.46 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009486/0.3419, allocations: 4.579 MB / 439.4 MB, free: 30.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003352/0.3452, allocations: 66.19 kB / 439.5 MB, free: 30.83 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009577/0.3462, allocations: 298.7 kB / 439.8 MB, free: 30.76 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002677/0.3489, allocations: 1.237 MB / 441 MB, free: 30.4 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003393/0.3493, allocations: 99.88 kB / 441.1 MB, free: 30.39 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002667/0.3519, allocations: 3.414 MB / 444.5 MB, free: 29.54 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008737/0.3528, allocations: 0.7352 MB / 445.3 MB, free: 29.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008493/0.3537, allocations: 0.7118 MB / 446 MB, free: 28.99 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001288/0.355, allocations: 1.271 MB / 447.3 MB, free: 28.56 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000293/0.3553, allocations: 123.7 kB / 447.4 MB, free: 28.56 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001203/0.3565, allocations: 0.7548 MB / 448.1 MB, free: 28.37 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007491/0.3573, allocations: 1.141 MB / 449.3 MB, free: 27.97 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009368/0.3582, allocations: 1.477 MB / 450.8 MB, free: 26.89 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003339/0.3616, allocations: 4.468 MB / 455.2 MB, free: 25.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.3616, allocations: 0.6562 kB / 455.2 MB, free: 25.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.3616, allocations: 0 / 455.2 MB, free: 25.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001062/0.3617, allocations: 3.25 kB / 455.2 MB, free: 25.52 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.004916/0.3666, allocations: 2.65 MB / 457.9 MB, free: 23.89 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.476e-05/0.3667, allocations: 10.22 kB / 457.9 MB, free: 23.89 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006791/0.3735, allocations: 1.81 MB / 459.7 MB, free: 23.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004023/0.3776, allocations: 1.3 MB / 461 MB, free: 22.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001713/0.3778, allocations: 144.4 kB / 461.1 MB, free: 22.69 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006441/0.3784, allocations: 185.3 kB / 461.3 MB, free: 22.62 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01125/0.3897, allocations: 8.06 MB / 469.4 MB, free: 19.05 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.95e-05/0.3898, allocations: 25.59 kB / 469.4 MB, free: 19.03 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002645/0.3901, allocations: 88.61 kB / 469.5 MB, free: 18.97 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003458/0.3935, allocations: 1.999 MB / 471.5 MB, free: 18.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01584/0.4094, allocations: 7.138 MB / 478.6 MB, free: 16.13 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03619/0.4456, allocations: 24.16 MB / 0.491 GB, free: 12.18 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004685/0.4504, allocations: 2.156 MB / 0.4931 GB, free: 9.895 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001157/0.4515, allocations: 0.7219 MB / 0.4938 GB, free: 9.172 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005817/0.4574, allocations: 3.983 MB / 0.4977 GB, free: 4.844 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.666e-05/0.4574, allocations: 43.5 kB / 0.4978 GB, free: 4.793 MB / 366.1 MB Notification: Performance of pre-optimization done (n=114): time 3.466e-06/0.4574, allocations: 7.938 kB / 0.4978 GB, free: 4.785 MB / 366.1 MB Notification: Performance of matching and sorting (n=117): time 0.009694/0.4671, allocations: 4.37 MB / 0.502 GB, free: 368 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.652e-05/0.4672, allocations: 60.41 kB / 0.5021 GB, free: 296 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004777/0.472, allocations: 2.585 MB / 0.5046 GB, free: 13.67 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001927/0.4723, allocations: 45.69 kB / 0.5047 GB, free: 13.62 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001568/0.4738, allocations: 2.115 MB / 0.5067 GB, free: 11.47 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005418/0.4744, allocations: 458.1 kB / 0.5072 GB, free: 11.02 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005448/0.4749, allocations: 313.8 kB / 0.5075 GB, free: 10.71 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001097/0.4751, allocations: 301.1 kB / 0.5077 GB, free: 10.41 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002279/0.4774, allocations: 1.163 MB / 0.5089 GB, free: 9.246 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003857/0.4812, allocations: 3.324 MB / 0.5121 GB, free: 4.859 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006146/0.4874, allocations: 4.798 MB / 0.5168 GB, free: 15 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.401e-05/0.4875, allocations: 24 kB / 0.5168 GB, free: 14.98 MB / 398.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.008801/0.4963, allocations: 4.417 MB / 0.5211 GB, free: 10.56 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.589e-05/0.4964, allocations: 36 kB / 0.5212 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001346/0.4966, allocations: 84.12 kB / 0.5213 GB, free: 10.44 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001246/0.4967, allocations: 104 kB / 0.5214 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0028/0.4995, allocations: 0.8422 MB / 0.5222 GB, free: 9.496 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001453/0.4997, allocations: 155.4 kB / 0.5223 GB, free: 9.344 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002604/0.5023, allocations: 175.9 kB / 0.5225 GB, free: 9.172 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004936/0.5028, allocations: 228 kB / 0.5227 GB, free: 8.949 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.002842/0.5057, allocations: 1.572 MB / 0.5242 GB, free: 7.367 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004124/0.5061, allocations: 209.3 kB / 0.5244 GB, free: 7.16 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002659/0.5087, allocations: 1.406 MB / 0.5258 GB, free: 5.746 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001269/0.5089, allocations: 31.98 kB / 0.5259 GB, free: 5.715 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.027e-05/0.5089, allocations: 0 / 0.5259 GB, free: 5.715 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.179e-05/0.5089, allocations: 3.984 kB / 0.5259 GB, free: 5.711 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008724/0.5177, allocations: 4.79 MB / 0.5305 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-05/0.5177, allocations: 8 kB / 0.5305 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008076/0.5185, allocations: 183.7 kB / 0.5307 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.313e-05/0.5185, allocations: 8 kB / 0.5307 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.983e-05/0.5186, allocations: 31.98 kB / 0.5308 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-05/0.5186, allocations: 8 kB / 0.5308 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/0.5186, allocations: 7.938 kB / 0.5308 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003297/0.5219, allocations: 2.362 MB / 0.5331 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006104/0.5226, allocations: 306.7 kB / 0.5334 GB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003492/0.5229, allocations: 24 kB / 0.5334 GB, free: 13.75 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008656/0.5238, allocations: 51.95 kB / 0.5334 GB, free: 13.7 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001265/0.5239, allocations: 84.25 kB / 0.5335 GB, free: 13.62 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.496e-05/0.524, allocations: 43.98 kB / 0.5336 GB, free: 13.57 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002869/0.5269, allocations: 1.655 MB / 0.5352 GB, free: 11.9 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.5269, allocations: 0 / 0.5352 GB, free: 11.9 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002998/0.5299, allocations: 0.6249 MB / 0.5358 GB, free: 11.28 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.0003703/0.5303, allocations: 155.6 kB / 0.5359 GB, free: 11.11 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004517/0.5348, allocations: 2.61 MB / 0.5385 GB, free: 8.52 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.7e-06/0.5349, allocations: 0.5625 kB / 0.5385 GB, free: 8.52 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001008/0.5359, allocations: 0.6324 MB / 0.5391 GB, free: 7.883 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003402/0.5393, allocations: 356.2 kB / 0.5394 GB, free: 7.543 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01237/0.5517, allocations: 8.081 MB / 0.5473 GB, free: 15.37 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003336/0.5551, allocations: 2.559 MB / 0.5498 GB, free: 12.78 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003108/0.5582, allocations: 1.117 MB / 0.5509 GB, free: 11.66 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004394/0.5586, allocations: 167.4 kB / 0.5511 GB, free: 11.5 MB / 430.1 MB Notification: Performance of SimCode: time 1.072e-06/0.5587, allocations: 0 / 0.5511 GB, free: 11.5 MB / 430.1 MB Notification: Performance of Templates: time 0.04307/0.6017, allocations: 21.43 MB / 0.572 GB, free: 6.207 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)