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/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/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.001854/0.001855, allocations: 111.1 kB / 16.41 MB, free: 6.027 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.001905/0.001905, allocations: 180.2 kB / 17.34 MB, free: 5.633 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.417/1.417, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04591/0.04591, allocations: 9.117 MB / 300.3 MB, free: 5.852 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001457/0.001457, allocations: 67.89 kB / 415.3 MB, free: 21.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09117/0.09264, allocations: 51.43 MB / 466.7 MB, free: 1.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDamperDemo): time 0.00954/0.1022, allocations: 8.186 MB / 474.9 MB, free: 9.461 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005264/0.1075, allocations: 2.518 MB / 477.4 MB, free: 6.926 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001114/0.1087, allocations: 31.94 kB / 477.5 MB, free: 6.895 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001071/0.1098, allocations: 349.7 kB / 477.8 MB, free: 6.551 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003419/0.1133, allocations: 1.319 MB / 479.1 MB, free: 5.227 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005575/0.1138, allocations: 119.7 kB / 479.3 MB, free: 5.109 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003367/0.1172, allocations: 2.44 MB / 481.7 MB, free: 2.664 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001391/0.1187, allocations: 0.8055 MB / 482.5 MB, free: 1.836 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001517/0.1202, allocations: 0.8637 MB / 483.4 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001914/0.1221, allocations: 1.261 MB / 484.6 MB, free: 15.7 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007255/0.1229, allocations: 220 kB / 484.8 MB, free: 15.49 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001904/0.1248, allocations: 0.8075 MB / 485.6 MB, free: 14.68 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001508/0.1263, allocations: 1.208 MB / 486.9 MB, free: 13.47 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002521/0.1289, allocations: 1.541 MB / 488.4 MB, free: 11.92 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006402/0.1353, allocations: 4.963 MB / 493.4 MB, free: 6.938 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.1353, allocations: 0 / 493.4 MB, free: 6.938 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.083e-06/0.1353, allocations: 0 / 493.4 MB, free: 6.938 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001784/0.1355, allocations: 0 / 493.4 MB, free: 6.938 MB / 366.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.008204/0.1437, allocations: 3.253 MB / 496.6 MB, free: 3.621 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/0.1438, allocations: 15.91 kB / 496.6 MB, free: 3.605 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006869/0.1507, allocations: 1.767 MB / 498.4 MB, free: 1.832 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004164/0.1549, allocations: 1.302 MB / 499.7 MB, free: 496 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002653/0.1552, allocations: 139.8 kB / 499.8 MB, free: 356 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001252/0.1565, allocations: 180.2 kB / 0.4883 GB, free: 176 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02476/0.1813, allocations: 8.061 MB / 0.4962 GB, free: 7.75 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001453/0.1815, allocations: 19.81 kB / 0.4962 GB, free: 7.73 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001064/0.1826, allocations: 95.78 kB / 0.4963 GB, free: 7.637 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006611/0.1892, allocations: 2.004 MB / 0.4982 GB, free: 5.629 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2841/0.4733, allocations: 7.137 MB / 0.5052 GB, free: 39.96 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03224/0.5056, allocations: 24.06 MB / 0.5287 GB, free: 24.3 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004339/0.51, allocations: 2.156 MB / 0.5308 GB, free: 22.9 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001064/0.5111, allocations: 0.7252 MB / 0.5315 GB, free: 22.54 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005036/0.5162, allocations: 3.979 MB / 0.5354 GB, free: 19.21 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.226e-05/0.5162, allocations: 51.45 kB / 0.5354 GB, free: 19.16 MB / 382.1 MB Notification: Performance of pre-optimization done (n=114): time 3.787e-06/0.5162, allocations: 0 / 0.5354 GB, free: 19.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=117): time 0.008297/0.5245, allocations: 4.375 MB / 0.5397 GB, free: 16.79 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.52e-05/0.5246, allocations: 67.12 kB / 0.5398 GB, free: 16.72 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002827/0.5274, allocations: 2.579 MB / 0.5423 GB, free: 15.32 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.637e-05/0.5275, allocations: 37.45 kB / 0.5423 GB, free: 15.28 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007782/0.5283, allocations: 2.112 MB / 0.5444 GB, free: 13.42 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002524/0.5286, allocations: 460 kB / 0.5448 GB, free: 13.05 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007695/0.5294, allocations: 0.7566 MB / 0.5456 GB, free: 12.57 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.361e-05/0.5294, allocations: 301.1 kB / 0.5459 GB, free: 12.27 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001461/0.5309, allocations: 1.167 MB / 0.547 GB, free: 11.1 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002066/0.5329, allocations: 3.325 MB / 0.5502 GB, free: 6.723 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003704/0.5367, allocations: 4.787 MB / 0.5549 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.309e-05/0.5367, allocations: 24 kB / 0.5549 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.006701/0.5434, allocations: 4.427 MB / 0.5593 GB, free: 12.43 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.398e-05/0.5435, allocations: 43.88 kB / 0.5593 GB, free: 12.39 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.132e-05/0.5436, allocations: 76 kB / 0.5594 GB, free: 12.32 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.499e-05/0.5437, allocations: 104 kB / 0.5595 GB, free: 12.21 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002445/0.5461, allocations: 0.8383 MB / 0.5603 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001307/0.5463, allocations: 147.4 kB / 0.5604 GB, free: 11.23 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002204/0.5485, allocations: 179.5 kB / 0.5606 GB, free: 11.06 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002854/0.5488, allocations: 229.1 kB / 0.5608 GB, free: 10.84 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.002107/0.5509, allocations: 1.578 MB / 0.5624 GB, free: 9.25 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003145/0.5512, allocations: 209.2 kB / 0.5626 GB, free: 9.043 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002293/0.5535, allocations: 1.409 MB / 0.5639 GB, free: 7.625 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001254/0.5537, allocations: 23.98 kB / 0.564 GB, free: 7.602 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.5537, allocations: 3.984 kB / 0.564 GB, free: 7.598 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.042e-05/0.5537, allocations: 3.984 kB / 0.564 GB, free: 7.594 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007749/0.5615, allocations: 4.783 MB / 0.5686 GB, free: 2.699 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.047e-06/0.5615, allocations: 8.031 kB / 0.5687 GB, free: 2.691 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008545/0.5624, allocations: 183.7 kB / 0.5688 GB, free: 2.512 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.171e-05/0.5624, allocations: 12 kB / 0.5688 GB, free: 2.5 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.792e-05/0.5625, allocations: 31.61 kB / 0.5689 GB, free: 2.473 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.196e-05/0.5625, allocations: 8.875 kB / 0.5689 GB, free: 2.465 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.034e-06/0.5625, allocations: 11.94 kB / 0.5689 GB, free: 2.453 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003285/0.5658, allocations: 2.365 MB / 0.5712 GB, free: 4 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006927/0.5665, allocations: 290.4 kB / 0.5715 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002653/0.5668, allocations: 27.98 kB / 0.5715 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007458/0.5675, allocations: 47.95 kB / 0.5715 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001129/0.5676, allocations: 78.81 kB / 0.5716 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.315e-05/0.5677, allocations: 45.72 kB / 0.5717 GB, free: 15.51 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002478/0.5702, allocations: 1.655 MB / 0.5733 GB, free: 13.84 MB / 414.1 MB Notification: Performance of sort global known variables: time 2e-07/0.5702, allocations: 4 kB / 0.5733 GB, free: 13.83 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002784/0.573, allocations: 0.6143 MB / 0.5739 GB, free: 13.22 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.0003415/0.5734, allocations: 162.7 kB / 0.574 GB, free: 13.06 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004276/0.5777, allocations: 2.637 MB / 0.5766 GB, free: 10.45 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.683e-06/0.5777, allocations: 1.562 kB / 0.5766 GB, free: 10.45 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009264/0.5786, allocations: 0.6316 MB / 0.5772 GB, free: 9.812 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001942/0.5806, allocations: 381.3 kB / 0.5776 GB, free: 9.453 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01104/0.5916, allocations: 6.733 MB / 0.5842 GB, free: 2.652 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002576/0.5943, allocations: 2.559 MB / 0.5867 GB, free: 64 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007198/0.595, allocations: 203.4 kB / 0.5869 GB, free: 15.86 MB / 430.1 MB Notification: Performance of SimCode: time 9.52e-07/0.595, allocations: 0 / 0.5869 GB, free: 15.86 MB / 430.1 MB Notification: Performance of Templates: time 0.05812/0.6531, allocations: 39.92 MB / 0.6259 GB, free: 8.066 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)