Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.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.ForceAndTorque,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006936/0.006936, allocations: 101.6 kB / 15.73 MB, free: 6.059 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.001641/0.001641, allocations: 190.6 kB / 16.67 MB, free: 5.969 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.378/1.378, allocations: 205.1 MB / 222.5 MB, free: 4.531 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.001149/0.001149, allocations: 54.77 kB / 326.6 MB, free: 14.38 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08326/0.08442, allocations: 46.62 MB / 373.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01288/0.09733, allocations: 12.49 MB / 385.7 MB, free: 4.766 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008358/0.1057, allocations: 4.206 MB / 389.9 MB, free: 0.543 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001731/0.1075, allocations: 75.81 kB / 389.9 MB, free: 480 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00559/0.1131, allocations: 3.216 MB / 393.2 MB, free: 13.24 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004909/0.1181, allocations: 2.082 MB / 395.2 MB, free: 11.15 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001756/0.1198, allocations: 0.8304 MB / 396.1 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005856/0.1257, allocations: 4.549 MB / 400.6 MB, free: 5.758 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00452/0.1303, allocations: 4.17 MB / 404.8 MB, free: 1.523 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002628/0.1329, allocations: 1.764 MB / 406.6 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003176/0.1361, allocations: 2.344 MB / 408.9 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007678/0.1369, allocations: 388 kB / 409.3 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002316/0.1392, allocations: 1.272 MB / 410.6 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001888/0.1411, allocations: 2.225 MB / 412.8 MB, free: 9.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002382/0.1435, allocations: 2.544 MB / 415.3 MB, free: 6.961 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008367/0.1519, allocations: 8.284 MB / 423.6 MB, free: 14.64 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.1519, allocations: 0 / 423.6 MB, free: 14.64 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1519, allocations: 0 / 423.6 MB, free: 14.64 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002056/0.1521, allocations: 7.984 kB / 423.6 MB, free: 14.64 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: 1737 * Number of variables: 1737 Notification: Performance of Generate backend data structure: time 0.009915/0.1621, allocations: 5.667 MB / 429.3 MB, free: 8.891 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.116e-05/0.1621, allocations: 8.031 kB / 429.3 MB, free: 8.883 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009066/0.1712, allocations: 2.259 MB / 431.5 MB, free: 6.617 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005434/0.1766, allocations: 3.019 MB / 434.6 MB, free: 3.539 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001885/0.1768, allocations: 266.8 kB / 434.8 MB, free: 3.277 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006844/0.1775, allocations: 359.8 kB / 435.2 MB, free: 2.926 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01861/0.1962, allocations: 11.64 MB / 446.8 MB, free: 6.574 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001111/0.1963, allocations: 47.62 kB / 446.9 MB, free: 6.527 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004098/0.1967, allocations: 171.8 kB / 447 MB, free: 6.359 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003606/0.2003, allocations: 2.327 MB / 449.4 MB, free: 4.031 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1878/0.3881, allocations: 9.97 MB / 459.3 MB, free: 62.57 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04388/0.4321, allocations: 44.36 MB / 0.4919 GB, free: 28.67 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01135/0.4435, allocations: 5.348 MB / 0.4971 GB, free: 23.18 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002826/0.4463, allocations: 2.814 MB / 0.4999 GB, free: 20.35 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0101/0.4564, allocations: 8.142 MB / 0.5078 GB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.219e-05/0.4565, allocations: 59.81 kB / 0.5079 GB, free: 12.14 MB / 382.1 MB Notification: Performance of pre-optimization done (n=216): time 5.49e-06/0.4565, allocations: 0 / 0.5079 GB, free: 12.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=237): time 0.04844/0.505, allocations: 21.04 MB / 0.5284 GB, free: 7.223 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.878e-05/0.5051, allocations: 184.2 kB / 0.5286 GB, free: 7.004 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006771/0.5119, allocations: 4.774 MB / 0.5332 GB, free: 2.234 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004817/0.5124, allocations: 61.61 kB / 0.5333 GB, free: 2.172 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002326/0.5147, allocations: 3.527 MB / 0.5367 GB, free: 14.66 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001157/0.5159, allocations: 0.9318 MB / 0.5377 GB, free: 13.74 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001961/0.5179, allocations: 1.389 MB / 0.539 GB, free: 12.34 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.518, allocations: 305.1 kB / 0.5393 GB, free: 12.04 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003876/0.5219, allocations: 2.703 MB / 0.5419 GB, free: 9.332 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007048/0.5289, allocations: 6.614 MB / 0.5484 GB, free: 0.793 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01215/0.5411, allocations: 10.07 MB / 0.5582 GB, free: 4.805 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001058/0.5413, allocations: 43.94 kB / 0.5583 GB, free: 4.762 MB / 430.1 MB Notification: Performance of matching and sorting (n=893) (initialization): time 0.01911/0.5604, allocations: 10.21 MB / 0.5682 GB, free: 10.55 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000107/0.5605, allocations: 68.03 kB / 0.5683 GB, free: 10.48 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001694/0.5607, allocations: 137 kB / 0.5684 GB, free: 10.35 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003164/0.5639, allocations: 1.199 MB / 0.5696 GB, free: 9.148 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005748/0.5696, allocations: 1.602 MB / 0.5712 GB, free: 7.543 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009384/0.5791, allocations: 7.261 MB / 0.5783 GB, free: 140 kB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005425/0.5845, allocations: 395.6 kB / 0.5786 GB, free: 15.75 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001147/0.5857, allocations: 407.8 kB / 0.579 GB, free: 15.36 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 624 * Number of states: 0 () * Number of discrete variables: 42 (fixed2.color[3],fixed2.color[2],fixed2.color[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],forceAndTorque.connectionLineColor[3],forceAndTorque.connectionLineColor[2],forceAndTorque.connectionLineColor[1],forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (835): * Single equations (assignments): 829 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004185/0.5899, allocations: 2.37 MB / 0.5814 GB, free: 12.97 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008141/0.5907, allocations: 441.1 kB / 0.5818 GB, free: 12.54 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008696/0.5994, allocations: 4.776 MB / 0.5864 GB, free: 7.742 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.914e-05/0.5995, allocations: 28 kB / 0.5865 GB, free: 7.715 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.055e-05/0.5995, allocations: 4 kB / 0.5865 GB, free: 7.711 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.606e-05/0.5995, allocations: 11.97 kB / 0.5865 GB, free: 7.699 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01911/0.6186, allocations: 10.79 MB / 0.597 GB, free: 12.77 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.822e-05/0.6187, allocations: 8.656 kB / 0.597 GB, free: 12.76 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002129/0.6209, allocations: 427.3 kB / 0.5974 GB, free: 12.34 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002691/0.6236, allocations: 1.023 MB / 0.5984 GB, free: 11.32 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003031/0.6239, allocations: 51.98 kB / 0.5985 GB, free: 11.27 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009464/0.6334, allocations: 6.889 MB / 0.6052 GB, free: 4.234 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.467e-06/0.6334, allocations: 11.94 kB / 0.6052 GB, free: 4.223 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01246/0.6459, allocations: 8.189 MB / 0.6132 GB, free: 11.94 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00181/0.6477, allocations: 0.8533 MB / 0.6141 GB, free: 11.06 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005772/0.6483, allocations: 44 kB / 0.6141 GB, free: 11.02 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001792/0.6501, allocations: 151.8 kB / 0.6142 GB, free: 10.87 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003717/0.6505, allocations: 145.7 kB / 0.6144 GB, free: 10.73 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001758/0.6507, allocations: 75.89 kB / 0.6144 GB, free: 10.66 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004809/0.6555, allocations: 3.05 MB / 0.6174 GB, free: 7.613 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.6555, allocations: 1.031 kB / 0.6174 GB, free: 7.613 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005643/0.6612, allocations: 1.18 MB / 0.6186 GB, free: 6.434 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 4 (revolute2.phi,revolute2.w,revolute1.phi,revolute1.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 (198): * Single equations (assignments): 194 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,18,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005629/0.6617, allocations: 194.7 kB / 0.6188 GB, free: 6.234 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.1975/0.8593, allocations: 6.532 MB / 0.6251 GB, free: 162.4 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.642e-05/0.8594, allocations: 1.25 kB / 0.6251 GB, free: 162.4 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006415/0.8658, allocations: 2.416 MB / 0.6275 GB, free: 162.3 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004106/0.8699, allocations: 0.507 MB / 0.628 GB, free: 162.3 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02335/0.8933, allocations: 11.39 MB / 0.6391 GB, free: 158.3 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004088/0.8975, allocations: 3.675 MB / 0.6427 GB, free: 156.9 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005525/0.903, allocations: 2.217 MB / 0.6449 GB, free: 156.8 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009791/0.904, allocations: 297.1 kB / 0.6452 GB, free: 156.7 MB / 494.1 MB Notification: Performance of SimCode: time 1.002e-06/0.904, allocations: 0 / 0.6452 GB, free: 156.7 MB / 494.1 MB Notification: Performance of Templates: time 0.06926/0.9733, allocations: 42.62 MB / 0.6868 GB, free: 121.8 MB / 494.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1)