Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.SpringDemo.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.SpringDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.SpringDemo") translateModel(PlanarMechanics.Examples.SpringDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.SpringDemo") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001019/0.001019, allocations: 91.06 kB / 15.06 MB, free: 1.098 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.0009165/0.0009166, allocations: 172.7 kB / 15.95 MB, free: 208 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.555/1.555, allocations: 223.3 MB / 240 MB, free: 5.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.2355/0.2355, allocations: 9.118 MB / 300.2 MB, free: 2.73 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004701/0.0004702, allocations: 8 kB / 363.1 MB, free: 13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1506/0.1511, allocations: 52.43 MB / 415.5 MB, free: 8.527 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDemo): time 0.2765/0.4277, allocations: 25.5 MB / 441 MB, free: 29.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0122/0.4399, allocations: 5.943 MB / 447 MB, free: 25.86 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005268/0.4452, allocations: 101.7 kB / 447.1 MB, free: 25.85 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004555/0.4498, allocations: 1.218 MB / 448.3 MB, free: 25.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01145/0.4613, allocations: 4.274 MB / 452.6 MB, free: 23.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001371/0.4627, allocations: 149.7 kB / 452.7 MB, free: 23.44 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003778/0.4665, allocations: 3.015 MB / 455.7 MB, free: 22.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001377/0.4679, allocations: 0.8705 MB / 456.6 MB, free: 21.95 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001304/0.4692, allocations: 0.8589 MB / 457.5 MB, free: 21.65 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001717/0.4709, allocations: 1.388 MB / 458.9 MB, free: 21.19 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004885/0.4714, allocations: 139.8 kB / 459 MB, free: 21.19 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001366/0.4728, allocations: 0.6687 MB / 459.7 MB, free: 21.05 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001103/0.4739, allocations: 1.217 MB / 460.9 MB, free: 20.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006573/0.4746, allocations: 0.6887 MB / 461.6 MB, free: 20.12 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003093/0.4777, allocations: 3.927 MB / 465.5 MB, free: 19.22 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.506e-06/0.4777, allocations: 2.844 kB / 465.5 MB, free: 19.22 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.607e-06/0.4777, allocations: 0 / 465.5 MB, free: 19.22 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001488/0.4779, allocations: 0 / 465.5 MB, free: 19.22 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: 1293 * Number of variables: 1293 Notification: Performance of Generate backend data structure: time 0.006123/0.484, allocations: 2.957 MB / 468.5 MB, free: 17.45 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/0.4841, allocations: 10.33 kB / 468.5 MB, free: 17.45 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007401/0.4915, allocations: 1.887 MB / 470.4 MB, free: 17.12 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003414/0.4949, allocations: 1.391 MB / 471.7 MB, free: 16.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001449/0.4951, allocations: 164 kB / 471.9 MB, free: 16.17 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005295/0.4956, allocations: 219.3 kB / 472.1 MB, free: 16.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01765/0.5133, allocations: 8.654 MB / 480.8 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.338e-05/0.5134, allocations: 24.8 kB / 480.8 MB, free: 12.17 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003294/0.5137, allocations: 104.3 kB / 480.9 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004305/0.518, allocations: 2.086 MB / 483 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01696/0.535, allocations: 7.464 MB / 490.4 MB, free: 8.332 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0424/0.5775, allocations: 27.08 MB / 0.5054 GB, free: 12.97 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005109/0.5826, allocations: 2.18 MB / 0.5075 GB, free: 10.66 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001717/0.5844, allocations: 0.9394 MB / 0.5084 GB, free: 9.723 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009587/0.594, allocations: 5.573 MB / 0.5139 GB, free: 3.75 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.871e-05/0.594, allocations: 51.5 kB / 0.5139 GB, free: 3.691 MB / 382.1 MB Notification: Performance of pre-optimization done (n=119): time 4.268e-06/0.5941, allocations: 4 kB / 0.5139 GB, free: 3.688 MB / 382.1 MB Notification: Performance of matching and sorting (n=135): time 0.01376/0.6078, allocations: 6.948 MB / 0.5207 GB, free: 12.55 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.386e-05/0.6079, allocations: 64.41 kB / 0.5208 GB, free: 12.48 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004159/0.6121, allocations: 2.904 MB / 0.5236 GB, free: 9.559 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.859e-05/0.6122, allocations: 41.7 kB / 0.5237 GB, free: 9.512 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001592/0.6138, allocations: 2.356 MB / 0.526 GB, free: 7.121 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000476/0.6142, allocations: 0.5168 MB / 0.5265 GB, free: 6.598 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001696/0.6144, allocations: 88 kB / 0.5265 GB, free: 6.512 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002921/0.6147, allocations: 487.3 kB / 0.527 GB, free: 6.027 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002157/0.6169, allocations: 1.336 MB / 0.5283 GB, free: 4.684 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003756/0.6206, allocations: 3.776 MB / 0.532 GB, free: 15.68 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003243/0.6239, allocations: 2.225 MB / 0.5342 GB, free: 13.45 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.36e-05/0.624, allocations: 24 kB / 0.5342 GB, free: 13.43 MB / 414.1 MB Notification: Performance of matching and sorting (n=552) (initialization): time 0.008962/0.6329, allocations: 5.581 MB / 0.5397 GB, free: 7.754 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.214e-05/0.633, allocations: 48.22 kB / 0.5397 GB, free: 7.707 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.544e-05/0.6331, allocations: 84 kB / 0.5398 GB, free: 7.625 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007166/0.6338, allocations: 380.5 kB / 0.5401 GB, free: 7.238 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002715/0.6366, allocations: 0.9163 MB / 0.541 GB, free: 6.32 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006951/0.6435, allocations: 8.251 MB / 0.5491 GB, free: 13.4 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004045/0.6476, allocations: 223.9 kB / 0.5493 GB, free: 13.18 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005703/0.6482, allocations: 252 kB / 0.5495 GB, free: 12.93 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 392 * Number of states: 0 () * Number of discrete variables: 30 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],damper.color_b[3],damper.color_b[2],damper.color_b[1],damper.color_a[3],damper.color_a[2],damper.color_a[1],damper.colorConnector_b[3],damper.colorConnector_b[2],damper.colorConnector_b[1],damper.colorConnector_a[3],damper.colorConnector_a[2],damper.colorConnector_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.colorConnector_b[3],spring1.colorConnector_b[2],spring1.colorConnector_b[1],spring1.colorConnector_a[3],spring1.colorConnector_a[2],spring1.colorConnector_a[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (505): * Single equations (assignments): 495 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(3,66.7%) 10,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003273/0.6515, allocations: 1.707 MB / 0.5512 GB, free: 11.21 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003875/0.6518, allocations: 236.9 kB / 0.5514 GB, free: 10.98 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003459/0.6553, allocations: 2.247 MB / 0.5536 GB, free: 8.633 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001723/0.6555, allocations: 35.97 kB / 0.5537 GB, free: 8.598 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.246e-06/0.6555, allocations: 4 kB / 0.5537 GB, free: 8.594 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.231e-05/0.6555, allocations: 7.969 kB / 0.5537 GB, free: 8.586 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009045/0.6646, allocations: 5.785 MB / 0.5593 GB, free: 2.648 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.025e-05/0.6646, allocations: 4 kB / 0.5593 GB, free: 2.645 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007056/0.6653, allocations: 183.7 kB / 0.5595 GB, free: 2.465 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003562/0.6657, allocations: 142.5 kB / 0.5596 GB, free: 2.316 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.672e-05/0.6658, allocations: 31.94 kB / 0.5597 GB, free: 2.285 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003634/0.6694, allocations: 4.674 MB / 0.5642 GB, free: 13.21 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.162e-06/0.6694, allocations: 4 kB / 0.5642 GB, free: 13.21 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004363/0.6738, allocations: 2.996 MB / 0.5672 GB, free: 10.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000816/0.6746, allocations: 333.9 kB / 0.5675 GB, free: 9.754 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002353/0.6749, allocations: 24.06 kB / 0.5675 GB, free: 9.73 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008102/0.6757, allocations: 63.98 kB / 0.5676 GB, free: 9.668 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001491/0.6759, allocations: 80.8 kB / 0.5676 GB, free: 9.59 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.663e-05/0.676, allocations: 40 kB / 0.5677 GB, free: 9.551 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003262/0.6792, allocations: 1.855 MB / 0.5695 GB, free: 7.688 MB / 446.1 MB Notification: Performance of sort global known variables: time 2e-07/0.6792, allocations: 288 / 0.5695 GB, free: 7.688 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003636/0.6829, allocations: 0.7189 MB / 0.5702 GB, free: 6.969 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 (prismatic.s,prismatic.v) * 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 (103): * Single equations (assignments): 95 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 6,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004202/0.6833, allocations: 151 kB / 0.5703 GB, free: 6.812 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005906/0.6892, allocations: 3.679 MB / 0.5739 GB, free: 3.094 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.176e-06/0.6893, allocations: 0 / 0.5739 GB, free: 3.094 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001452/0.6907, allocations: 1.139 MB / 0.575 GB, free: 1.918 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001921/0.6927, allocations: 379 kB / 0.5754 GB, free: 1.555 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2395/0.9321, allocations: 8.202 MB / 0.5834 GB, free: 102.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002724/0.9349, allocations: 2.755 MB / 0.5861 GB, free: 102 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003479/0.9384, allocations: 1.203 MB / 0.5873 GB, free: 102 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000464/0.9389, allocations: 186.9 kB / 0.5875 GB, free: 102 MB / 446.1 MB Notification: Performance of SimCode: time 7.51e-07/0.9389, allocations: 2.906 kB / 0.5875 GB, free: 102 MB / 446.1 MB Notification: Performance of Templates: time 0.05413/0.993, allocations: 24.72 MB / 0.6116 GB, free: 97.59 MB / 446.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.SpringDemo.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.SpringDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.SpringDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.SpringDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.SpringDemo.sim & ./PlanarMechanics_PlanarMechanics.Examples.SpringDemo -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.SpringDemo.pipe 2>&1)