Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01049/0.01049, allocations: 105 kB / 15.74 MB, free: 6.02 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.00212/0.00212, allocations: 189.4 kB / 16.67 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.53/1.53, allocations: 205.1 MB / 222.5 MB, free: 4.484 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001197, allocations: 54.77 kB / 326.6 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1116, allocations: 46.63 MB / 373.2 MB, free: 1.289 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces): time 0.01086/0.1225, allocations: 9.023 MB / 382.2 MB, free: 8.223 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006145/0.1287, allocations: 2.656 MB / 384.9 MB, free: 5.555 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001663/0.1304, allocations: 47.88 kB / 384.9 MB, free: 5.508 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003934/0.1344, allocations: 1.838 MB / 386.7 MB, free: 3.664 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003931/0.1384, allocations: 1.307 MB / 388.1 MB, free: 2.352 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007527/0.1391, allocations: 219.5 kB / 388.3 MB, free: 2.137 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003708/0.1429, allocations: 2.367 MB / 390.6 MB, free: 15.76 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003397/0.1463, allocations: 2.129 MB / 392.8 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001901/0.1482, allocations: 1.008 MB / 393.8 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003421/0.1516, allocations: 2.33 MB / 396.1 MB, free: 10.24 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007742/0.1524, allocations: 188 kB / 396.3 MB, free: 10.05 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001476/0.1539, allocations: 487.4 kB / 396.8 MB, free: 9.578 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001564/0.1555, allocations: 1.293 MB / 398.1 MB, free: 8.281 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002674/0.1582, allocations: 1.587 MB / 399.6 MB, free: 6.684 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006738/0.165, allocations: 4.869 MB / 404.5 MB, free: 1.793 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.165, allocations: 4 kB / 404.5 MB, free: 1.789 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.165, allocations: 0 / 404.5 MB, free: 1.789 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002102/0.1652, allocations: 4 kB / 404.5 MB, free: 1.785 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1143 * Number of variables: 1143 Notification: Performance of Generate backend data structure: time 0.008631/0.1738, allocations: 3.731 MB / 408.3 MB, free: 13.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.752e-05/0.1739, allocations: 8.031 kB / 408.3 MB, free: 13.97 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005292/0.1792, allocations: 1.679 MB / 409.9 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002909/0.1822, allocations: 1.592 MB / 411.5 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001055/0.1823, allocations: 147.8 kB / 411.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003838/0.1827, allocations: 195.9 kB / 411.9 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009515/0.1922, allocations: 6.994 MB / 418.9 MB, free: 2.766 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.732e-05/0.1923, allocations: 27.75 kB / 418.9 MB, free: 2.738 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002619/0.1926, allocations: 99.88 kB / 419 MB, free: 2.641 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00223/0.1948, allocations: 1.562 MB / 420.5 MB, free: 1.078 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008954/0.2038, allocations: 5.485 MB / 426 MB, free: 11.58 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2817/0.4855, allocations: 27.17 MB / 453.2 MB, free: 61.8 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003585/0.4892, allocations: 1.638 MB / 454.8 MB, free: 61.07 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009054/0.4901, allocations: 0.4977 MB / 455.3 MB, free: 61.02 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004259/0.4944, allocations: 2.691 MB / 458 MB, free: 59.59 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.51e-05/0.4944, allocations: 46.39 kB / 458.1 MB, free: 59.55 MB / 382.1 MB Notification: Performance of pre-optimization done (n=89): time 2.916e-06/0.4944, allocations: 0 / 458.1 MB, free: 59.55 MB / 382.1 MB Notification: Performance of matching and sorting (n=89): time 0.003659/0.4981, allocations: 1.77 MB / 459.8 MB, free: 59.51 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.345e-05/0.4981, allocations: 222 kB / 460.1 MB, free: 59.26 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004946/0.5031, allocations: 3.68 MB / 463.7 MB, free: 58.94 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.943e-05/0.5032, allocations: 32.86 kB / 463.8 MB, free: 58.91 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001448/0.5046, allocations: 2.795 MB / 466.6 MB, free: 57.47 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002724/0.5049, allocations: 408.9 kB / 467 MB, free: 57.2 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009456/0.5059, allocations: 0.9659 MB / 467.9 MB, free: 56.71 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.968e-05/0.5059, allocations: 306.4 kB / 468.2 MB, free: 56.41 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001525/0.5075, allocations: 1.206 MB / 469.4 MB, free: 56.06 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002834/0.5103, allocations: 4.529 MB / 474 MB, free: 51.2 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004413/0.5147, allocations: 6.297 MB / 480.3 MB, free: 45.27 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.462e-05/0.5148, allocations: 33.78 kB / 480.3 MB, free: 45.27 MB / 382.1 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.006795/0.5216, allocations: 5.452 MB / 485.8 MB, free: 43.15 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.537e-05/0.5217, allocations: 57.03 kB / 485.8 MB, free: 43.15 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001031/0.5218, allocations: 125 kB / 485.9 MB, free: 43.15 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001166/0.5219, allocations: 154.4 kB / 486.1 MB, free: 43.15 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002317/0.5243, allocations: 1.084 MB / 487.2 MB, free: 43.01 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001042/0.5244, allocations: 234 kB / 487.4 MB, free: 42.96 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002948/0.5273, allocations: 0.7078 MB / 488.1 MB, free: 42.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000274/0.5276, allocations: 316.4 kB / 488.4 MB, free: 42.46 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 544 * Number of states: 0 () * Number of discrete variables: 24 (fixedTranslation3.color[3],fixedTranslation3.color[2],fixedTranslation3.color[1],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (589): * Single equations (assignments): 585 * Array equations: 4 * 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.001879/0.5295, allocations: 1.706 MB / 490.1 MB, free: 41.48 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003593/0.5299, allocations: 311.5 kB / 490.4 MB, free: 41.18 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006944/0.5306, allocations: 0.4954 MB / 490.9 MB, free: 40.68 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.621e-05/0.5306, allocations: 20 kB / 490.9 MB, free: 40.66 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.494e-05/0.5306, allocations: 8 kB / 490.9 MB, free: 40.65 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.614e-06/0.5307, allocations: 7.922 kB / 490.9 MB, free: 40.64 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004325/0.535, allocations: 3.148 MB / 494.1 MB, free: 37.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.454e-06/0.535, allocations: 4.875 kB / 494.1 MB, free: 37.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004084/0.5354, allocations: 103.9 kB / 494.2 MB, free: 37.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.273e-06/0.5354, allocations: 4 kB / 494.2 MB, free: 37.32 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.155e-05/0.5355, allocations: 20 kB / 494.2 MB, free: 37.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.352e-06/0.5355, allocations: 11.92 kB / 494.2 MB, free: 37.29 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.5355, allocations: 6.312 kB / 494.2 MB, free: 37.29 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001682/0.5372, allocations: 2.236 MB / 496.5 MB, free: 35 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000658/0.5379, allocations: 442.7 kB / 496.9 MB, free: 34.54 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002433/0.5381, allocations: 27.77 kB / 496.9 MB, free: 34.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008033/0.5389, allocations: 31.97 kB / 497 MB, free: 34.49 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.609e-05/0.539, allocations: 48.11 kB / 497 MB, free: 34.44 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.604e-05/0.5391, allocations: 31.98 kB / 497 MB, free: 34.41 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002637/0.5417, allocations: 2.333 MB / 499.4 MB, free: 32.09 MB / 382.1 MB Notification: Performance of sort global known variables: time 6.21e-07/0.5418, allocations: 7.938 kB / 499.4 MB, free: 32.09 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004053/0.5458, allocations: 0.8187 MB / 0.4885 GB, free: 31.27 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 2 (prismatic.v,position.s) * 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 (58): * Single equations (assignments): 54 * Array equations: 4 * 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.0003255/0.5462, allocations: 138.5 kB / 0.4886 GB, free: 31.12 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004124/0.5503, allocations: 2.812 MB / 0.4914 GB, free: 28.34 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.5503, allocations: 0 / 0.4914 GB, free: 28.34 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004565/0.5508, allocations: 441.6 kB / 0.4918 GB, free: 27.92 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00228/0.5531, allocations: 379.8 kB / 0.4921 GB, free: 27.56 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009468/0.5625, allocations: 6.796 MB / 0.4988 GB, free: 20.7 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002004/0.5646, allocations: 2.675 MB / 0.5014 GB, free: 18 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002812/0.5674, allocations: 1.488 MB / 0.5028 GB, free: 16.51 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003716/0.5678, allocations: 203.4 kB / 0.503 GB, free: 16.31 MB / 382.1 MB Notification: Performance of SimCode: time 1.112e-06/0.5678, allocations: 0 / 0.503 GB, free: 16.31 MB / 382.1 MB Notification: Performance of Templates: time 0.03607/0.6039, allocations: 19.4 MB / 0.522 GB, free: 12.97 MB / 398.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.pipe 2>&1)