Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.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.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01102/0.01102, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.002524/0.002524, allocations: 201.8 kB / 16.68 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.522/1.522, allocations: 205.1 MB / 222.5 MB, free: 4.355 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.001292/0.001292, allocations: 54.67 kB / 326.6 MB, free: 14.59 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08638/0.08768, allocations: 46.62 MB / 373.2 MB, free: 1.418 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01123/0.09895, allocations: 10.31 MB / 383.5 MB, free: 7.062 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007842/0.1068, allocations: 3.879 MB / 387.4 MB, free: 3.172 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001528/0.1084, allocations: 51.88 kB / 387.4 MB, free: 3.121 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004057/0.1125, allocations: 2.083 MB / 389.5 MB, free: 1.031 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004179/0.1167, allocations: 1.65 MB / 391.1 MB, free: 15.37 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001655/0.1184, allocations: 0.6862 MB / 391.8 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004562/0.123, allocations: 3.385 MB / 395.2 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00347/0.1264, allocations: 2.696 MB / 397.9 MB, free: 8.543 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002148/0.1286, allocations: 1.269 MB / 399.2 MB, free: 7.27 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002898/0.1315, allocations: 1.76 MB / 400.9 MB, free: 5.504 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00127/0.1328, allocations: 264 kB / 401.2 MB, free: 5.246 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002475/0.1353, allocations: 1.112 MB / 402.3 MB, free: 4.133 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001874/0.1372, allocations: 1.57 MB / 403.9 MB, free: 2.559 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002741/0.1399, allocations: 1.868 MB / 405.7 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007243/0.1472, allocations: 5.972 MB / 411.7 MB, free: 10.68 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.1472, allocations: 0 / 411.7 MB, free: 10.68 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1472, allocations: 0 / 411.7 MB, free: 10.68 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001597/0.1474, allocations: 0 / 411.7 MB, free: 10.68 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: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.00863/0.1561, allocations: 4.239 MB / 416 MB, free: 6.371 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.318e-05/0.1561, allocations: 15.89 kB / 416 MB, free: 6.355 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006615/0.1627, allocations: 1.878 MB / 417.9 MB, free: 4.473 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003848/0.1666, allocations: 1.976 MB / 419.8 MB, free: 2.445 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001674/0.1668, allocations: 209.2 kB / 420 MB, free: 2.238 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005403/0.1674, allocations: 263.9 kB / 420.3 MB, free: 1.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01669/0.1841, allocations: 9.973 MB / 430.3 MB, free: 7.332 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.123e-05/0.1842, allocations: 47.62 kB / 430.3 MB, free: 7.285 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003402/0.1845, allocations: 131.9 kB / 430.4 MB, free: 7.156 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002898/0.1874, allocations: 1.848 MB / 432.3 MB, free: 5.309 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01663/0.2041, allocations: 8.548 MB / 440.8 MB, free: 12.75 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2436/0.4477, allocations: 36.75 MB / 477.6 MB, free: 43.93 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01033/0.4581, allocations: 3.882 MB / 481.5 MB, free: 42.25 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002898/0.461, allocations: 1.803 MB / 483.3 MB, free: 41.52 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01035/0.4714, allocations: 7.541 MB / 490.8 MB, free: 37.25 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.735e-05/0.4715, allocations: 46.41 kB / 490.9 MB, free: 37.2 MB / 382.1 MB Notification: Performance of pre-optimization done (n=150): time 4.288e-06/0.4715, allocations: 0 / 490.9 MB, free: 37.2 MB / 382.1 MB Notification: Performance of matching and sorting (n=166): time 0.04761/0.5191, allocations: 17.66 MB / 0.4966 GB, free: 24.27 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.867e-05/0.5192, allocations: 149.5 kB / 0.4967 GB, free: 24.09 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003883/0.5231, allocations: 3.487 MB / 0.5002 GB, free: 20.68 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002052/0.5233, allocations: 53.7 kB / 0.5002 GB, free: 20.62 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001412/0.5247, allocations: 2.85 MB / 0.503 GB, free: 17.91 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006331/0.5253, allocations: 0.6699 MB / 0.5036 GB, free: 17.25 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001176/0.5265, allocations: 1.124 MB / 0.5047 GB, free: 16.12 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.726e-05/0.5266, allocations: 301.1 kB / 0.505 GB, free: 15.82 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002273/0.5289, allocations: 1.951 MB / 0.5069 GB, free: 13.87 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003683/0.5326, allocations: 5.378 MB / 0.5122 GB, free: 6.785 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007348/0.5399, allocations: 7.931 MB / 0.5199 GB, free: 13.15 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.267e-05/0.54, allocations: 39.94 kB / 0.52 GB, free: 13.11 MB / 398.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01466/0.5547, allocations: 8.196 MB / 0.528 GB, free: 4.91 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.292e-05/0.5548, allocations: 56 kB / 0.528 GB, free: 4.855 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001126/0.5549, allocations: 124 kB / 0.5281 GB, free: 4.734 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003987/0.5589, allocations: 1.293 MB / 0.5294 GB, free: 3.438 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003656/0.5626, allocations: 1.263 MB / 0.5306 GB, free: 2.172 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008912/0.5715, allocations: 6.548 MB / 0.537 GB, free: 11.48 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003927/0.5754, allocations: 299.7 kB / 0.5373 GB, free: 11.19 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004814/0.5759, allocations: 345 kB / 0.5376 GB, free: 10.86 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 552 * Number of states: 0 () * Number of discrete variables: 36 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (685): * Single equations (assignments): 681 * 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 {(3,17,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002797/0.5787, allocations: 1.806 MB / 0.5394 GB, free: 9.039 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005387/0.5793, allocations: 325.8 kB / 0.5397 GB, free: 8.719 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006851/0.5861, allocations: 3.36 MB / 0.543 GB, free: 5.348 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.891e-05/0.5862, allocations: 17.88 kB / 0.543 GB, free: 5.332 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.215e-05/0.5862, allocations: 8 kB / 0.543 GB, free: 5.324 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.645e-05/0.5862, allocations: 7.969 kB / 0.543 GB, free: 5.316 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01473/0.601, allocations: 7.578 MB / 0.5504 GB, free: 13.68 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.4e-05/0.601, allocations: 0 / 0.5504 GB, free: 13.68 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001145/0.6022, allocations: 239.7 kB / 0.5507 GB, free: 13.45 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003661/0.6058, allocations: 1.124 MB / 0.5518 GB, free: 12.32 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001839/0.606, allocations: 30.94 kB / 0.5518 GB, free: 12.29 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008589/0.6146, allocations: 6.17 MB / 0.5578 GB, free: 5.988 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.6147, allocations: 3.938 kB / 0.5578 GB, free: 5.984 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01055/0.6252, allocations: 5.721 MB / 0.5634 GB, free: 240 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001763/0.627, allocations: 0.5887 MB / 0.564 GB, free: 15.62 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008771/0.628, allocations: 32 kB / 0.564 GB, free: 15.59 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001743/0.6297, allocations: 91.62 kB / 0.5641 GB, free: 15.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003177/0.63, allocations: 86.75 kB / 0.5642 GB, free: 15.42 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001453/0.6302, allocations: 55.92 kB / 0.5642 GB, free: 15.37 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004241/0.6345, allocations: 2.15 MB / 0.5663 GB, free: 13.23 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.6345, allocations: 0 / 0.5663 GB, free: 13.23 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005334/0.6398, allocations: 0.9211 MB / 0.5672 GB, free: 12.31 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,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 (129): * Single equations (assignments): 125 * 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 {(2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005068/0.6403, allocations: 174.2 kB / 0.5674 GB, free: 12.13 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008113/0.6485, allocations: 4.798 MB / 0.5721 GB, free: 7.344 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.589e-06/0.6485, allocations: 0 / 0.5721 GB, free: 7.344 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002399/0.6509, allocations: 1.542 MB / 0.5736 GB, free: 5.793 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002336/0.6532, allocations: 355.2 kB / 0.5739 GB, free: 5.457 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01507/0.6683, allocations: 8.145 MB / 0.5819 GB, free: 13.28 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004046/0.6724, allocations: 2.858 MB / 0.5847 GB, free: 10.39 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004147/0.6766, allocations: 1.703 MB / 0.5863 GB, free: 8.68 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007353/0.6773, allocations: 215.4 kB / 0.5865 GB, free: 8.469 MB / 462.1 MB Notification: Performance of SimCode: time 1.192e-06/0.6773, allocations: 0 / 0.5865 GB, free: 8.469 MB / 462.1 MB Notification: Performance of Templates: time 0.05819/0.7355, allocations: 31.15 MB / 0.617 GB, free: 9.352 MB / 494.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1)