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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/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) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001719/0.001719, allocations: 177.2 kB / 15.78 MB, free: 6.352 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.533/2.533, allocations: 223.2 MB / 239.8 MB, free: 20 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001446/0.001446, allocations: 98.62 kB / 290.9 MB, free: 4.531 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.07851/0.07851, allocations: 8.954 MB / 351 MB, free: 4.168 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004321/0.0004321, allocations: 12 kB / 413.8 MB, free: 5.262 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3636/0.3641, allocations: 52.39 MB / 466.2 MB, free: 69.25 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDamperDemo): time 0.01663/0.3808, allocations: 17.47 MB / 483.7 MB, free: 51.74 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.016/0.3969, allocations: 4.387 MB / 488.1 MB, free: 47.33 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006651/0.4036, allocations: 67.88 kB / 488.2 MB, free: 47.27 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00501/0.4087, allocations: 0.8163 MB / 489 MB, free: 46.45 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01309/0.4219, allocations: 2.965 MB / 491.9 MB, free: 43.47 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001768/0.4237, allocations: 99.83 kB / 492 MB, free: 43.37 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.003931/0.4277, allocations: 2.703 MB / 494.7 MB, free: 40.66 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001261/0.429, allocations: 0.7344 MB / 495.5 MB, free: 39.91 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001345/0.4304, allocations: 0.7625 MB / 496.2 MB, free: 39.14 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001534/0.4319, allocations: 1.25 MB / 497.5 MB, free: 37.89 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003642/0.4323, allocations: 124 kB / 497.6 MB, free: 37.77 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001409/0.4337, allocations: 0.6514 MB / 498.3 MB, free: 37.11 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001075/0.4348, allocations: 1.095 MB / 499.4 MB, free: 36.02 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006108/0.4354, allocations: 0.6326 MB / 500 MB, free: 35.38 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003518/0.4389, allocations: 3.64 MB / 0.4918 GB, free: 31.73 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.147e-06/0.439, allocations: 0 / 0.4918 GB, free: 31.73 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.667e-06/0.439, allocations: 4 kB / 0.4918 GB, free: 31.72 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001543/0.4392, allocations: 0 / 0.4918 GB, free: 31.72 MB / 346.7 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.006366/0.4455, allocations: 2.692 MB / 0.4945 GB, free: 28.97 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.1e-05/0.4456, allocations: 8.031 kB / 0.4945 GB, free: 28.96 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006737/0.4523, allocations: 1.813 MB / 0.4962 GB, free: 27.14 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00293/0.4553, allocations: 1.274 MB / 0.4975 GB, free: 25.82 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001177/0.4555, allocations: 143.5 kB / 0.4976 GB, free: 25.68 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004837/0.456, allocations: 187.8 kB / 0.4978 GB, free: 25.5 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01236/0.4683, allocations: 8.041 MB / 0.5056 GB, free: 17.09 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.741e-05/0.4685, allocations: 15.88 kB / 0.5057 GB, free: 17.08 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003156/0.4689, allocations: 91.84 kB / 0.5057 GB, free: 16.99 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003152/0.472, allocations: 2.008 MB / 0.5077 GB, free: 14.98 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01495/0.487, allocations: 7.106 MB / 0.5146 GB, free: 7.859 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05005/0.5371, allocations: 24.14 MB / 0.5382 GB, free: 15.23 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008851/0.546, allocations: 2.147 MB / 0.5403 GB, free: 12.95 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002321/0.5484, allocations: 0.7197 MB / 0.541 GB, free: 12.23 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01109/0.5596, allocations: 3.98 MB / 0.5449 GB, free: 7.898 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.455e-05/0.5597, allocations: 47.55 kB / 0.545 GB, free: 7.844 MB / 378.7 MB Notification: Performance of pre-optimization done (n=114): time 6.892e-06/0.5597, allocations: 0 / 0.545 GB, free: 7.844 MB / 378.7 MB Notification: Performance of matching and sorting (n=117): time 0.01501/0.5747, allocations: 4.358 MB / 0.5492 GB, free: 3.422 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.509e-05/0.5749, allocations: 64.34 kB / 0.5493 GB, free: 3.348 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006468/0.5814, allocations: 2.569 MB / 0.5518 GB, free: 0.7461 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002565/0.5817, allocations: 37.7 kB / 0.5518 GB, free: 0.7031 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.3832/0.9649, allocations: 2.105 MB / 0.5539 GB, free: 86.71 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00102/0.966, allocations: 466.5 kB / 0.5543 GB, free: 86.45 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004951/0.9665, allocations: 70.94 kB / 0.5544 GB, free: 86.45 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000519/0.9671, allocations: 473.2 kB / 0.5548 GB, free: 86.14 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003481/0.9706, allocations: 1.155 MB / 0.556 GB, free: 85.86 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005094/0.9757, allocations: 3.3 MB / 0.5592 GB, free: 82.59 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005999/0.9817, allocations: 1.946 MB / 0.5611 GB, free: 81.81 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001448/0.9819, allocations: 18.91 kB / 0.5611 GB, free: 81.81 MB / 378.7 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.01478/0.9967, allocations: 4.402 MB / 0.5654 GB, free: 80.08 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001879/0.997, allocations: 38.12 kB / 0.5654 GB, free: 80.08 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002277/0.9972, allocations: 75 kB / 0.5655 GB, free: 80.08 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002877/0.9975, allocations: 114.2 kB / 0.5656 GB, free: 80.08 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00582/1.003, allocations: 0.8447 MB / 0.5664 GB, free: 79.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002477/1.004, allocations: 159 kB / 0.5666 GB, free: 79.94 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005858/1.01, allocations: 179.6 kB / 0.5668 GB, free: 79.89 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009869/1.011, allocations: 227.1 kB / 0.567 GB, free: 79.86 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006262/1.017, allocations: 1.564 MB / 0.5685 GB, free: 79.07 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009201/1.018, allocations: 210.3 kB / 0.5687 GB, free: 78.95 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00522/1.023, allocations: 1.414 MB / 0.5701 GB, free: 78.42 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002231/1.023, allocations: 23.27 kB / 0.5701 GB, free: 78.42 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.313e-05/1.023, allocations: 0 / 0.5701 GB, free: 78.42 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.295e-05/1.023, allocations: 3.984 kB / 0.5701 GB, free: 78.42 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01428/1.038, allocations: 4.787 MB / 0.5748 GB, free: 74.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.026e-05/1.038, allocations: 11.58 kB / 0.5748 GB, free: 74.51 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001264/1.039, allocations: 183.2 kB / 0.575 GB, free: 74.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.669e-05/1.039, allocations: 12 kB / 0.575 GB, free: 74.35 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000113/1.039, allocations: 28.3 kB / 0.575 GB, free: 74.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-05/1.039, allocations: 14.23 kB / 0.575 GB, free: 74.31 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.097e-06/1.039, allocations: 11.91 kB / 0.575 GB, free: 74.3 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005672/1.045, allocations: 2.353 MB / 0.5773 GB, free: 71.95 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00145/1.046, allocations: 306.3 kB / 0.5776 GB, free: 71.63 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005097/1.047, allocations: 28.92 kB / 0.5777 GB, free: 71.61 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001348/1.048, allocations: 48.58 kB / 0.5777 GB, free: 71.56 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001897/1.049, allocations: 72.47 kB / 0.5778 GB, free: 71.49 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001351/1.049, allocations: 41.23 kB / 0.5778 GB, free: 71.45 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00417/1.053, allocations: 1.64 MB / 0.5794 GB, free: 69.79 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.01e-07/1.053, allocations: 0 / 0.5794 GB, free: 69.79 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.006086/1.059, allocations: 0.6245 MB / 0.58 GB, free: 69.18 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005691/1.06, allocations: 153.2 kB / 0.5802 GB, free: 69.02 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.007196/1.067, allocations: 2.596 MB / 0.5827 GB, free: 66.45 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.446e-05/1.067, allocations: 0 / 0.5827 GB, free: 66.45 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001494/1.068, allocations: 0.632 MB / 0.5833 GB, free: 65.82 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00366/1.072, allocations: 362.4 kB / 0.5837 GB, free: 65.47 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01902/1.091, allocations: 8.136 MB / 0.5916 GB, free: 57.23 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00375/1.095, allocations: 2.559 MB / 0.5941 GB, free: 54.64 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001244/1.096, allocations: 211.4 kB / 0.5943 GB, free: 54.43 MB / 378.7 MB Notification: Performance of SimCode: time 1.643e-06/1.096, allocations: 0 / 0.5943 GB, free: 54.43 MB / 378.7 MB Notification: Performance of Templates: time 0.09544/1.192, allocations: 38.93 MB / 0.6323 GB, free: 15.63 MB / 378.7 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)