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.001386/0.001386, allocations: 108.6 kB / 16.41 MB, free: 6.504 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.00133/0.00133, allocations: 188 kB / 17.34 MB, free: 5.738 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.491/1.491, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04849/0.04849, allocations: 9.12 MB / 300.3 MB, free: 5.824 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001878/0.001878, allocations: 63.89 kB / 415.3 MB, free: 21.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1156, allocations: 51.44 MB / 466.7 MB, free: 1.684 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDamperDemo): time 0.01092/0.1265, allocations: 8.191 MB / 474.9 MB, free: 9.449 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006056/0.1327, allocations: 2.518 MB / 477.5 MB, free: 6.914 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001267/0.134, allocations: 31.94 kB / 477.5 MB, free: 6.883 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001023/0.135, allocations: 365.6 kB / 477.8 MB, free: 6.523 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004344/0.1394, allocations: 1.362 MB / 479.2 MB, free: 5.156 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006974/0.1401, allocations: 119.7 kB / 479.3 MB, free: 5.039 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004857/0.145, allocations: 2.447 MB / 481.8 MB, free: 2.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001557/0.1466, allocations: 0.7977 MB / 482.6 MB, free: 1.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001798/0.1484, allocations: 0.8598 MB / 483.4 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001825/0.1502, allocations: 1.261 MB / 484.7 MB, free: 15.64 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004512/0.1507, allocations: 223.9 kB / 484.9 MB, free: 15.42 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001707/0.1524, allocations: 0.8075 MB / 485.7 MB, free: 14.61 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001284/0.1537, allocations: 1.212 MB / 486.9 MB, free: 13.4 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001629/0.1553, allocations: 1.545 MB / 488.5 MB, free: 11.84 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006502/0.1619, allocations: 4.972 MB / 493.4 MB, free: 6.852 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.1619, allocations: 0 / 493.4 MB, free: 6.852 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.549e-06/0.1619, allocations: 0 / 493.4 MB, free: 6.852 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000129/0.162, allocations: 3.938 kB / 493.4 MB, free: 6.848 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.007778/0.1698, allocations: 3.345 MB / 496.8 MB, free: 3.434 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.059e-05/0.1699, allocations: 11.97 kB / 496.8 MB, free: 3.422 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007047/0.1769, allocations: 1.789 MB / 498.6 MB, free: 1.629 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003877/0.1809, allocations: 1.302 MB / 499.9 MB, free: 288 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001445/0.181, allocations: 139.8 kB / 0.4883 GB, free: 148 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005597/0.1816, allocations: 188.2 kB / 0.4885 GB, free: 15.96 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01432/0.1959, allocations: 8.057 MB / 0.4964 GB, free: 7.543 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.32e-05/0.1961, allocations: 27.75 kB / 0.4964 GB, free: 7.516 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002905/0.1964, allocations: 91.86 kB / 0.4965 GB, free: 7.426 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003628/0.2, allocations: 2 MB / 0.4984 GB, free: 5.422 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2948/0.4948, allocations: 7.137 MB / 0.5054 GB, free: 39.2 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03734/0.5322, allocations: 24.12 MB / 0.5289 GB, free: 23.93 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00442/0.5366, allocations: 2.145 MB / 0.531 GB, free: 22.54 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001132/0.5378, allocations: 0.7289 MB / 0.5318 GB, free: 22.18 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005162/0.543, allocations: 3.99 MB / 0.5357 GB, free: 18.91 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.544e-05/0.543, allocations: 47.41 kB / 0.5357 GB, free: 18.87 MB / 382.1 MB Notification: Performance of pre-optimization done (n=114): time 3.206e-06/0.543, allocations: 0 / 0.5357 GB, free: 18.87 MB / 382.1 MB Notification: Performance of matching and sorting (n=117): time 0.008684/0.5517, allocations: 4.435 MB / 0.54 GB, free: 16.59 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.398e-05/0.5518, allocations: 59.53 kB / 0.5401 GB, free: 16.53 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003036/0.5548, allocations: 2.587 MB / 0.5426 GB, free: 15.12 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.87e-05/0.5549, allocations: 40.91 kB / 0.5427 GB, free: 15.07 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008704/0.5558, allocations: 2.2 MB / 0.5448 GB, free: 13.14 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002715/0.5561, allocations: 485.9 kB / 0.5453 GB, free: 12.75 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007993/0.5569, allocations: 0.7564 MB / 0.546 GB, free: 12.24 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.059e-05/0.5569, allocations: 305.1 kB / 0.5463 GB, free: 11.94 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001481/0.5584, allocations: 1.163 MB / 0.5474 GB, free: 10.78 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002355/0.5608, allocations: 3.317 MB / 0.5507 GB, free: 6.402 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005188/0.566, allocations: 4.798 MB / 0.5554 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.329e-05/0.5661, allocations: 27.94 kB / 0.5554 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.008771/0.5749, allocations: 4.439 MB / 0.5597 GB, free: 12.09 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.006e-05/0.575, allocations: 39.94 kB / 0.5598 GB, free: 12.05 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.025e-05/0.5751, allocations: 76.91 kB / 0.5598 GB, free: 11.98 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001169/0.5752, allocations: 100.6 kB / 0.5599 GB, free: 11.88 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002644/0.5779, allocations: 0.8422 MB / 0.5607 GB, free: 11.04 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001325/0.578, allocations: 147.4 kB / 0.5609 GB, free: 10.89 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002941/0.581, allocations: 179.9 kB / 0.5611 GB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004757/0.5815, allocations: 228 kB / 0.5613 GB, free: 10.5 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.00356/0.585, allocations: 1.579 MB / 0.5628 GB, free: 8.914 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005803/0.5856, allocations: 222.5 kB / 0.563 GB, free: 8.695 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002738/0.5884, allocations: 1.398 MB / 0.5644 GB, free: 7.285 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001314/0.5885, allocations: 31.97 kB / 0.5644 GB, free: 7.254 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.802e-06/0.5885, allocations: 0 / 0.5644 GB, free: 7.254 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.206e-05/0.5886, allocations: 3.984 kB / 0.5644 GB, free: 7.25 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008955/0.5975, allocations: 4.795 MB / 0.5691 GB, free: 2.348 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.059e-05/0.5976, allocations: 4 kB / 0.5691 GB, free: 2.344 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008479/0.5984, allocations: 183.7 kB / 0.5693 GB, free: 2.164 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-05/0.5985, allocations: 12.67 kB / 0.5693 GB, free: 2.152 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.627e-05/0.5985, allocations: 32 kB / 0.5693 GB, free: 2.121 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.464e-05/0.5986, allocations: 16.2 kB / 0.5693 GB, free: 2.105 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.406e-06/0.5986, allocations: 8 kB / 0.5694 GB, free: 2.098 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003965/0.6025, allocations: 2.379 MB / 0.5717 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008884/0.6035, allocations: 299.7 kB / 0.572 GB, free: 15.32 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000258/0.6037, allocations: 27.98 kB / 0.572 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007241/0.6045, allocations: 47.95 kB / 0.572 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001337/0.6046, allocations: 72.45 kB / 0.5721 GB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.947e-05/0.6047, allocations: 47.34 kB / 0.5721 GB, free: 15.14 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002919/0.6076, allocations: 1.652 MB / 0.5738 GB, free: 13.47 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.6076, allocations: 0 / 0.5738 GB, free: 13.47 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003337/0.611, allocations: 0.621 MB / 0.5744 GB, free: 12.85 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.0004298/0.6114, allocations: 162.2 kB / 0.5745 GB, free: 12.68 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00489/0.6163, allocations: 2.626 MB / 0.5771 GB, free: 10.07 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.048e-05/0.6164, allocations: 4 kB / 0.5771 GB, free: 10.07 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001042/0.6174, allocations: 0.6334 MB / 0.5777 GB, free: 9.438 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002124/0.6195, allocations: 376.7 kB / 0.5781 GB, free: 9.078 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01208/0.6316, allocations: 6.462 MB / 0.5844 GB, free: 2.547 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003248/0.6349, allocations: 2.566 MB / 0.5869 GB, free: 15.95 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002988/0.6379, allocations: 1.109 MB / 0.588 GB, free: 14.83 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004626/0.6384, allocations: 163.3 kB / 0.5881 GB, free: 14.68 MB / 430.1 MB Notification: Performance of SimCode: time 6.71e-07/0.6384, allocations: 0 / 0.5881 GB, free: 14.68 MB / 430.1 MB Notification: Performance of Templates: time 0.04956/0.688, allocations: 21.94 MB / 0.6096 GB, free: 8.883 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 -s gbode -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe 2>&1)