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.005687/0.005687, allocations: 97.59 kB / 15.73 MB, free: 6 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.001294/0.001294, allocations: 186.1 kB / 16.67 MB, free: 5.93 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.459/1.459, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1999/0.1999, allocations: 9.129 MB / 299.7 MB, free: 1.762 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 63.91 kB / 414.6 MB, free: 8.387 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3292/0.3304, allocations: 51.43 MB / 466.1 MB, free: 18.16 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDamperDemo): time 0.01028/0.3408, allocations: 8.183 MB / 474.3 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007388/0.3482, allocations: 2.515 MB / 476.8 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001844/0.3501, allocations: 31.44 kB / 476.8 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001093/0.3512, allocations: 348.2 kB / 477.1 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006088/0.3574, allocations: 1.321 MB / 478.5 MB, free: 9.629 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008014/0.3582, allocations: 123.8 kB / 478.6 MB, free: 9.531 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00402/0.3623, allocations: 2.437 MB / 481 MB, free: 8.129 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001206/0.3635, allocations: 0.808 MB / 481.8 MB, free: 7.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002042/0.3656, allocations: 0.8559 MB / 482.7 MB, free: 7.066 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001728/0.3673, allocations: 1.269 MB / 484 MB, free: 6.285 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004485/0.3678, allocations: 221.5 kB / 484.2 MB, free: 6.285 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00175/0.3695, allocations: 0.8039 MB / 485 MB, free: 5.961 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001055/0.3706, allocations: 1.21 MB / 486.2 MB, free: 5.258 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001374/0.372, allocations: 1.539 MB / 487.7 MB, free: 4.047 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005703/0.3777, allocations: 4.984 MB / 492.7 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.3777, allocations: 0 / 492.7 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.3777, allocations: 1.438 kB / 492.7 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001794/0.3779, allocations: 0 / 492.7 MB, free: 0.6055 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.008553/0.3865, allocations: 3.345 MB / 496.1 MB, free: 14.03 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.446e-05/0.3865, allocations: 12.03 kB / 496.1 MB, free: 14.02 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006771/0.3933, allocations: 1.781 MB / 497.8 MB, free: 12.23 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00291/0.3962, allocations: 1.31 MB / 499.2 MB, free: 10.88 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001303/0.3964, allocations: 139.8 kB / 499.3 MB, free: 10.74 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004337/0.3968, allocations: 184.2 kB / 499.5 MB, free: 10.56 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01332/0.4102, allocations: 8.061 MB / 0.4956 GB, free: 2.137 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.771e-05/0.4103, allocations: 19.81 kB / 0.4957 GB, free: 2.117 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003372/0.4106, allocations: 87.86 kB / 0.4957 GB, free: 2.031 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003363/0.414, allocations: 2.008 MB / 0.4977 GB, free: 20 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01455/0.4286, allocations: 7.141 MB / 0.5047 GB, free: 8.867 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04206/0.4707, allocations: 24.12 MB / 0.5282 GB, free: 268 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005208/0.4759, allocations: 2.161 MB / 0.5303 GB, free: 13.98 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001325/0.4773, allocations: 0.7197 MB / 0.531 GB, free: 13.26 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006411/0.4837, allocations: 3.981 MB / 0.5349 GB, free: 8.926 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.768e-05/0.4838, allocations: 59.44 kB / 0.535 GB, free: 8.859 MB / 414.1 MB Notification: Performance of pre-optimization done (n=114): time 4.749e-06/0.4838, allocations: 0 / 0.535 GB, free: 8.859 MB / 414.1 MB Notification: Performance of matching and sorting (n=117): time 0.01103/0.4949, allocations: 4.422 MB / 0.5393 GB, free: 4.383 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.597e-05/0.495, allocations: 68.34 kB / 0.5394 GB, free: 4.305 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005667/0.5007, allocations: 2.585 MB / 0.5419 GB, free: 1.688 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001579/0.5008, allocations: 41.7 kB / 0.5419 GB, free: 1.641 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001953/0.5028, allocations: 2.195 MB / 0.5441 GB, free: 15.42 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006037/0.5034, allocations: 480.3 kB / 0.5445 GB, free: 14.95 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001479/0.5049, allocations: 0.7584 MB / 0.5453 GB, free: 14.18 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001106/0.505, allocations: 301.1 kB / 0.5456 GB, free: 13.88 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002185/0.5072, allocations: 1.174 MB / 0.5467 GB, free: 12.71 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003559/0.5108, allocations: 3.316 MB / 0.55 GB, free: 8.332 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005859/0.5167, allocations: 4.801 MB / 0.5546 GB, free: 2.473 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.434e-05/0.5168, allocations: 20 kB / 0.5547 GB, free: 2.453 MB / 430.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.008545/0.5253, allocations: 4.431 MB / 0.559 GB, free: 14.02 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.398e-05/0.5254, allocations: 41.84 kB / 0.559 GB, free: 13.98 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001201/0.5256, allocations: 76 kB / 0.5591 GB, free: 13.91 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001212/0.5257, allocations: 100 kB / 0.5592 GB, free: 13.81 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003052/0.5288, allocations: 0.8538 MB / 0.56 GB, free: 12.96 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001437/0.5289, allocations: 147.4 kB / 0.5602 GB, free: 12.81 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002887/0.5318, allocations: 179.9 kB / 0.5603 GB, free: 12.64 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004613/0.5323, allocations: 232.1 kB / 0.5606 GB, free: 12.41 MB / 446.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.003014/0.5353, allocations: 1.575 MB / 0.5621 GB, free: 10.82 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004444/0.5358, allocations: 218.5 kB / 0.5623 GB, free: 10.61 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002705/0.5385, allocations: 1.41 MB / 0.5637 GB, free: 9.184 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001267/0.5386, allocations: 23.98 kB / 0.5637 GB, free: 9.16 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.486e-06/0.5386, allocations: 0 / 0.5637 GB, free: 9.16 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.27e-05/0.5387, allocations: 7.984 kB / 0.5637 GB, free: 9.152 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01015/0.5488, allocations: 4.794 MB / 0.5684 GB, free: 4.219 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.022e-05/0.5489, allocations: 16.09 kB / 0.5684 GB, free: 4.203 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008377/0.5497, allocations: 179.7 kB / 0.5686 GB, free: 4.027 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.79e-05/0.5497, allocations: 8 kB / 0.5686 GB, free: 4.02 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.948e-05/0.5498, allocations: 31.98 kB / 0.5686 GB, free: 3.988 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.896e-05/0.5499, allocations: 8 kB / 0.5686 GB, free: 3.98 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.094e-06/0.5499, allocations: 7.938 kB / 0.5686 GB, free: 3.973 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003427/0.5533, allocations: 2.372 MB / 0.571 GB, free: 1.512 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007821/0.5541, allocations: 303.7 kB / 0.5712 GB, free: 1.195 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000502/0.5546, allocations: 24 kB / 0.5713 GB, free: 1.172 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001025/0.5557, allocations: 51.92 kB / 0.5713 GB, free: 1.121 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001274/0.5558, allocations: 72.39 kB / 0.5714 GB, free: 1.051 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.227e-05/0.5559, allocations: 40 kB / 0.5714 GB, free: 1.012 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003184/0.5591, allocations: 1.659 MB / 0.573 GB, free: 15.34 MB / 462.1 MB Notification: Performance of sort global known variables: time 2e-07/0.5591, allocations: 4 kB / 0.573 GB, free: 15.33 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003891/0.563, allocations: 0.6171 MB / 0.5736 GB, free: 14.71 MB / 462.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.0005383/0.5636, allocations: 158.9 kB / 0.5738 GB, free: 14.55 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004784/0.5684, allocations: 2.627 MB / 0.5764 GB, free: 11.95 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.197e-06/0.5684, allocations: 5.625 kB / 0.5764 GB, free: 11.94 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009919/0.5694, allocations: 0.6409 MB / 0.577 GB, free: 11.3 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00249/0.5719, allocations: 372.3 kB / 0.5774 GB, free: 10.94 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01254/0.5844, allocations: 6.464 MB / 0.5837 GB, free: 4.371 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003773/0.5883, allocations: 2.555 MB / 0.5862 GB, free: 1.785 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002895/0.5912, allocations: 1.121 MB / 0.5873 GB, free: 0.6602 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005076/0.5917, allocations: 155.4 kB / 0.5874 GB, free: 0.5078 MB / 462.1 MB Notification: Performance of SimCode: time 6.11e-07/0.5917, allocations: 0 / 0.5874 GB, free: 0.5078 MB / 462.1 MB Notification: Performance of Templates: time 0.3036/0.8953, allocations: 21.85 MB / 0.6087 GB, free: 105.7 MB / 462.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)