Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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.SpringWithMass,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001086/0.001085, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001132/0.001132, allocations: 192.8 kB / 16.13 MB, free: 6.664 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.479/1.479, allocations: 205.1 MB / 222 MB, free: 4.996 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.001168/0.001168, allocations: 52.25 kB / 278.1 MB, free: 12.99 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2433/0.2445, allocations: 46.63 MB / 324.7 MB, free: 2.066 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.01738/0.2619, allocations: 17.91 MB / 342.6 MB, free: 2.375 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01353/0.2755, allocations: 5.043 MB / 347.6 MB, free: 13.32 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00427/0.2799, allocations: 71.81 kB / 347.7 MB, free: 13.25 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002381/0.2823, allocations: 0.9932 MB / 348.7 MB, free: 12.25 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003794/0.2861, allocations: 1.273 MB / 350 MB, free: 10.97 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001039/0.2871, allocations: 419.3 kB / 350.4 MB, free: 10.56 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004227/0.2914, allocations: 3.624 MB / 354 MB, free: 6.926 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001929/0.2933, allocations: 1.518 MB / 355.5 MB, free: 5.391 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001142/0.2945, allocations: 0.7353 MB / 356.3 MB, free: 4.652 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001954/0.2964, allocations: 1.304 MB / 357.6 MB, free: 3.344 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004743/0.2969, allocations: 116 kB / 357.7 MB, free: 3.23 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002418/0.2994, allocations: 1.018 MB / 358.7 MB, free: 2.211 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001126/0.3005, allocations: 1.083 MB / 359.8 MB, free: 1.125 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001191/0.3017, allocations: 1.262 MB / 361 MB, free: 15.85 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004796/0.3065, allocations: 4.158 MB / 365.2 MB, free: 11.68 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.3065, allocations: 0 / 365.2 MB, free: 11.68 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3066, allocations: 4 kB / 365.2 MB, free: 11.68 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.574e-05/0.3066, allocations: 0 / 365.2 MB, free: 11.68 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.005662/0.3123, allocations: 3.055 MB / 368.3 MB, free: 8.566 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.735e-05/0.3123, allocations: 8.031 kB / 368.3 MB, free: 8.559 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006244/0.3186, allocations: 1.736 MB / 370 MB, free: 6.816 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002673/0.3213, allocations: 1.441 MB / 371.4 MB, free: 5.328 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001013/0.3214, allocations: 131.3 kB / 371.6 MB, free: 5.199 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00061/0.322, allocations: 259.6 kB / 371.8 MB, free: 4.945 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01033/0.3324, allocations: 6.656 MB / 378.5 MB, free: 13.83 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.753e-05/0.3325, allocations: 31.66 kB / 378.5 MB, free: 13.8 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002633/0.3327, allocations: 87.89 kB / 378.6 MB, free: 13.71 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002009/0.3348, allocations: 1.363 MB / 380 MB, free: 12.34 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01146/0.3462, allocations: 6.033 MB / 386 MB, free: 6.309 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03165/0.3779, allocations: 25.63 MB / 411.6 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006732/0.3847, allocations: 2.671 MB / 414.3 MB, free: 9.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001493/0.3862, allocations: 1.032 MB / 415.3 MB, free: 8.047 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005982/0.3922, allocations: 3.888 MB / 419.2 MB, free: 3.902 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.14e-05/0.3923, allocations: 43.12 kB / 419.3 MB, free: 3.852 MB / 350.1 MB Notification: Performance of pre-optimization done (n=112): time 5.43e-06/0.3923, allocations: 3.938 kB / 419.3 MB, free: 3.848 MB / 350.1 MB Notification: Performance of matching and sorting (n=125): time 0.02608/0.4184, allocations: 10.31 MB / 429.6 MB, free: 9.371 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001359/0.4198, allocations: 1.58 MB / 431.2 MB, free: 7.621 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004001/0.4238, allocations: 2.733 MB / 433.9 MB, free: 4.867 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003905/0.4242, allocations: 45.77 kB / 433.9 MB, free: 4.816 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001452/0.4257, allocations: 2.083 MB / 436 MB, free: 2.699 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005715/0.4263, allocations: 0.5093 MB / 436.5 MB, free: 2.184 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001152/0.4275, allocations: 0.9165 MB / 437.4 MB, free: 1.254 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001144/0.4276, allocations: 301.1 kB / 437.7 MB, free: 0.957 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002375/0.43, allocations: 1.652 MB / 439.4 MB, free: 15.29 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004546/0.4345, allocations: 4.456 MB / 443.8 MB, free: 9.43 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008236/0.4428, allocations: 6.547 MB / 450.4 MB, free: 1.492 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.636e-05/0.4429, allocations: 35.88 kB / 450.4 MB, free: 1.457 MB / 382.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.2259/0.6688, allocations: 7.988 MB / 458.4 MB, free: 108.7 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.955e-05/0.6689, allocations: 51.16 kB / 458.5 MB, free: 108.7 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01004/0.6789, allocations: 3.487 MB / 462 MB, free: 108 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01048/0.6894, allocations: 2.586 MB / 464.5 MB, free: 106.9 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002962/0.6924, allocations: 1.008 MB / 465.5 MB, free: 106.7 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01126/0.7037, allocations: 8.882 MB / 474.4 MB, free: 98.8 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003712/0.7074, allocations: 331.6 kB / 474.8 MB, free: 98.49 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005095/0.708, allocations: 280 kB / 475 MB, free: 98.22 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 452 * Number of states: 0 () * Number of discrete variables: 21 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],spring.color[3],spring.color[2],spring.color[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 (547): * Single equations (assignments): 539 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001905/0.7099, allocations: 1.423 MB / 476.4 MB, free: 96.82 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003793/0.7103, allocations: 228.8 kB / 476.7 MB, free: 96.71 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005478/0.7158, allocations: 2.836 MB / 479.5 MB, free: 93.86 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004812/0.7206, allocations: 2.521 MB / 482 MB, free: 91.34 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.489e-05/0.7206, allocations: 11.52 kB / 482 MB, free: 91.33 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.646e-05/0.7207, allocations: 3.984 kB / 482 MB, free: 91.32 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01221/0.7329, allocations: 6.87 MB / 488.9 MB, free: 84.45 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-05/0.7329, allocations: 5.766 kB / 488.9 MB, free: 84.45 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008085/0.7338, allocations: 175.7 kB / 489.1 MB, free: 84.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004113/0.7379, allocations: 1.434 MB / 490.5 MB, free: 82.83 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001575/0.738, allocations: 31.97 kB / 490.6 MB, free: 82.8 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008004/0.7461, allocations: 7.317 MB / 497.9 MB, free: 75.29 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007008/0.7468, allocations: 1.458 MB / 499.3 MB, free: 73.7 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008031/0.7548, allocations: 4.849 MB / 0.4924 GB, free: 68.85 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000711/0.7556, allocations: 298 kB / 0.4926 GB, free: 68.54 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002653/0.7558, allocations: 27.98 kB / 0.4927 GB, free: 68.51 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001013/0.7569, allocations: 107.8 kB / 0.4928 GB, free: 68.4 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00027/0.7571, allocations: 84.38 kB / 0.4929 GB, free: 68.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.171e-05/0.7572, allocations: 35.98 kB / 0.4929 GB, free: 68.29 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001986/0.7592, allocations: 1.701 MB / 0.4946 GB, free: 66.57 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.7592, allocations: 0 / 0.4946 GB, free: 66.57 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.006652/0.7659, allocations: 0.7912 MB / 0.4953 GB, free: 65.79 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3]) * 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 (83): * Single equations (assignments): 77 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004496/0.7664, allocations: 162.1 kB / 0.4955 GB, free: 65.63 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006608/0.773, allocations: 4.429 MB / 0.4998 GB, free: 61.18 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.371e-06/0.773, allocations: 0 / 0.4998 GB, free: 61.18 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002669/0.7757, allocations: 1.711 MB / 0.5015 GB, free: 59.42 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001931/0.7777, allocations: 264.5 kB / 0.5017 GB, free: 59.16 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009739/0.7874, allocations: 7.822 MB / 0.5094 GB, free: 51.3 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001614/0.7891, allocations: 2.305 MB / 0.5116 GB, free: 48.96 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002955/0.792, allocations: 1.412 MB / 0.513 GB, free: 47.55 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003829/0.7924, allocations: 163.4 kB / 0.5132 GB, free: 47.39 MB / 382.1 MB Notification: Performance of SimCode: time 1.463e-06/0.7924, allocations: 0 / 0.5132 GB, free: 47.39 MB / 382.1 MB Notification: Performance of Templates: time 0.0402/0.8326, allocations: 29.7 MB / 0.5422 GB, free: 17.7 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1)