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.001043/0.001048, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001053/0.001053, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.532/1.532, allocations: 223.3 MB / 240 MB, free: 5.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.2349/0.2349, allocations: 9.118 MB / 300.2 MB, free: 2.738 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000569/0.0005692, allocations: 11.98 kB / 363.1 MB, free: 13.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1492/0.1498, allocations: 52.43 MB / 415.5 MB, free: 8.531 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDamperDemo): time 0.275/0.4249, allocations: 17.45 MB / 433 MB, free: 34.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009406/0.4344, allocations: 4.372 MB / 437.4 MB, free: 32.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003798/0.4382, allocations: 66.53 kB / 437.4 MB, free: 32.64 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002257/0.4405, allocations: 0.818 MB / 438.3 MB, free: 32.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007466/0.448, allocations: 2.969 MB / 441.2 MB, free: 31.04 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007593/0.4488, allocations: 99.06 kB / 441.3 MB, free: 30.99 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002665/0.4515, allocations: 2.701 MB / 444 MB, free: 29.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008792/0.4524, allocations: 0.7312 MB / 444.8 MB, free: 29.69 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008504/0.4532, allocations: 0.7596 MB / 445.5 MB, free: 29.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001267/0.4545, allocations: 1.253 MB / 446.8 MB, free: 29.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002407/0.4547, allocations: 123.5 kB / 446.9 MB, free: 29.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001047/0.4558, allocations: 0.6513 MB / 447.5 MB, free: 28.88 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006903/0.4565, allocations: 1.103 MB / 448.6 MB, free: 28.51 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004094/0.4569, allocations: 0.6339 MB / 449.3 MB, free: 28.03 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002459/0.4594, allocations: 3.636 MB / 452.9 MB, free: 27.2 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.102e-06/0.4594, allocations: 3.344 kB / 452.9 MB, free: 27.2 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.4594, allocations: 0 / 452.9 MB, free: 27.2 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.499e-05/0.4595, allocations: 0 / 452.9 MB, free: 27.2 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.00452/0.464, allocations: 2.69 MB / 455.6 MB, free: 25.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.464, allocations: 12 kB / 455.6 MB, free: 25.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00579/0.4698, allocations: 1.807 MB / 457.4 MB, free: 25.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001975/0.4718, allocations: 1.279 MB / 458.7 MB, free: 24.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.337e-05/0.4719, allocations: 139.1 kB / 458.8 MB, free: 24.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000322/0.4723, allocations: 190 kB / 459 MB, free: 24.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01132/0.4836, allocations: 8.041 MB / 467.1 MB, free: 20.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-05/0.4837, allocations: 16.84 kB / 467.1 MB, free: 20.74 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002839/0.484, allocations: 94.45 kB / 467.2 MB, free: 20.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003446/0.4874, allocations: 2.006 MB / 469.2 MB, free: 20.27 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01557/0.503, allocations: 7.097 MB / 476.3 MB, free: 17.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03712/0.5402, allocations: 24.15 MB / 0.4887 GB, free: 14.28 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004437/0.5447, allocations: 2.146 MB / 0.4908 GB, free: 12.01 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001098/0.5458, allocations: 0.7158 MB / 0.4915 GB, free: 11.29 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006175/0.552, allocations: 3.987 MB / 0.4954 GB, free: 6.957 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.084e-05/0.552, allocations: 47.56 kB / 0.4954 GB, free: 6.902 MB / 366.1 MB Notification: Performance of pre-optimization done (n=114): time 3.437e-06/0.5521, allocations: 0 / 0.4954 GB, free: 6.902 MB / 366.1 MB Notification: Performance of matching and sorting (n=117): time 0.009486/0.5616, allocations: 4.362 MB / 0.4997 GB, free: 2.484 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.783e-05/0.5616, allocations: 60.41 kB / 0.4998 GB, free: 2.414 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003582/0.5652, allocations: 2.569 MB / 0.5023 GB, free: 15.81 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.595e-05/0.5653, allocations: 37.7 kB / 0.5023 GB, free: 15.77 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00143/0.5668, allocations: 2.116 MB / 0.5044 GB, free: 13.62 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004218/0.5672, allocations: 466 kB / 0.5048 GB, free: 13.16 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001507/0.5674, allocations: 79.94 kB / 0.5049 GB, free: 13.08 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002595/0.5676, allocations: 466.1 kB / 0.5053 GB, free: 12.62 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001885/0.5695, allocations: 1.155 MB / 0.5065 GB, free: 11.46 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003387/0.5729, allocations: 3.301 MB / 0.5097 GB, free: 7.102 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003143/0.5761, allocations: 1.948 MB / 0.5116 GB, free: 5.152 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.597e-05/0.5762, allocations: 20 kB / 0.5116 GB, free: 5.133 MB / 382.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.008035/0.5842, allocations: 4.391 MB / 0.5159 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.249e-05/0.5843, allocations: 39.98 kB / 0.5159 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001256/0.5845, allocations: 77.08 kB / 0.516 GB, free: 0.625 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001464/0.5846, allocations: 120 kB / 0.5161 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003114/0.5877, allocations: 0.8422 MB / 0.5169 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001544/0.5879, allocations: 147.4 kB / 0.5171 GB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002835/0.5908, allocations: 179.9 kB / 0.5173 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003969/0.5912, allocations: 224 kB / 0.5175 GB, free: 15.12 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003701/0.5949, allocations: 1.568 MB / 0.519 GB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004306/0.5953, allocations: 213.2 kB / 0.5192 GB, free: 13.33 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002491/0.5978, allocations: 1.41 MB / 0.5206 GB, free: 11.91 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001237/0.598, allocations: 31.94 kB / 0.5206 GB, free: 11.88 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.722e-05/0.598, allocations: 0 / 0.5206 GB, free: 11.88 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.451e-05/0.598, allocations: 7.969 kB / 0.5206 GB, free: 11.88 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008118/0.6062, allocations: 4.778 MB / 0.5253 GB, free: 6.969 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.457e-06/0.6062, allocations: 4 kB / 0.5253 GB, free: 6.965 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008067/0.607, allocations: 179.7 kB / 0.5255 GB, free: 6.789 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.67e-05/0.607, allocations: 16.23 kB / 0.5255 GB, free: 6.773 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.719e-05/0.6071, allocations: 27.98 kB / 0.5255 GB, free: 6.746 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.435e-05/0.6071, allocations: 15.94 kB / 0.5255 GB, free: 6.73 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.634e-05/0.6072, allocations: 11.98 kB / 0.5255 GB, free: 6.719 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003361/0.6105, allocations: 2.358 MB / 0.5278 GB, free: 4.27 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000601/0.6111, allocations: 302.4 kB / 0.5281 GB, free: 3.953 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002244/0.6114, allocations: 31.94 kB / 0.5281 GB, free: 3.922 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000674/0.612, allocations: 51.95 kB / 0.5282 GB, free: 3.871 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.913e-05/0.6122, allocations: 68.47 kB / 0.5283 GB, free: 3.805 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.79e-05/0.6122, allocations: 43.97 kB / 0.5283 GB, free: 3.762 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002533/0.6148, allocations: 1.644 MB / 0.5299 GB, free: 2.102 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6148, allocations: 0 / 0.5299 GB, free: 2.102 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002877/0.6177, allocations: 0.6171 MB / 0.5305 GB, free: 1.484 MB / 398.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 (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.0004212/0.6181, allocations: 159 kB / 0.5307 GB, free: 1.316 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004169/0.6223, allocations: 2.596 MB / 0.5332 GB, free: 14.73 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.6223, allocations: 0 / 0.5332 GB, free: 14.73 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000898/0.6232, allocations: 0.6329 MB / 0.5338 GB, free: 14.1 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001762/0.625, allocations: 360.4 kB / 0.5342 GB, free: 13.76 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01132/0.6363, allocations: 7.748 MB / 0.5417 GB, free: 5.922 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002553/0.6389, allocations: 2.563 MB / 0.5442 GB, free: 3.328 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.003013/0.6419, allocations: 1.117 MB / 0.5453 GB, free: 2.207 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004156/0.6423, allocations: 163.4 kB / 0.5455 GB, free: 2.047 MB / 414.1 MB Notification: Performance of SimCode: time 9.42e-07/0.6423, allocations: 4 kB / 0.5455 GB, free: 2.043 MB / 414.1 MB Notification: Performance of Templates: time 0.04083/0.6832, allocations: 20.96 MB / 0.5659 GB, free: 13.22 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)